I - The type of identifiersT - The type of evaluated typespublic final class TypeExprMatrix<I,T> extends Object implements TypeExprType<I,T>
matrix type expression.| Constructor and Description |
|---|
TypeExprMatrix(T in_type,
Optional<com.io7m.jlexing.core.LexicalPosition<Path>> in_lex,
SizeExprType<I,T> in_width,
SizeExprType<I,T> in_height,
TypeExprType<I,T> in_element_type)
Construct an expression.
|
| Modifier and Type | Method and Description |
|---|---|
TypeExprType<I,T> |
getElementType() |
SizeExprType<I,T> |
getHeight() |
Optional<com.io7m.jlexing.core.LexicalPosition<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
T |
getType() |
SizeExprType<I,T> |
getWidth() |
<A,E extends Exception> |
matchType(TypeExprMatcherType<I,T,A,E> m)
Accept a matcher.
|
public TypeExprMatrix(T in_type, Optional<com.io7m.jlexing.core.LexicalPosition<Path>> in_lex, SizeExprType<I,T> in_width, SizeExprType<I,T> in_height, TypeExprType<I,T> in_element_type)
in_type - The expression typein_lex - Lexical informationin_width - The number of columnsin_height - The number of rowsin_element_type - The type of elementspublic T getType()
getType in interface TypeExprType<I,T>public SizeExprType<I,T> getHeight()
public TypeExprType<I,T> getElementType()
public SizeExprType<I,T> getWidth()
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.LexicalPosition<Path>> getLexicalInformation()
ModelElementTypegetLexicalInformation in interface ModelElementTypeCopyright © 2017 <code@io7m.com> http://io7m.com