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
public class ASTIdentifierAccess extends JexlNode
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
Fields Modifier and Type Field Description private java.lang.Integeridentifierprivate java.lang.Stringnameprivate static longserialVersionUID-
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
-
Constructor Summary
Constructors Constructor Description ASTIdentifierAccess(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetIdentifier()java.lang.StringgetName()booleanisExpression()Tests whether this is a Jxlt based identifier.booleanisGlobalVar()booleanisSafe()Tests whether this is a dot or a question-mark-dot aka safe-navigation access.java.lang.ObjectjjtAccept(ParserVisitor visitor, java.lang.Object data)Accepts the visitor.(package private) voidsetIdentifier(java.lang.String id)java.lang.StringtoString()-
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getCache, getColumn, getLine, isConstant, isConstant, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jexlInfo, jjtSetFirstToken, jjtSetLastToken, setCache
-
Methods 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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
name
private java.lang.String name
-
identifier
private java.lang.Integer identifier
-
-
Method Detail
-
getIdentifier
public java.lang.Object getIdentifier()
-
getName
public java.lang.String 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
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
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
void setIdentifier(java.lang.String id)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classSimpleNode
-
-