@Immutable public final class TVector extends Object implements TType
vector type expression.| Constructor and Description |
|---|
TVector(Optional<com.io7m.jlexing.core.LexicalPosition<Path>> in_lex,
Size<?> in_size,
TypeScalarType in_type)
Construct a type expression.
|
| Modifier and Type | Method and Description |
|---|---|
Size<?> |
getElementCount() |
TypeScalarType |
getElementType() |
Optional<com.io7m.jlexing.core.LexicalPosition<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
Size<SizeUnitBitsType> |
getSizeInBits() |
<A,E extends Exception> |
matchType(TypeMatcherType<A,E> m)
Accept a matcher.
|
String |
toString() |
public TVector(Optional<com.io7m.jlexing.core.LexicalPosition<Path>> in_lex, Size<?> in_size, TypeScalarType in_type)
in_lex - Lexical informationin_size - The number of elements in the vectorin_type - The type of vector elementspublic Size<SizeUnitBitsType> getSizeInBits()
getSizeInBits in interface TTypepublic Size<?> getElementCount()
public TypeScalarType getElementType()
public <A,E extends Exception> A matchType(TypeMatcherType<A,E> m) throws E extends Exception
TTypepublic Optional<com.io7m.jlexing.core.LexicalPosition<Path>> getLexicalInformation()
ModelElementTypegetLexicalInformation in interface ModelElementTypeCopyright © 2017 <code@io7m.com> http://io7m.com