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