Class AnnotatedClass

    • Method Detail

      • getAnnotated

        public java.lang.Class<?> getAnnotated()
        Description copied from class: Annotated
        Method that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart.
        Specified by:
        getAnnotated in class Annotated
      • getModifiers

        public int getModifiers()
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class Annotated
      • getAnnotation

        public <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> acls)
        Specified by:
        getAnnotation in class Annotated
      • hasAnnotation

        public boolean hasAnnotation​(java.lang.Class<?> acls)
        Specified by:
        hasAnnotation in class Annotated
      • hasOneOf

        public boolean hasOneOf​(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
        Specified by:
        hasOneOf in class Annotated
      • getRawType

        public java.lang.Class<?> getRawType()
        Description copied from class: Annotated
        "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.
        Specified by:
        getRawType in class Annotated
      • annotations

        public java.lang.Iterable<java.lang.annotation.Annotation> annotations()
        Description copied from class: Annotated
        Accessor that can be used to iterate over all the annotations associated with annotated component.
        Specified by:
        annotations in class Annotated
      • getType

        public JavaType getType()
        Description copied from class: Annotated
        Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
        Specified by:
        getType in class Annotated
      • hasAnnotations

        public boolean hasAnnotations()
      • getFactoryMethods

        public java.util.List<AnnotatedMethod> getFactoryMethods()
      • memberMethods

        public java.lang.Iterable<AnnotatedMethod> memberMethods()
      • getMemberMethodCount

        public int getMemberMethodCount()
      • findMethod

        public AnnotatedMethod findMethod​(java.lang.String name,
                                          java.lang.Class<?>[] paramTypes)
      • getFieldCount

        public int getFieldCount()
      • isNonStaticInnerClass

        public boolean isNonStaticInnerClass()
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Annotated
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class Annotated