public String jarName() { return jarName == null ? null : ((NlsString) SqlLiteral.value(jarName)).getValue(); } }
private String getString(SqlNode n) { return n == null ? null : ((NlsString) SqlLiteral.value(n)).getValue(); }
private Integer getInteger(SqlNode n) { return n == null ? null : ((BigDecimal) SqlLiteral.value(n)).intValueExact(); }
public String className() { return ((NlsString) SqlLiteral.value(className)).getValue(); }
jj_consume_token(RPAREN); String sampleName = ((NlsString) SqlLiteral.value(sample)).getValue(); SqlSampleSpec sampleSpec = SqlSampleSpec.createNamed(sampleName); final SqlLiteral sampleLiteral =
jj_consume_token(RPAREN); String sampleName = ((NlsString) SqlLiteral.value(sample)).getValue(); SqlSampleSpec sampleSpec = SqlSampleSpec.createNamed(sampleName); final SqlLiteral sampleLiteral =
public String jarName() { return jarName == null ? null : ((NlsString)SqlLiteral.value(jarName)).getValue(); } }
public String className() { return ((NlsString)SqlLiteral.value(className)).getValue(); }
@SuppressWarnings("deprecation") @Override public String getStringLiteralOperand(int ordinal) { SqlNode node = call.operand(ordinal); final Object o = SqlLiteral.value(node); return o instanceof NlsString ? ((NlsString) o).getValue() : null; }
@SuppressWarnings("deprecation") @Override public String getStringLiteralOperand(int ordinal) { SqlNode node = call.operand(ordinal); final Object o = SqlLiteral.value(node); return o instanceof NlsString ? ((NlsString) o).getValue() : null; }
@SuppressWarnings("deprecation") @Override public int getIntLiteralOperand(int ordinal) { SqlNode node = call.operand(ordinal); final Object o = SqlLiteral.value(node); if (o instanceof BigDecimal) { BigDecimal bd = (BigDecimal) o; try { return bd.intValueExact(); } catch (ArithmeticException e) { throw SqlUtil.newContextException(node.pos, RESOURCE.numberLiteralOutOfRange(bd.toString())); } } throw new AssertionError(); }
@SuppressWarnings("deprecation") @Override public int getIntLiteralOperand(int ordinal) { SqlNode node = call.operand(ordinal); final Object o = SqlLiteral.value(node); if (o instanceof BigDecimal) { BigDecimal bd = (BigDecimal) o; try { return bd.intValueExact(); } catch (ArithmeticException e) { throw SqlUtil.newContextException(node.pos, RESOURCE.numberLiteralOutOfRange(bd.toString())); } } throw new AssertionError(); }
final public SqlNode SqlCreateFunction() throws ParseException { SqlNode functionName = null; String className = null; SqlParserPos pos; SqlNode sample = null; jj_consume_token(CREATE); pos = getPos(); jj_consume_token(FUNCTION); functionName = CompoundIdentifier(); jj_consume_token(AS); sample = StringLiteral(); className = ((NlsString) SqlLiteral.value(sample)).getValue(); {if (true) return new SqlCreateFunction(pos, functionName, className);} throw new Error("Missing return statement in function"); }
final SqlOperator operator = call.getOperator(); if (operator == SqlStdOperatorTable.TABLESAMPLE) { final String sampleName = (String) SqlLiteral.value(call.operand(0)); datasetStack.push(sampleName); SqlCall cursorCall = call.operand(1);
final SqlOperator operator = call.getOperator(); if (operator == SqlStdOperatorTable.TABLESAMPLE) { final String sampleName = (String) SqlLiteral.value(call.operand(0)); datasetStack.push(sampleName); SqlCall cursorCall = call.operand(1);
jj_consume_token(RPAREN); String sampleName = ((NlsString) SqlLiteral.value(sample)).getValue(); SqlSampleSpec sampleSpec = SqlSampleSpec.createNamed(sampleName); final SqlLiteral sampleLiteral =