public class ExpressionReducer extends Object implements NodeVisitor<EvalResult>
public static EvalResult reduce(ExpressionNode node, VariableTracker<EvalResult> tracker)
public EvalResult evaluate(PropertyAccess propertyAccess)
NodeVisitorPropertyAccess node.evaluate in interface NodeVisitor<EvalResult>propertyAccess - the node to evaluatepublic EvalResult evaluate(Identifier identifier)
NodeVisitorIdentifier node.evaluate in interface NodeVisitor<EvalResult>identifier - the node to evaluatepublic EvalResult evaluate(StringConstant text)
NodeVisitorStringConstant node.evaluate in interface NodeVisitor<EvalResult>text - the node to evaluatepublic EvalResult evaluate(BinaryOperation binaryOperation)
NodeVisitorBinaryOperation node.evaluate in interface NodeVisitor<EvalResult>binaryOperation - the node to evaluatepublic EvalResult evaluate(BooleanConstant booleanConstant)
NodeVisitorBooleanConstant node.evaluate in interface NodeVisitor<EvalResult>booleanConstant - the node to evaluatepublic EvalResult evaluate(NumericConstant numericConstant)
NodeVisitorNumericConstant node.evaluate in interface NodeVisitor<EvalResult>numericConstant - the node to evaluatepublic EvalResult evaluate(UnaryOperation unaryOperation)
NodeVisitorUnaryOperation node.evaluate in interface NodeVisitor<EvalResult>unaryOperation - the node to evaluatepublic EvalResult evaluate(TernaryOperator ternaryOperator)
NodeVisitorTernaryOperator node.evaluate in interface NodeVisitor<EvalResult>ternaryOperator - the node to evaluatepublic EvalResult evaluate(RuntimeCall runtimeCall)
NodeVisitorRuntimeCall node.evaluate in interface NodeVisitor<EvalResult>runtimeCall - the node to evaluatepublic EvalResult evaluate(MapLiteral mapLiteral)
NodeVisitorMapLiteral node.evaluate in interface NodeVisitor<EvalResult>mapLiteral - the node to evaluatepublic EvalResult evaluate(ArrayLiteral arrayLiteral)
NodeVisitorArrayLiteral node.evaluate in interface NodeVisitor<EvalResult>arrayLiteral - the node to evaluatepublic EvalResult evaluate(NullLiteral nullLiteral)
NodeVisitorNullLiteral node.evaluate in interface NodeVisitor<EvalResult>nullLiteral - the node to evaluateCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.