Examples of ConstantExpression


Examples of org.eclipse.persistence.internal.expressions.ConstantExpression

            return myExpression;
        }

        //Either I have an alias type, or I'm an IN declaration
        if (classConstant != null){
            myExpression = new ConstantExpression(classConstant, generationContext.getBaseExpression());
        } else if (generationContext.getParseTreeContext().isRangeVariable(name)) {
            myExpression = generateBaseBuilderExpression(generationContext);
        } else {
            myExpression = generateExpressionForAlias(generationContext);
        }
View Full Code Here

Examples of org.geotools.filter.ConstantExpression

    protected void setUp() throws Exception {
        factory = new ColorConverterFactory();
    }
    public void testVsConstantExpression() throws Exception {
        ConstantExpression expr = ConstantExpression.color(Color.RED);
        String expected = expr.evaluate(null, String.class );
       
        Converter converter = factory.createConverter( Color.class, String.class, null );
        String actual = converter.convert( Color.RED, String.class );
       
        assertEquals( expected, actual );
View Full Code Here

Examples of org.jinq.jpa.jpqlquery.ConstantExpression

   @Override public ColumnExpressions<?> booleanConstantValue(ConstantValue.BooleanConstant val, SymbExPassDown in) throws TypedValueVisitorException
   {
      if (in.isExpectingConditional)
      {
         return ColumnExpressions.singleColumn(new SimpleRowReader<Integer>(),
               new ConstantExpression(val.val ? "(1=1)" : "(1!=1)"));
      }
      else
      {
         return ColumnExpressions.singleColumn(new SimpleRowReader<Integer>(),
               new ConstantExpression(val.val ? "TRUE" : "FALSE"));
      }
   }
View Full Code Here

Examples of org.omegahat.Environment.Parser.Parse.ConstantExpression

      may be null, but that is the value stored in the reference.
    */
This = qualifier.eval(evaluator());

MethodCall call =   new MethodCall(new ConstantExpression(This),
                                     methodName, new ArgList(args));

  return(genericCallMethod(call, returnName, convert));
}
View Full Code Here

Examples of ru.snake.spritepacker.writer.expression.ConstantExpression

    nextToken();

    Expression node;

    if (current.type == TokeType.END_EXPRESSION) {
      node = new ConstantExpression("");
    } else if (next != null && next.type == TokeType.END_EXPRESSION) {
      node = parseExpressionValue();
    } else {
      node = parseExpressionNode();
    }
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.