public interface ClassFileInfo
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClassFileInfo.NestingType
Helper enum which lists all possible nesting types of a class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotation(Class<? extends Annotation> annotationType)
Indicates whether this class contains an annotation of the specified annotation type.
|
String |
getClassName()
Returns the name of this class.
|
int |
getModifiers()
Returns the class access and property modifiers, as defined in http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.1-200-E.1
|
ClassFileInfo.NestingType |
getNestingType()
Returns the nesting type of the class using
ClassFileInfo.NestingType enum. |
String |
getSuperclassName()
Returns the name of this class's superclass or java.lang.Object if this class does not have a superclass.
|
boolean |
hasCdiConstructor()
Indicates whether this class has a CDI constructor.
|
boolean |
isAnnotationDeclared(Class<? extends Annotation> annotationType)
Indicates whether an annotation of the specified annotation type is directly present on this class.
|
boolean |
isAssignableFrom(Class<?> javaClass)
Indicates whether this class is either the same as, or is a superclass of the specified class.
|
boolean |
isAssignableTo(Class<?> javaClass)
Indicates whether this class is either the same as, or is a subclass of the specified class.
|
default boolean |
isTopLevelClass()
Deprecated - use
getClassNestingType() instead. |
boolean |
isVetoed()
Indicates whether this class is vetoed from CDI processing.
|
String getClassName()
String getSuperclassName()
boolean isAnnotationDeclared(Class<? extends Annotation> annotationType)
annotationType - the specified annotation typeboolean containsAnnotation(Class<? extends Annotation> annotationType)
Inherited, is present on a direct or indirect
superclass of the given classannotationType - the specified annotation typeint getModifiers()
boolean hasCdiConstructor()
Inject or a no-arg constructor, false otherwiseboolean isAssignableFrom(Class<?> javaClass)
javaClass - the specified classboolean isAssignableTo(Class<?> javaClass)
javaClass - the specified classboolean isVetoed()
Vetoed annotation is present on this class or the class's package, false otherwisedefault boolean isTopLevelClass()
getClassNestingType() instead.
Indicates whether this class is a top-level class or an inner class.ClassFileInfo.NestingType getNestingType()
ClassFileInfo.NestingType enum.
A class can be either top level, nested inner, nested local, nested anonymous or nested static.ClassFileInfo.NestingTypeCopyright © 2008–2019. All rights reserved.