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:
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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
literal
The actual literal value; the inherited 'value' member may host a cached getter.private static long
serialVersionUID
-
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.String
getLiteral()
Gets the literal value.protected boolean
isConstant(boolean literal)
java.lang.Object
jjtAccept(ParserVisitor visitor, java.lang.Object data)
Accepts the visitor.(package private) void
setLiteral(java.lang.String literal)
java.lang.String
toString()
-
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getColumn, getLine, isConstant, isGlobalVar, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jjtSetFirstToken, jjtSetLastToken
-
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:
getLiteral
in interfaceJexlNode.Constant<java.lang.String>
- Returns:
- the string literal
-
isConstant
protected boolean isConstant(boolean literal)
- Overrides:
isConstant
in classJexlNode
-
jjtAccept
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
Description copied from class:SimpleNode
Accepts the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in 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:
toString
in classSimpleNode
-
-