Class JavaExpressionParser
java.lang.Object
io.deephaven.engine.table.impl.lang.JavaExpressionParser
Helpful class which parses expressions and performs extra "this is exactly one expression" validation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isConstantValueExpression
(com.github.javaparser.ast.expr.Expression expression) returns true if the expression evaluates to constant value.static com.github.javaparser.ast.expr.Expression
parseExpression
(String expression)
-
Constructor Details
-
JavaExpressionParser
public JavaExpressionParser()
-
-
Method Details
-
parseExpression
-
isConstantValueExpression
public static boolean isConstantValueExpression(com.github.javaparser.ast.expr.Expression expression) returns true if the expression evaluates to constant value.- Parameters:
expression
- the expression to evaluate- Returns:
- true if the expression evaluates to constant value
-