I - The type of identifiersT - The type of type information@Immutable public final class RecordFieldDeclValue<I,T> extends Object implements RecordFieldDeclType<I,T>
record field declaration.| Constructor and Description |
|---|
RecordFieldDeclValue(I in_identifier,
FieldName in_name,
TypeExprType<I,T> in_type)
Construct a field declaration.
|
| Modifier and Type | Method and Description |
|---|---|
I |
getIdentifier() |
Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
FieldName |
getName() |
TypeExprType<I,T> |
getType() |
<A,E extends Exception> |
matchRecordFieldDeclaration(RecordFieldDeclMatcherType<I,T,A,E> m)
Accept a field matcher.
|
public RecordFieldDeclValue(I in_identifier, FieldName in_name, TypeExprType<I,T> in_type)
in_identifier - The identifierin_name - The field namein_type - The field typepublic I getIdentifier()
public TypeExprType<I,T> getType()
public <A,E extends Exception> A matchRecordFieldDeclaration(RecordFieldDeclMatcherType<I,T,A,E> m) throws E extends Exception
RecordFieldDeclTypematchRecordFieldDeclaration in interface RecordFieldDeclType<I,T>A - The type of returned valuesE - The type of raised exceptionsm - The matchermE - If m raises EE extends Exceptionpublic FieldName getName()
public Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> getLexicalInformation()
ModelElementTypegetLexicalInformation in interface ModelElementTypeCopyright © 2016 <code@io7m.com> http://io7m.com