Class Concatenation

java.lang.Object
adql.query.ADQLList<ADQLOperand>
adql.query.operand.Concatenation
All Implemented Interfaces:
ADQLObject, ADQLOperand, Iterable<ADQLOperand>

public final class Concatenation extends ADQLList<ADQLOperand> implements ADQLOperand
Represents a concatenation in ADQL (ex: "_s_ra" || ':' || "_s_dec").
  • Constructor Details

    • Concatenation

      public Concatenation()
      Builds an empty concatenation. To add operands, use the "add" functions.
    • Concatenation

      public Concatenation(Concatenation toCopy) throws Exception
      Builds a copy of the given Concatenation.
      Parameters:
      toCopy - The Concatenation to copy.
      Throws:
      Exception - If there is an error during the copy.
  • Method Details

    • getCopy

      public ADQLObject getCopy() throws Exception
      Description copied from interface: ADQLObject
      Gets a (deep) copy of this ADQL object.
      Specified by:
      getCopy in interface ADQLObject
      Specified by:
      getCopy in class ADQLList<ADQLOperand>
      Returns:
      The copy of this ADQL object.
      Throws:
      Exception - If there is any error during the copy.
    • getPossibleSeparators

      public String[] getPossibleSeparators()
      Description copied from class: ADQLList
      Gets the list of all possible separators for this ADQLList.
      Specified by:
      getPossibleSeparators in class ADQLList<ADQLOperand>
      Returns:
      Possible separators.
    • getSeparator

      public String getSeparator(int index) throws ArrayIndexOutOfBoundsException
      Description copied from class: ADQLList
      Gets the separator between the list items index-1 and index.
      Specified by:
      getSeparator in class ADQLList<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 than size().
    • isNumeric

      public final boolean isNumeric()
      Description copied from interface: ADQLOperand
      Tell whether this operand is numeric or not.
      Specified by:
      isNumeric in interface ADQLOperand
      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 interface ADQLOperand
      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 interface ADQLOperand
      Returns:
      true if this operand is a geometry, false otherwise.
    • toADQL

      public String toADQL()
      Description copied from interface: ADQLObject
      Gets the ADQL expression of this object.
      Specified by:
      toADQL in interface ADQLObject
      Overrides:
      toADQL in class ADQLList<ADQLOperand>
      Returns:
      The corresponding ADQL expression.