Package org.apache.commons.jexl3.parser
Class ASTStringLiteral
- java.lang.Object
-
- org.apache.commons.jexl3.parser.SimpleNode
-
- org.apache.commons.jexl3.parser.JexlNode
-
- org.apache.commons.jexl3.parser.ASTStringLiteral
-
- All Implemented Interfaces:
JexlCache.Reference,JexlNode.Constant<java.lang.String>,Node
public final class ASTStringLiteral extends JexlNode implements JexlNode.Constant<java.lang.String>
-
-
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.StringliteralThe actual literal value; the inherited 'value' member may host a cached getter.private static longserialVersionUID-
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
-
Constructor Summary
Constructors Constructor Description ASTStringLiteral(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLiteral()Gets the literal value.protected booleanisConstant(boolean literal)java.lang.ObjectjjtAccept(ParserVisitor visitor, java.lang.Object data)Accepts the visitor.(package private) voidsetLiteral(java.lang.String literal)java.lang.StringtoString()-
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getCache, getColumn, getLine, isConstant, isGlobalVar, 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
-
literal
private java.lang.String literal
The actual literal value; the inherited 'value' member may host a cached getter.
-
-
Method Detail
-
getLiteral
public java.lang.String getLiteral()
Gets the literal value.- Specified by:
getLiteralin interfaceJexlNode.Constant<java.lang.String>- Returns:
- the string literal
-
isConstant
protected boolean isConstant(boolean literal)
- Overrides:
isConstantin classJexlNode
-
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
-
setLiteral
void setLiteral(java.lang.String literal)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classSimpleNode
-
-