Package nz.org.riskscape.engine.typexp
Interface ComplexTypeConstructor
- All Superinterfaces:
TypeConstructor
Functional interface that redeclares
TypeConstructor.construct(TypeBuilder, AST.ComplexType)
-
Method Summary
Modifier and TypeMethodDescriptionconstruct
(TypeBuilder typeBuilder, AST.ComplexType complexType) Attempt to build the type represented by thisTypeConstructor
Methods inherited from interface nz.org.riskscape.engine.typexp.TypeConstructor
construct
-
Method Details
-
construct
Description copied from interface:TypeConstructor
Attempt to build the type represented by this
TypeConstructor
- Specified by:
construct
in interfaceTypeConstructor
- Parameters:
typeBuilder
- the type builder that is being used to build types. Contains helper methods for implementations.complexType
- the ast that a type is being constructed from- Returns:
- the fully constructed type. Note that this might contain further nested types - these can/should be parsed using DefaultTypeBuilder#expectType(AST, java.util.function.Function).
- Throws:
TypeBuildingException
- if something went wrong
-