java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.SimpleNode
edu.internet2.middleware.grouperClientExt.org.apache.commons.jexl2.parser.JexlNode
All Implemented Interfaces:
JexlInfo, Node
Direct Known Subclasses:
ASTAdditiveNode, ASTAdditiveOperator, ASTAmbiguous, ASTAndNode, ASTArrayAccess, ASTArrayLiteral, ASTAssignment, ASTBitwiseAndNode, ASTBitwiseComplNode, ASTBitwiseOrNode, ASTBitwiseXorNode, ASTBlock, ASTConstructorNode, ASTDivNode, ASTEmptyFunction, ASTEQNode, ASTERNode, ASTFalseNode, ASTFloatLiteral, ASTForeachStatement, ASTFunctionNode, ASTGENode, ASTGTNode, ASTIdentifier, ASTIfStatement, ASTIntegerLiteral, ASTJexlScript, ASTLENode, ASTLTNode, ASTMapEntry, ASTMapLiteral, ASTMethodNode, ASTModNode, ASTMulNode, ASTNENode, ASTNotNode, ASTNRNode, ASTNullLiteral, ASTNumberLiteral, ASTOrNode, ASTReference, ASTReturnStatement, ASTSizeFunction, ASTSizeMethod, ASTStringLiteral, ASTTernaryNode, ASTTrueNode, ASTUnaryMinusNode, ASTWhileStatement

public abstract class JexlNode extends SimpleNode implements JexlInfo
Base class for parser nodes - holds an 'image' of the token for later use.
Since:
2.0
  • Field Details

    • image

      public String image
      token value.
  • Constructor Details

    • JexlNode

      public JexlNode(int id)
    • JexlNode

      public JexlNode(Parser p, int id)
  • Method Details

    • debugInfo

      public DebugInfo debugInfo()
      Gets the underlying debugging information.
      Specified by:
      debugInfo in interface JexlInfo
      Returns:
      a debug info instance
    • debugString

      public String debugString()
      Formats this information for debugging purpose.
      Specified by:
      debugString in interface JexlInfo
      Returns:
      a human readable string.
    • isConstant

      public final boolean isConstant()
      Whether this node is a constant node Its value can not change after the first evaluation and can be cached indefinitely.
      Returns:
      true if constant, false otherwise
    • isConstant

      protected boolean isConstant(boolean literal)