public abstract class ConstantExpression extends Object implements Expression
Constructor and Description |
---|
ConstantExpression() |
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Creates a deep copy of the expression which can be modified without affecting the original expression.
|
boolean |
isConstant()
Determines if the expression is constant.
|
Expression |
propagateVisitor(ExpressionVisitor visitor)
Visits all child nodes and then the node itself.
|
Expression |
reduce()
Reduces and optimizes the expression if possible.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eval, getType
public Expression propagateVisitor(ExpressionVisitor visitor)
Expression
propagateVisitor
in interface Expression
visitor
- the visitor to invoke for all child nodes and on the node itselfpublic Expression reduce()
Expression
reduce
in interface Expression
public boolean isConstant()
Expression
isConstant
in interface Expression
public Expression copy()
Expression
copy
in interface Expression
Copyright © 2018. All rights reserved.