Package org.apache.commons.jexl2.parser
Class ASTStringLiteral
- java.lang.Object
-
- org.apache.commons.jexl2.parser.SimpleNode
-
- org.apache.commons.jexl2.parser.JexlNode
-
- org.apache.commons.jexl2.parser.ASTStringLiteral
-
- All Implemented Interfaces:
JexlInfo,JexlNode.Literal<java.lang.String>,Node
public final class ASTStringLiteral extends JexlNode implements JexlNode.Literal<java.lang.String>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.jexl2.parser.JexlNode
JexlNode.Literal<T>
-
-
Constructor Summary
Constructors Constructor Description ASTStringLiteral(int id)ASTStringLiteral(Parser p, 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)Accept the visitor.-
Methods inherited from class org.apache.commons.jexl2.parser.JexlNode
debugInfo, debugString, isConstant
-
Methods inherited from class org.apache.commons.jexl2.parser.SimpleNode
childrenAccept, dump, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
-
-
-
Constructor Detail
-
ASTStringLiteral
public ASTStringLiteral(int id)
-
ASTStringLiteral
public ASTStringLiteral(Parser p, int id)
-
-
Method Detail
-
getLiteral
public java.lang.String getLiteral()
Gets the literal value.- Specified by:
getLiteralin interfaceJexlNode.Literal<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)
Accept the visitor.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- the visitordata- contextual data- Returns:
- result of visit
-
-