I - The type of identifiersT - The type of type information@Immutable public final class SizeExprConstant<I,T> extends Object implements SizeExprType<I,T>
| Constructor and Description |
|---|
SizeExprConstant(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
BigInteger in_size)
Construct a size expression.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
BigInteger |
getValue() |
<A,E extends Exception> |
matchSizeExpression(SizeExprMatcherType<I,T,A,E> m)
Accept a matcher.
|
String |
toString() |
public SizeExprConstant(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex, BigInteger in_size)
in_lex - The lexical information for the namein_size - The size expressionpublic BigInteger getValue()
public <A,E extends Exception> A matchSizeExpression(SizeExprMatcherType<I,T,A,E> m) throws E extends Exception
SizeExprTypematchSizeExpression in interface SizeExprType<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 © 2015 <code@io7m.com> http://io7m.com