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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
EMPTYThe empty string constant.
 
- 
- 
Constructor Details- 
StringConstantCreate a string constant node.- Parameters:
- text- the string content (without its original quotes)
 
 
- 
- 
Method Details- 
acceptDescription copied from interface:ExpressionNodeAccept a visitor to process this node.- Specified by:
- acceptin interface- ExpressionNode
- Type Parameters:
- T- the type of the visitor
- Parameters:
- visitor- The visitor
- Returns:
- the node after it has been evaluated by the visitor
 
- 
getTextGets the string content
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-