Package org.apache.commons.jexl3.parser
Class ASTRegexLiteral
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ASTRegexLiteral
- All Implemented Interfaces:
JexlNode.Constant<Pattern>
,Node
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.jexl3.parser.JexlNode
JexlNode.Constant<T>, JexlNode.Funcall, JexlNode.Info
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Pattern
The actual literal value; the inherited 'value' member may host a cached getter.private static final long
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the literal value.protected boolean
isConstant
(boolean literal) jjtAccept
(ParserVisitor visitor, Object data) Accept the visitor.(package private) void
setLiteral
(String literal) 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 Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
literal
The actual literal value; the inherited 'value' member may host a cached getter.
-
-
Constructor Details
-
ASTRegexLiteral
ASTRegexLiteral(int id) -
ASTRegexLiteral
ASTRegexLiteral(Parser p, int id)
-
-
Method Details
-
toString
- Overrides:
toString
in classSimpleNode
-
getLiteral
Gets the literal value.- Specified by:
getLiteral
in interfaceJexlNode.Constant<Pattern>
- Returns:
- the Pattern literal
-
isConstant
protected boolean isConstant(boolean literal) - Overrides:
isConstant
in classJexlNode
-
setLiteral
-
jjtAccept
Description copied from class:SimpleNode
Accept the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-