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, ...).
- Version:
- 1.2 (12/2013)
- Author:
- Grégory Mantelet (CDS;ARI)
-
Nested Class Summary
Nested classes/interfaces inherited from class adql.query.ADQLList
ADQLList.ADQLListIterator
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds an anonymous ClauseADQL.ClauseADQL
(ADQLList<T> toCopy) Builds a ClauseADQL by copying the given one.ClauseADQL
(String name) Builds a ClauseADQL 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, 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 anonymous ClauseADQL. -
ClauseADQL
Builds a ClauseADQL considering its name.- Parameters:
name
- List label.
-
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:
-