public class IsNull extends java.lang.Object implements ADQLConstraint
Constructor and Description |
---|
IsNull(ADQLColumn column)
Builds a comparison between the given column and NULL.
|
IsNull(ADQLColumn column,
boolean isNot)
Builds a comparison between the column and NULL.
|
IsNull(IsNull toCopy)
Builds a IsNull constraint by copying the given one.
|
Modifier and Type | Method and Description |
---|---|
ADQLIterator |
adqlIterator()
Gets an iterator on the intern ADQL objects.
|
ADQLColumn |
getColumn()
Gets the column whose the value is compared to NULL.
|
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.
|
boolean |
isNotNull()
Tells whether the predicate is IS NULL or IS NOT NULL.
|
void |
setColumn(ADQLColumn column)
Lets changing the column whose the value must be compared to NULL.
|
void |
setNotNull(boolean notNull)
Lets indicating which predicate must be used (IS NULL or IS NOT NULL).
|
void |
setPosition(TextPosition position)
Set the position of this
IsNull in the given ADQL query string. |
java.lang.String |
toADQL()
Gets the ADQL expression of this object.
|
public IsNull(ADQLColumn column) throws java.lang.NullPointerException
column
- The column whose the value must be compared to NULL.java.lang.NullPointerException
- If the given column is null.public IsNull(ADQLColumn column, boolean isNot) throws java.lang.NullPointerException
column
- The column whose the value must be compared to NULL.isNot
- true means IS NOT NULL, false means IS NULL.java.lang.NullPointerException
- If the given column is null.public IsNull(IsNull toCopy) throws java.lang.Exception
toCopy
- The IsNull to copy.java.lang.Exception
- If there is an error during the copy.public final ADQLColumn getColumn()
public final void setColumn(ADQLColumn column) throws java.lang.NullPointerException
column
- The new column to compare to NULL.java.lang.NullPointerException
- If the given column is null.public final boolean isNotNull()
public final void setNotNull(boolean notNull)
notNull
- true for IS NOT NULL, false for IS NULL.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)
IsNull
in the given ADQL query string.position
- New position of this IsNull
.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