I - The type of identifiersT - The type of type information@Immutable public final class TypeDeclPacked<I,T> extends Object implements TypeDeclType<I,T>
packed type declaration.| Constructor and Description |
|---|
TypeDeclPacked(I in_identifier,
T in_type,
com.gs.collections.api.map.ImmutableMap<FieldName,PackedFieldDeclValue<I,T>> in_fields_name,
TypeName in_name,
com.gs.collections.api.list.ImmutableList<PackedFieldDeclType<I,T>> in_fields_order)
Construct a type declaration.
|
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.ImmutableMap<FieldName,PackedFieldDeclValue<I,T>> |
getFieldsByName() |
com.gs.collections.api.list.ImmutableList<PackedFieldDeclType<I,T>> |
getFieldsInDeclarationOrder() |
I |
getIdentifier() |
Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> |
getLexicalInformation()
Fetch the lexical information for the element.
|
TypeName |
getName() |
T |
getType() |
<A,E extends Exception> |
matchStatement(StatementMatcherType<I,T,A,E> m)
Accept a matcher.
|
<A,E extends Exception> |
matchTypeDeclaration(TypeDeclMatcherType<I,T,A,E> m)
Accept a type declaration matcher.
|
public TypeDeclPacked(I in_identifier, T in_type, com.gs.collections.api.map.ImmutableMap<FieldName,PackedFieldDeclValue<I,T>> in_fields_name, TypeName in_name, com.gs.collections.api.list.ImmutableList<PackedFieldDeclType<I,T>> in_fields_order)
in_identifier - The identifierin_type - The typein_fields_name - The fields by namein_name - The type namein_fields_order - The fields in declaration orderpublic TypeName getName()
getName in interface TypeDeclType<I,T>public <A,E extends Exception> A matchTypeDeclaration(TypeDeclMatcherType<I,T,A,E> m) throws E extends Exception
TypeDeclTypematchTypeDeclaration in interface TypeDeclType<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 ModelElementTypepublic T getType()
getType in interface TypeDeclType<I,T>public I getIdentifier()
getIdentifier in interface TypeDeclType<I,T>public <A,E extends Exception> A matchStatement(StatementMatcherType<I,T,A,E> m) throws E extends Exception
StatementTypematchStatement in interface StatementType<I,T>A - The type of returned valuesE - The type of raised exceptionsm - The matchermE - If m raises EE extends Exceptionpublic com.gs.collections.api.list.ImmutableList<PackedFieldDeclType<I,T>> getFieldsInDeclarationOrder()
public com.gs.collections.api.map.ImmutableMap<FieldName,PackedFieldDeclValue<I,T>> getFieldsByName()
Copyright © 2015 <code@io7m.com> http://io7m.com