Package com.io7m.jsx

Interface SExpressionType.SListType

All Superinterfaces:
Iterable<SExpressionType>, com.io7m.jlexing.core.LexicalType<URI>, SExpressionType
All Known Implementing Classes:
SExpressionType.SList
Enclosing interface:
SExpressionType

public static non-sealed interface SExpressionType.SListType extends SExpressionType, Iterable<SExpressionType>
The type of lists.
  • Method Details

    • get

      SExpressionType get(int index)
      Parameters:
      index - The list index in the range 0 <= index < {@link #size()}
      Returns:
      The expression at index
      Throws:
      IndexOutOfBoundsException - Iff index is out of range
    • size

      int size()
      Returns:
      The number of elements in the list
    • isSquare

      boolean isSquare()
      Returns:
      true if the original list used square brackets