public class JandexClassFileInfo extends Object implements ClassFileInfo
| Constructor and Description |
|---|
JandexClassFileInfo(String className,
IndexView index,
LoadingCache<DotName,Set<String>> annotationClassAnnotationsCache,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotation(Class<? extends Annotation> annotation)
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> annotation)
Indicates whether an annotation of the specified annotation type is directly present on this class.
|
boolean |
isAssignableFrom(Class<?> fromClass)
Indicates whether this class is either the same as, or is a superclass of the specified class.
|
boolean |
isAssignableTo(Class<?> toClass)
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 |
toString() |
public JandexClassFileInfo(String className, IndexView index, LoadingCache<DotName,Set<String>> annotationClassAnnotationsCache, ClassLoader classLoader)
public String getClassName()
ClassFileInfogetClassName in interface ClassFileInfopublic boolean isAnnotationDeclared(Class<? extends Annotation> annotation)
ClassFileInfoisAnnotationDeclared in interface ClassFileInfoannotation - the specified annotation typepublic boolean containsAnnotation(Class<? extends Annotation> annotation)
ClassFileInfoInherited, is present on a direct or indirect
superclass of the given classcontainsAnnotation in interface ClassFileInfoannotation - the specified annotation typepublic int getModifiers()
ClassFileInfogetModifiers in interface ClassFileInfopublic boolean hasCdiConstructor()
ClassFileInfohasCdiConstructor in interface ClassFileInfoInject or a no-arg constructor, false otherwisepublic boolean isAssignableFrom(Class<?> fromClass)
ClassFileInfoisAssignableFrom in interface ClassFileInfofromClass - the specified classpublic boolean isAssignableTo(Class<?> toClass)
ClassFileInfoisAssignableTo in interface ClassFileInfotoClass - the specified classpublic boolean isVetoed()
ClassFileInfoisVetoed in interface ClassFileInfoVetoed annotation is present on this class or the class's package, false otherwisepublic boolean isTopLevelClass()
ClassFileInfoisTopLevelClass in interface ClassFileInfopublic String getSuperclassName()
ClassFileInfogetSuperclassName in interface ClassFileInfoCopyright © 2015. All Rights Reserved.