org.apache.commons.jexl2.parser
Class ASTStringLiteral

java.lang.Object
  extended by org.apache.commons.jexl2.parser.SimpleNode
      extended by org.apache.commons.jexl2.parser.JexlNode
          extended by org.apache.commons.jexl2.parser.ASTStringLiteral
All Implemented Interfaces:
JexlInfo, JexlNode.Literal<String>, Node

public final class ASTStringLiteral
extends JexlNode
implements JexlNode.Literal<String>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.jexl2.parser.JexlNode
JexlNode.Literal<T>
 
Field Summary
 
Fields inherited from class org.apache.commons.jexl2.parser.JexlNode
image
 
Fields inherited from class org.apache.commons.jexl2.parser.SimpleNode
children, id, parent, value
 
Constructor Summary
ASTStringLiteral(int id)
           
ASTStringLiteral(Parser p, int id)
           
 
Method Summary
 String getLiteral()
          Gets the literal value.
protected  boolean isConstant(boolean literal)
          
 Object jjtAccept(ParserVisitor visitor, 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, 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
 

Constructor Detail

ASTStringLiteral

public ASTStringLiteral(int id)

ASTStringLiteral

public ASTStringLiteral(Parser p,
                        int id)
Method Detail

getLiteral

public String getLiteral()
Gets the literal value.

Specified by:
getLiteral in interface JexlNode.Literal<String>
Returns:
the string literal

isConstant

protected boolean isConstant(boolean literal)

Overrides:
isConstant in class JexlNode

jjtAccept

public Object jjtAccept(ParserVisitor visitor,
                        Object data)
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode
Parameters:
visitor - the visitor
data - contextual data
Returns:
result of visit


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.