Package adql.query.operand
Class Concatenation
- All Implemented Interfaces:
ADQLObject
,ADQLOperand
,Iterable<ADQLOperand>
Represents a concatenation in ADQL
(ex:
"_s_ra" || ':' || "_s_dec"
).-
Nested Class Summary
Nested classes/interfaces inherited from class adql.query.ADQLList
ADQLList.ADQLListIterator
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty concatenation.Concatenation
(Concatenation toCopy) Builds a copy of the givenConcatenation
. -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()
Gets a (deep) copy of this ADQL object.String[]
Gets the list of all possible separators for thisADQLList
.getSeparator
(int index) Gets the separator between the list items index-1 and index.final boolean
Tell whether this operand is a geometrical region or not.final boolean
Tell whether this operand is numeric or not.final boolean
isString()
Tell whether this operand is a string or not.toADQL()
Gets the ADQL expression of this object.Methods inherited from class adql.query.ADQLList
add, add, adqlIterator, clear, get, getFeatureDescription, getName, getPosition, isEmpty, iterator, remove, set, setPosition, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface adql.query.ADQLObject
adqlIterator, getFeatureDescription, getName, getPosition
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Concatenation
public Concatenation()Builds an empty concatenation. To add operands, use the "add" functions. -
Concatenation
Builds a copy of the givenConcatenation
.- Parameters:
toCopy
- TheConcatenation
to copy.- Throws:
Exception
- If there is an 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<ADQLOperand>
- Returns:
- The copy of this ADQL object.
- Throws:
Exception
- If there is any error during the copy.
-
getPossibleSeparators
Description copied from class:ADQLList
Gets the list of all possible separators for thisADQLList
.- Specified by:
getPossibleSeparators
in classADQLList<ADQLOperand>
- Returns:
- Possible separators.
-
getSeparator
Description copied from class:ADQLList
Gets the separator between the list items index-1 and index.- Specified by:
getSeparator
in classADQLList<ADQLOperand>
- 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()
.
-
isNumeric
public final boolean isNumeric()Description copied from interface:ADQLOperand
Tell whether this operand is numeric or not.- Specified by:
isNumeric
in interfaceADQLOperand
- Returns:
- true if this operand is numeric, false otherwise.
-
isString
public final boolean isString()Description copied from interface:ADQLOperand
Tell whether this operand is a string or not.- Specified by:
isString
in interfaceADQLOperand
- Returns:
- true if this operand is a string, false otherwise.
-
isGeometry
public final boolean isGeometry()Description copied from interface:ADQLOperand
Tell whether this operand is a geometrical region or not.- Specified by:
isGeometry
in interfaceADQLOperand
- Returns:
- true if this operand is a geometry, false otherwise.
-
toADQL
Description copied from interface:ADQLObject
Gets the ADQL expression of this object.- Specified by:
toADQL
in interfaceADQLObject
- Overrides:
toADQL
in classADQLList<ADQLOperand>
- Returns:
- The corresponding ADQL expression.
-