Package org.apache.commons.jexl3.parser
Class ASTJxltLiteral
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ASTJxltLiteral
- All Implemented Interfaces:
JexlCache.Reference,JexlNode.JxltHandle,Node
-
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
FieldsModifier and TypeFieldDescriptionprivate JxltEngine.ExpressionThe expression (parsed).private StringThe actual literal value.private static final longSerial uid.Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the literal value.jjtAccept(ParserVisitor visitor, Object data) Accepts the visitor.voidSets the template expression.(package private) voidsetLiteral(String src, Scope scope) toString()Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getCache, getColumn, getLine, isConstant, isConstant, isGlobalVar, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jexlInfo, jjtSetFirstToken, jjtSetLastToken, setCacheMethods 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 Details
-
serialVersionUID
private static final long serialVersionUIDSerial uid.- See Also:
-
literal
The actual literal value. -
jxltExpression
The expression (parsed).
-
-
Constructor Details
-
ASTJxltLiteral
ASTJxltLiteral(int id) Creates a Jxlt literal node.- Parameters:
id- The node id
-
-
Method Details
-
getExpressionSource
- Specified by:
getExpressionSourcein interfaceJexlNode.JxltHandle- Returns:
- The expression source.
-
getExpression
- Specified by:
getExpressionin interfaceJexlNode.JxltHandle- Returns:
- The expression instance, should be a TemplateEngine.TemplateExpression.
-
getLiteral
Gets the literal value.- Returns:
- The string literal
-
jjtAccept
Description copied from class:SimpleNodeAccepts the visitor.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- The visitordata- contextual data- Returns:
- result of visit
-
setExpression
Description copied from interface:JexlNode.JxltHandleSets the template expression.- Specified by:
setExpressionin interfaceJexlNode.JxltHandle- Parameters:
e- A TemplateEngine.TemplateExpression instance
-
setLiteral
-
toString
- Overrides:
toStringin classSimpleNode
-