public final class NegativeOperand extends java.lang.Object implements ADQLOperand
Constructor and Description |
---|
NegativeOperand(ADQLOperand operand)
Builds an operand which will negativate 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 operand on which the minus sign is applied.
|
boolean |
isGeometry()
Always returns false.
|
boolean |
isNumeric()
Always returns true.
|
boolean |
isString()
Always returns false.
|
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
public NegativeOperand(ADQLOperand operand) throws java.lang.NullPointerException, java.lang.UnsupportedOperationException
Builds an operand which will negativate the given operand.
Important: The given operand must be numeric (ADQLOperand.isNumeric()
must return true) !
operand
- The operand to negativate.java.lang.NullPointerException
- If the given operand is null.java.lang.UnsupportedOperationException
- If the given operand is not numeric (if ADQLOperand.isNumeric()
does not return true).public final ADQLOperand getOperand()
public final boolean isNumeric()
isNumeric
in interface ADQLOperand
ADQLOperand.isNumeric()
public final boolean isString()
isString
in interface ADQLOperand
ADQLOperand.isString()
public final boolean isGeometry()
isGeometry
in interface ADQLOperand
ADQLOperand.isGeometry()
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