public final class StringConstant extends Object implements Atom
'hello world').| Modifier and Type | Field and Description | 
|---|---|
| static StringConstant | EMPTYThe empty string constant. | 
| Constructor and Description | 
|---|
| StringConstant(String text)Create a string constant node. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | accept(NodeVisitor<T> visitor)Accept a visitor to process this node. | 
| String | getText()Gets the string content | 
| String | toString() | 
public static final StringConstant EMPTY
public StringConstant(String text)
text - the string content (without its original quotes)public <T> T accept(NodeVisitor<T> visitor)
ExpressionNodeaccept in interface ExpressionNodeT - the type of the visitorvisitor - The visitorpublic String getText()
Copyright © 2017 The Apache Software Foundation. All rights reserved.