Examples of ValueNode


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

/*
* <A NAME="derivedColumn">derivedColumn</A>
*/
  final public ResultColumn derivedColumn(ResultColumnList resultColumns) throws ParseException, StandardException {
        ValueNode       columnExpression;
        String          columnName = null;
    //true to additiveExpression ensures that for the derived columns, we will not allow boolean values inside (),
            //eg (2 > 1) should be disallowed in the select clause
            columnExpression = additiveExpression(null, 0, true);
    switch (jj_nt.kind) {
View Full Code Here

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

*
* @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 valueExpression(boolean inSelectClause) throws ParseException, StandardException {
        ValueNode       leftOperand;
    leftOperand = orExpression(null, inSelectClause);
    label_10:
    while (true) {
      switch (jj_nt.kind) {
      case OR:
View Full Code Here

Examples of org.jamesii.core.math.parsetree.ValueNode

  @SuppressWarnings({ "unchecked", "cast", "rawtypes" })
  @Override
  public <N extends INode> N calc(IEnvironment<?> cEnv) {

    ValueNode val = caseStmt.calc(cEnv);

    INode defaultExpr = null;

    for (Pair<? extends Comparable, INode> p : caseTerms) {
      // default case
      if (p.getFirstValue() == null) {
        defaultExpr = p.getSecondValue();
        // continue with checking all other cases
        continue;
      }

      // any other than default case
      if (p.getFirstValue().compareTo(val.getValue()) == 0) {
        return (N) p.getSecondValue().calc(cEnv);
      }
    }

    if (defaultExpr != null) {
View Full Code Here

Examples of org.openquark.cal.valuenode.ValueNode

            // Build and execute the test program in non-threaded mode.
            buildTestProgram(inputPolicies, argTypes);
            executeTestProgram(inputValues, false);

            // The returned value node won't have a type expression set, so it's up to us to do it.
            ValueNode outputValueNode = getOutputValueNode();
            if (outputValueNode == null) {
                String errorString = "Null value executing text: " + getTarget().getTargetDef(null, currentModuleTypeInfo).toString();
                GemCutter.CLIENT_LOGGER.log(Level.WARNING, errorString);
               
                return null;
            }
           
            if (error != null) {
                String errorString = "Null value executing text: " + getTarget().getTargetDef(null, currentModuleTypeInfo).toString();
                GemCutter.CLIENT_LOGGER.log(Level.WARNING, errorString, error);
               
                return null;
            }
           
            ValueNode returnNode = outputValueNode.copyValueNode();
            returnNode.setOutputJavaValue(executionResult);
            return returnNode;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.