Class Proto.DeclaringType

    • Constructor Detail

      • DeclaringType

        public DeclaringType()
    • Method Detail

      • associatedTopLevel

        public Proto.DeclaringType associatedTopLevel()
        returns this class if it's top level or enclosing top level type.
        Returns:
        accossiated top level type.
      • useImmutableDefaults

        @Lazy
        public boolean useImmutableDefaults()
      • isEnclosing

        @Lazy
        public boolean isEnclosing()
      • isModifiable

        @Lazy
        public boolean isModifiable()
      • isTopLevel

        @Derived
        @Auxiliary
        public boolean isTopLevel()
        Returns:
        true, if is top level
      • isJavaBean

        @Derived
        @Auxiliary
        public boolean isJavaBean()
        Checks if this element is a regular POJO (not an interface or abstract class) simple class with getters and setters
      • isImmutable

        public boolean isImmutable()
      • verifiedFactory

        boolean verifiedFactory​(javax.lang.model.element.ExecutableElement element)
      • verifiedConstructor

        boolean verifiedConstructor​(javax.lang.model.element.ExecutableElement element)
      • suitableForBuilderConstructor

        static boolean suitableForBuilderConstructor​(javax.lang.model.element.ExecutableElement element)
      • suitableForBuilderFactory

        static boolean suitableForBuilderFactory​(javax.lang.model.element.ExecutableElement element)
      • validate

        @Check
        protected void validate()
        Some validations, not exhaustive.
      • sourceCode

        @Lazy
        public java.lang.CharSequence sourceCode()
      • headerComments

        @Lazy
        public java.lang.CharSequence headerComments()
      • isTransformer

        public boolean isTransformer()
      • isVisitor

        public boolean isVisitor()
      • getVisit

        @Lazy
        public com.google.common.base.Optional<VisitMirror> getVisit()
      • isAst

        @Lazy
        public boolean isAst()
      • isEnclosed

        public boolean isEnclosed()