public interface ClassInfo
Modifier and Type | Method and Description |
---|---|
default AnnotationInfo |
getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> an)
Finds annotation in class info.
|
AnnotationInfo[] |
getAnnotations()
Returns annotation information or
null if target class has no annotations. |
java.lang.String |
getClassname()
Returns simple class name.
|
java.lang.String |
getPackage()
Returns package name.
|
java.lang.String |
getReference()
Returns class reference.
|
java.lang.String[] |
getSuperClasses()
Returns array of super classes.
|
java.lang.String |
getSuperName()
Returns super class reference.
|
default boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>... an)
Returns
true if class is annotated with one of provided annotation. |
java.lang.String getPackage()
java.lang.String getClassname()
java.lang.String getSuperName()
java.lang.String getReference()
java.lang.String[] getSuperClasses()
AnnotationInfo[] getAnnotations()
null
if target class has no annotations.default AnnotationInfo getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> an)
null
if annotation doesn't exist.default boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation>... an)
true
if class is annotated with one of provided annotation.Copyright © 2003-present Jodd Team