Package org.apache.commons.jexl3.parser
Class ASTIdentifierAccess
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ASTIdentifierAccess
- All Implemented Interfaces:
JexlCache.Reference,Node
- Direct Known Subclasses:
ASTIdentifierAccessJxlt,ASTIdentifierAccessSafe
Identifiers, variables and registers.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.jexl3.parser.JexlNode
JexlNode.Constant<T>, JexlNode.Funcall, JexlNode.Info, JexlNode.JxltHandle -
Field Summary
FieldsFields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()booleanTests whether this is a Jxlt based identifier.booleanbooleanisSafe()Tests whether this is a dot or a question-mark-dot aka safe-navigation access.jjtAccept(ParserVisitor visitor, Object data) Accepts the visitor.(package private) voidsetIdentifier(String id) toString()Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getCache, getColumn, getLine, isConstant, isConstant, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jexlInfo, jjtSetFirstToken, jjtSetLastToken, setCacheMethods inherited from class org.apache.commons.jexl3.parser.SimpleNode
childrenAccept, dump, dumpOut, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetChildren, jjtSetParent, jjtSetValue, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
identifier
-
-
Constructor Details
-
ASTIdentifierAccess
ASTIdentifierAccess(int id)
-
-
Method Details
-
getIdentifier
-
getName
-
isExpression
public boolean isExpression()Tests whether this is a Jxlt based identifier.- Returns:
- true if `..${...}...`, false otherwise
-
isGlobalVar
public boolean isGlobalVar()- Overrides:
isGlobalVarin classJexlNode- Returns:
- true if this node looks like a global var
-
isSafe
public boolean isSafe()Tests whether this is a dot or a question-mark-dot aka safe-navigation access.- Returns:
- true is ?., false if.
-
jjtAccept
Description copied from class:SimpleNodeAccepts the visitor.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- The visitordata- contextual data- Returns:
- result of visit
-
setIdentifier
-
toString
- Overrides:
toStringin classSimpleNode
-