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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.jsx.SExpressionType
SExpressionType.SAtomType, SExpressionType.SList, SExpressionType.SListType, SExpressionType.SQuotedString, SExpressionType.SSymbol -
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.io7m.jlexing.core.LexicalType
lexical
-
Method Details
-
get
- Parameters:
index- The list index in the range0 <= index < {@link #size()}- Returns:
- The expression at
index - Throws:
IndexOutOfBoundsException- Iffindexis out of range
-
size
int size()- Returns:
- The number of elements in the list
-
isSquare
boolean isSquare()- Returns:
trueif the original list used square brackets
-