Class BuilderInfo


  • public class BuilderInfo
    extends java.lang.Object
    Holder for the builder information.
    Since:
    1.3
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BuilderInfo.Builder  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.lang.model.element.ExecutableElement builderCreationMethod  
      private java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BuilderInfo​(javax.lang.model.element.ExecutableElement builderCreationMethod, java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.lang.model.element.ExecutableElement getBuilderCreationMethod()
      The method that can be used for instantiating a builder.
      java.util.Collection<javax.lang.model.element.ExecutableElement> getBuildMethods()
      The methods that can be used to build the type being built.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • builderCreationMethod

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

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

      • BuilderInfo

        private BuilderInfo​(javax.lang.model.element.ExecutableElement builderCreationMethod,
                            java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods)
    • Method Detail

      • getBuilderCreationMethod

        public javax.lang.model.element.ExecutableElement getBuilderCreationMethod()
        The method that can be used for instantiating a builder. This can be:
        • A public static method in the type being build
        • A public static method in the builder itself
        • The default constructor of the builder
        Returns:
        the creation method for the builder
      • getBuildMethods

        public java.util.Collection<javax.lang.model.element.ExecutableElement> getBuildMethods()
        The methods that can be used to build the type being built. This should be public methods within the builder itself
        Returns:
        the build method for the type