Enum TIndices.IndicesType

Object
Enum<TIndices.IndicesType>
gudusoft.gsqlparser.nodes.TIndices.IndicesType
All Implemented Interfaces:
Serializable, Comparable<TIndices.IndicesType>, java.lang.constant.Constable
Enclosing class:
TIndices

public static enum TIndices.IndicesType extends Enum<TIndices.IndicesType>
Enum to distinguish between array access syntax and qualified name syntax.

ARRAY_ACCESS - Represents bracket notation for array/list operations:

  • [5] - Single element at index 5
  • [2:4] - Slice from index 2 to 4 (inclusive)
  • [:3] - Slice from start to index 3
  • [2:] - Slice from index 2 to end
  • [:] - Full array/list slice

QUALIFIED_NAME - Represents dot notation for field/property access:

  • .field_name - Access specific field or property
  • .* - Access all fields (wildcard expansion)
Since:
1.0
  • Enum Constant Details

  • Method Details

    • values

      public static TIndices.IndicesType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TIndices.IndicesType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null