I - The type of identifiersT - The type of type informationpublic final class TypeExprArray<I,T> extends Object implements TypeExprType<I,T>
array type expression.| Constructor and Description |
|---|
TypeExprArray(T in_type,
Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
SizeExprType<I,T> in_element_count,
TypeExprType<I,T> in_element_type)
Construct an expression.
|
| Modifier and Type | Method and Description |
|---|---|
SizeExprType<I,T> |
getElementCount() |
TypeExprType<I,T> |
getElementType() |
Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
T |
getType() |
<A,E extends Exception> |
matchType(TypeExprMatcherType<I,T,A,E> m)
Accept a matcher.
|
public TypeExprArray(T in_type, Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex, SizeExprType<I,T> in_element_count, TypeExprType<I,T> in_element_type)
in_type - The expression typein_lex - Lexical informationin_element_count - The number of array elementsin_element_type - The type of array elementspublic TypeExprType<I,T> getElementType()
public SizeExprType<I,T> getElementCount()
public T getType()
getType in interface TypeExprType<I,T>public <A,E extends Exception> A matchType(TypeExprMatcherType<I,T,A,E> m) throws E extends Exception
TypeExprTypematchType in interface TypeExprType<I,T>A - The type of returned valuesE - The type of raised exceptionsm - The matchermE - If m raises EE extends Exceptionpublic Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> getLexicalInformation()
ModelElementTypegetLexicalInformation in interface ModelElementTypeCopyright © 2016 <code@io7m.com> http://io7m.com