public abstract class GeometryFunction extends ADQLFunction
It represents any geometric function of ADQL.
Modifier and Type | Class and Description |
---|---|
static class |
GeometryFunction.GeometryValue<F extends GeometryFunction>
This class represents a parameter of a geometry function
which, in general, is either a GeometryFunction or a Column.
|
ADQLFunction.ParameterIterator
Modifier and Type | Field and Description |
---|---|
protected ADQLOperand |
coordSys
The coordinate system used to express the coordinates.
|
Modifier | Constructor and Description |
---|---|
protected |
GeometryFunction()
Builds a geometry function with no coordinate system.
|
protected |
GeometryFunction(ADQLOperand coordSys)
Builds a geometry function with its coordinate system.
|
protected |
GeometryFunction(GeometryFunction toCopy)
Builds a geometry function by copying the given one.
|
Modifier and Type | Method and Description |
---|---|
ADQLOperand |
getCoordinateSystem()
Gets the used coordinate system.
|
void |
setCoordinateSystem(ADQLOperand coordSys)
Changes the coordinate system.
|
adqlIterator, getNbParameters, getParameter, getParameters, getPosition, paramIterator, setParameter, setPosition, toADQL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGeometry, isNumeric, isString
getCopy, getName
protected ADQLOperand coordSys
protected GeometryFunction()
protected GeometryFunction(ADQLOperand coordSys) throws java.lang.UnsupportedOperationException, java.lang.NullPointerException, java.lang.Exception
coordSys
- A string operand which corresponds to a valid coordinate system.java.lang.UnsupportedOperationException
- If this function is not associated with a coordinate system.java.lang.NullPointerException
- If the given operand is null.java.lang.Exception
- If the given operand is not a string.protected GeometryFunction(GeometryFunction toCopy) throws java.lang.Exception
toCopy
- The geometry function to copy.java.lang.Exception
- If there is an error during the copy.public ADQLOperand getCoordinateSystem()
public void setCoordinateSystem(ADQLOperand coordSys) throws java.lang.UnsupportedOperationException, java.lang.NullPointerException, ParseException
coordSys
- Its new coordinate system.java.lang.UnsupportedOperationException
- If this function is not associated with a coordinate system.java.lang.NullPointerException
- If the given operand is null.ParseException
- If the given operand is not a string.