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()
ClassFileInfo
getClassName
in interface ClassFileInfo
public boolean isAnnotationDeclared(Class<? extends Annotation> annotation)
ClassFileInfo
isAnnotationDeclared
in interface ClassFileInfo
annotation
- the specified annotation typepublic boolean containsAnnotation(Class<? extends Annotation> annotation)
ClassFileInfo
Inherited
, is present on a direct or indirect
superclass of the given classcontainsAnnotation
in interface ClassFileInfo
annotation
- the specified annotation typepublic int getModifiers()
ClassFileInfo
getModifiers
in interface ClassFileInfo
public boolean hasCdiConstructor()
ClassFileInfo
hasCdiConstructor
in interface ClassFileInfo
Inject
or a no-arg constructor, false otherwisepublic boolean isAssignableFrom(Class<?> fromClass)
ClassFileInfo
isAssignableFrom
in interface ClassFileInfo
fromClass
- the specified classpublic boolean isAssignableTo(Class<?> toClass)
ClassFileInfo
isAssignableTo
in interface ClassFileInfo
toClass
- the specified classpublic boolean isVetoed()
ClassFileInfo
isVetoed
in interface ClassFileInfo
Vetoed
annotation is present on this class or the class's package, false otherwisepublic boolean isTopLevelClass()
ClassFileInfo
isTopLevelClass
in interface ClassFileInfo
public String getSuperclassName()
ClassFileInfo
getSuperclassName
in interface ClassFileInfo
Copyright © 2015. All Rights Reserved.