Package org.apache.derby.impl.sql.compile

Examples of org.apache.derby.impl.sql.compile.ValueNode


/*
* <A NAME="modFunction">modFunction</A>
*/
  final public ValueNode modFunction() throws ParseException, StandardException {
    ValueNode int1;
        ValueNode int2;
    jj_consume_token(LEFT_PAREN);
    int1 = additiveExpression(null,0,false);
    jj_consume_token(COMMA);
    int2 = additiveExpression(null,0,false);
    jj_consume_token(RIGHT_PAREN);
View Full Code Here


    }
    throw new Error("Missing return statement in function");
  }

  final public ValueNode characterValueFunction() throws ParseException, StandardException {
        ValueNode       value = null;
        ValueNode       str1;
        ValueNode       str2;
        Token           upperTok = null;
        Token           lowerTok = null;
        ValueNode       startPosition;
    ValueNode   length = null;
    switch (jj_nt.kind) {
    case SUBSTR:
      jj_consume_token(SUBSTR);
      jj_consume_token(LEFT_PAREN);
      value = additiveExpression(null,0,false);
View Full Code Here

    }
    throw new Error("Missing return statement in function");
  }

  final public ValueNode trimFunction() throws ParseException, StandardException {
        ValueNode       source;
        Integer         trimType;
        ValueNode       ansiTrimNode;
    switch (jj_nt.kind) {
    case LTRIM:
    case RTRIM:
      trimType = trimType();
      jj_consume_token(LEFT_PAREN);
View Full Code Here

    throw new Error("Missing return statement in function");
  }

  final public ValueNode ansiTrim() throws ParseException, StandardException {
    Integer trimSpec = ReuseFactory.getInteger(StringDataValue.BOTH);
    ValueNode trimChar = null;
    ValueNode trimSource = null;
    if (ansiTrimSpecFollows()) {
      jj_consume_token(LEFT_PAREN);
      trimSpec = ansiTrimSpec();
      if (jj_2_25(2147483647)) {
        jj_consume_token(FROM);
View Full Code Here

*
* @param inSelectClause will be true if this method got called while parsing the select or values clause
* If in select or values clause, we do not want to allow boolean values.
*/
  final public ValueNode valueExpressionPrimary(boolean inSelectClause) throws ParseException, StandardException {
        ValueNode       value;
        int                     tokKind;
    if (escapedValueFunctionFollows()) {
      jj_consume_token(LEFT_BRACE);
      jj_consume_token(FN);
      value = escapedValueFunction();
View Full Code Here

/*
* <A NAME="miscBuiltins">miscBuiltins</A>
*/
  final public ValueNode miscBuiltins() throws ParseException, StandardException {
        ValueNode value;
    if (( (getToken(1).kind == GET_CURRENT_CONNECTION ||
                    getToken(1).kind == ABS ||
                    getToken(1).kind == ABSVAL ||
                    getToken(1).kind == SQRT ||
                    getToken(1).kind == MOD ||
View Full Code Here

    }
    throw new Error("Missing return statement in function");
  }

  final public ValueNode miscBuiltinsCore(boolean isJDBCEscape) throws ParseException, StandardException {
        ValueNode value;
    switch (jj_nt.kind) {
    case GET_CURRENT_CONNECTION:
      jj_consume_token(GET_CURRENT_CONNECTION);
      jj_consume_token(LEFT_PAREN);
      jj_consume_token(RIGHT_PAREN);
View Full Code Here

/*
* <A NAME="dataTypeScalarFunction">dataTypeScalarFunction</A>
*/
  final public ValueNode dataTypeScalarFunction() throws ParseException, StandardException {
        DataTypeDescriptor dts;
        ValueNode value;           //converted result
        ValueNode operand;
        int charType;
        int length = -1;
    switch (jj_nt.kind) {
    case HOUR:
    case MINUTE:
View Full Code Here

* This method parses the built-in functions used with
* the XML datatype.
*
*/
  final public ValueNode xmlFunction() throws ParseException, StandardException {
        ValueNode value;
        checkVersion(DataDictionary.DD_VERSION_DERBY_10_1, "XML");

        // We only allow XML operations if the classpath has all
        // of the required external classes (namley, JAXP and Xalan).
        org.apache.derby.iapi.types.XML.checkXMLRequirements();
View Full Code Here

* By the time we get to this method, the "DOCUMENT" keyword has already
* been parsed.
*
*/
  final public ValueNode xmlParseValue() throws ParseException, StandardException {
        ValueNode value;
        boolean wsOption;
    value = additiveExpression(null,0,false);
    wsOption = xmlPreserveWhitespace();
                {if (true) return (ValueNode) nodeFactory.getNode(
                                        C_NodeTypes.XML_PARSE_OPERATOR_NODE,
View Full Code Here

TOP

Related Classes of org.apache.derby.impl.sql.compile.ValueNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.