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>, org.apache.commons.jexl2.parser.Node
public final class ASTStringLiteral
- extends JexlNode
- implements JexlNode.Literal<java.lang.String>
Fields inherited from class org.apache.commons.jexl2.parser.JexlNode |
image |
Method Summary |
java.lang.String |
getLiteral()
Gets the literal value. |
protected boolean |
isConstant(boolean literal)
|
java.lang.Object |
jjtAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
Methods inherited from class org.apache.commons.jexl2.parser.SimpleNode |
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTStringLiteral
public ASTStringLiteral(int id)
ASTStringLiteral
public ASTStringLiteral(org.apache.commons.jexl2.parser.Parser p,
int id)
getLiteral
public java.lang.String getLiteral()
- Gets the literal value.
- Specified by:
getLiteral
in interface JexlNode.Literal<java.lang.String>
- Returns:
- the string literal
isConstant
protected boolean isConstant(boolean literal)
-
- Overrides:
isConstant
in class JexlNode
jjtAccept
public java.lang.Object jjtAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface org.apache.commons.jexl2.parser.Node
- Overrides:
jjtAccept
in class SimpleNode
- Parameters:
visitor
- the visitordata
- contextual data
- Returns:
- result of visit
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.