Class BuilderType


  • public class BuilderType
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BuilderType​(Type builder, Type owningType, Type buildingType, javax.lang.model.element.ExecutableElement builderCreationMethod, java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods)  
    • Field Detail

      • builder

        private final Type builder
      • owningType

        private final Type owningType
      • buildingType

        private final Type buildingType
      • builderCreationMethod

        private final javax.lang.model.element.ExecutableElement builderCreationMethod
      • buildMethods

        private final java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods
    • Constructor Detail

      • BuilderType

        private BuilderType​(Type builder,
                            Type owningType,
                            Type buildingType,
                            javax.lang.model.element.ExecutableElement builderCreationMethod,
                            java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods)
    • Method Detail

      • getBuilder

        public Type getBuilder()
        The type of the builder itself.
        Returns:
        the type for the builder
      • getOwningType

        public Type getOwningType()
        The owning type of the builder, this can be the builder itself, the type that is build by the builder or some other type.
        Returns:
        the owning type
      • getBuildingType

        public Type getBuildingType()
        The type that is being built by the builder.
        Returns:
        the type that is being built
      • getBuilderCreationMethod

        public javax.lang.model.element.ExecutableElement getBuilderCreationMethod()
        The creation method for the builder.
        Returns:
        the creation method for the builder
      • getBuildMethods

        public java.util.Collection<javax.lang.model.element.ExecutableElement> getBuildMethods()
        The build methods that can be invoked to create the type being built.
        Returns:
        the build methods that can be invoked to create the type being built