Interface ComplexTypeConstructor

All Superinterfaces:
TypeConstructor

public interface ComplexTypeConstructor extends TypeConstructor

Functional interface that redeclares TypeConstructor.construct(TypeBuilder, AST.ComplexType)

  • Method Details

    • construct

      Type construct(TypeBuilder typeBuilder, AST.ComplexType complexType) throws TypeBuildingException
      Description copied from interface: TypeConstructor

      Attempt to build the type represented by this TypeConstructor

      Specified by:
      construct in interface TypeConstructor
      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