public interface ClassFileInfo
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
|
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.
|
boolean |
isTopLevelClass()
Indicates whether this class is a top-level class or an inner class.
|
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 otherwiseboolean isTopLevelClass()
Copyright © 2008–2017. All rights reserved.