Class StringConstant
java.lang.Object
org.apache.sling.scripting.sightly.compiler.expression.nodes.StringConstant
- All Implemented Interfaces:
ExpressionNode
,Atom
Defines a simple string constant (e.g.
'hello world'
).-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EMPTY
The empty string constant.
-
-
Constructor Details
-
StringConstant
Create a string constant node.- Parameters:
text
- the string content (without its original quotes)
-
-
Method Details
-
accept
Description copied from interface:ExpressionNode
Accept a visitor to process this node.- Specified by:
accept
in interfaceExpressionNode
- Type Parameters:
T
- the type of the visitor- Parameters:
visitor
- The visitor- Returns:
- the node after it has been evaluated by the visitor
-
getText
Gets the string content -
toString
-
hashCode
public int hashCode() -
equals
-