public final class StringConstant extends java.lang.Object implements ADQLOperand
| Constructor and Description |
|---|
StringConstant(java.lang.String value) |
StringConstant(StringConstant toCopy) |
| Modifier and Type | Method and Description |
|---|---|
ADQLIterator |
adqlIterator()
Gets an iterator on the intern ADQL objects.
|
ADQLObject |
getCopy()
Gets a (deep) copy of this ADQL object.
|
java.lang.String |
getName()
Gets the name of this object in ADQL.
|
TextPosition |
getPosition()
Gets the position of this object/token in the ADQL query.
|
java.lang.String |
getValue() |
boolean |
isGeometry()
Tell whether this operand is a geometrical region or not.
|
boolean |
isNumeric()
Tell whether this operand is numeric or not.
|
boolean |
isString()
Tell whether this operand is a string or not.
|
void |
setPosition(TextPosition position)
Sets the position at which this
StringConstant has been found in the original ADQL query string. |
void |
setValue(java.lang.String value) |
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
public StringConstant(java.lang.String value)
public StringConstant(StringConstant toCopy)
public final java.lang.String getValue()
public final void setValue(java.lang.String value)
public final boolean isNumeric()
ADQLOperandisNumeric in interface ADQLOperandpublic final boolean isString()
ADQLOperandisString in interface ADQLOperandpublic final TextPosition getPosition()
ADQLObjectGets the position of this object/token in the ADQL query.
By default, no position should be set.
getPosition in interface ADQLObjectpublic final void setPosition(TextPosition position)
StringConstant has been found in the original ADQL query string.position - Position of this StringConstant.public final boolean isGeometry()
ADQLOperandisGeometry in interface ADQLOperandpublic ADQLObject getCopy()
ADQLObjectgetCopy in interface ADQLObjectpublic java.lang.String getName()
ADQLObjectgetName in interface ADQLObjectpublic ADQLIterator adqlIterator()
ADQLObjectGets an iterator on the intern ADQL objects.
Note:The returned iterator is particularly used by a ISearchHandler
extension to browse a whole ADQL tree.
adqlIterator in interface ADQLObjectADQLIterator,
ISearchHandlerpublic java.lang.String toADQL()
ADQLObjecttoADQL in interface ADQLObject