public class WrappedOperand extends java.lang.Object implements ADQLOperand
Constructor and Description |
---|
WrappedOperand(ADQLOperand operand)
Wraps the given operand.
|
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.
|
ADQLOperand |
getOperand()
Gets the wrapped operand.
|
TextPosition |
getPosition()
Gets the position of this object/token in the ADQL query.
|
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
WrappedOperand has been found in the original ADQL query string. |
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
public WrappedOperand(ADQLOperand operand) throws java.lang.NullPointerException
operand
- Operand to wrap.java.lang.NullPointerException
- If the given operand is NULL.public final ADQLOperand getOperand()
public final boolean isNumeric()
ADQLOperand
isNumeric
in interface ADQLOperand
public final boolean isString()
ADQLOperand
isString
in interface ADQLOperand
public final TextPosition getPosition()
ADQLObject
Gets the position of this object/token in the ADQL query.
By default, no position should be set.
getPosition
in interface ADQLObject
public final void setPosition(TextPosition position)
WrappedOperand
has been found in the original ADQL query string.position
- Position of this WrappedOperand
.public final boolean isGeometry()
ADQLOperand
isGeometry
in interface ADQLOperand
public ADQLObject getCopy() throws java.lang.Exception
ADQLObject
getCopy
in interface ADQLObject
java.lang.Exception
- If there is any error during the copy.public java.lang.String getName()
ADQLObject
getName
in interface ADQLObject
public ADQLIterator adqlIterator()
ADQLObject
Gets 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 ADQLObject
ADQLIterator
,
ISearchHandler
public java.lang.String toADQL()
ADQLObject
toADQL
in interface ADQLObject