public class Term extends AbstractNode
A CQL Term.
Constructor and Description |
---|
Term(java.lang.Double value) |
Term(Identifier identifier) |
Term(java.lang.Long value) |
Term(SimpleName name) |
Term(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Try to accept this node by a visitor.
|
java.lang.String |
getValue()
If the value is a String it is embedded in quotation marks.
|
boolean |
isDate() |
boolean |
isFloat() |
boolean |
isIdentifier() |
boolean |
isLong() |
boolean |
isName() |
boolean |
isString() |
void |
setValue(java.lang.String value)
Set value, useful for inline replacements
in spellcheck suggestions.
|
java.lang.String |
toString() |
compareTo
public Term(java.lang.String value)
public Term(Identifier identifier)
public Term(SimpleName name)
public Term(java.lang.Long value)
public Term(java.lang.Double value)
public void setValue(java.lang.String value)
Set value, useful for inline replacements in spellcheck suggestions.
value
- the valuepublic java.lang.String getValue()
If the value is a String it is embedded in quotation marks. If its a Integer or a Double it is returned without quotation marks.
public boolean isLong()
public boolean isFloat()
public boolean isString()
public boolean isName()
public boolean isIdentifier()
public boolean isDate()
public void accept(Visitor visitor)
AbstractNode
Try to accept this node by a visitor.
accept
in interface Node
accept
in class AbstractNode
visitor
- the visitorpublic java.lang.String toString()
toString
in class java.lang.Object