Package adql.query
Class ClauseADQL<T extends ADQLObject>
java.lang.Object
adql.query.ADQLList<T>
adql.query.ClauseADQL<T>
- All Implemented Interfaces:
ADQLObject
,Iterable<T>
- Direct Known Subclasses:
ClauseConstraints
,ClauseSelect
Represents an ADQL clause (i.e. SELECT, FROM, WHERE, ...).
-
Nested Class Summary
Nested classes/interfaces inherited from class adql.query.ADQLList
ADQLList.ADQLListIterator
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionBuilds an anonymousClauseADQL
.ClauseADQL
(ADQLList<T> toCopy) Builds a ClauseADQL by copying the given one.ClauseADQL
(String name) Builds aClauseADQL
considering its name.protected
ClauseADQL
(String name, LanguageFeature implementedFeature) Builds aClauseADQL
considering its name. -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()
Gets a (deep) copy of this ADQL object.String[]
Possible separators: only ",".getSeparator
(int index) Returns always ",", except if the index is incorrect (index <= 0 or index >= size()).Methods inherited from class adql.query.ADQLList
add, add, adqlIterator, clear, get, getFeatureDescription, getName, getPosition, isEmpty, iterator, remove, set, setPosition, size, toADQL
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClauseADQL
public ClauseADQL()Builds an anonymousClauseADQL
. -
ClauseADQL
Builds aClauseADQL
considering its name.- Parameters:
name
- Clause label.
-
ClauseADQL
Builds aClauseADQL
considering its name.The language feature is optional. If omitted, a default non-optional one will be created using the list's name.
- Parameters:
name
- Clause label.implementedFeature
- Language Feature implemented by this list.- Since:
- 2.0
-
ClauseADQL
Builds a ClauseADQL by copying the given one. It copies also all the list items of the given ClauseADQL.- Parameters:
toCopy
- The ClauseADQL to copy.- Throws:
Exception
- If there is an unexpected error during the copy.
-
-
Method Details
-
getCopy
Description copied from interface:ADQLObject
Gets a (deep) copy of this ADQL object.- Specified by:
getCopy
in interfaceADQLObject
- Specified by:
getCopy
in classADQLList<T extends ADQLObject>
- Returns:
- The copy of this ADQL object.
- Throws:
Exception
- If there is any error during the copy.
-
getPossibleSeparators
Possible separators: only ",".- Specified by:
getPossibleSeparators
in classADQLList<T extends ADQLObject>
- Returns:
- Possible separators.
- See Also:
-
getSeparator
Returns always ",", except if the index is incorrect (index <= 0 or index >= size()).- Specified by:
getSeparator
in classADQLList<T extends ADQLObject>
- Parameters:
index
- Index of the right list item.- Returns:
- The corresponding separator.
- Throws:
ArrayIndexOutOfBoundsException
- If the index is less or equal than 0, or is greater or equal thansize()
.- See Also:
-