public class NotConstraint extends java.lang.Object implements ADQLConstraint
| Constructor and Description |
|---|
NotConstraint(ADQLConstraint constraint)
Builds a NotConstraint just with the constraint on which the logical operator NOT must be applied.
|
| Modifier and Type | Method and Description |
|---|---|
ADQLIterator |
adqlIterator()
Gets an iterator on the intern ADQL objects.
|
ADQLConstraint |
getConstraint()
Gets the constraint on which the NOT operator is applied.
|
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.
|
void |
setPosition(TextPosition position)
Set the position of this
NotConstraint in the given ADQL query string. |
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
public NotConstraint(ADQLConstraint constraint) throws java.lang.NullPointerException
constraint - The constraint on which NOT must be applied.java.lang.NullPointerException - If the given constraint is null.public final ADQLConstraint getConstraint()
ADQLConstraint.public 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)
NotConstraint in the given ADQL query string.position - New position of this NotConstraint.public ADQLObject getCopy() throws java.lang.Exception
ADQLObjectgetCopy in interface ADQLObjectjava.lang.Exception - If there is any error during the copy.public 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