| Modifier and Type | Method and Description |
|---|---|
ClassInfo |
MethodParameterInfo.asClass() |
ClassInfo |
MethodInfo.asClass() |
ClassInfo |
RecordComponentInfo.asClass() |
ClassInfo |
TypeTarget.asClass() |
ClassInfo |
AnnotationTarget.asClass()
Casts and returns this target as a
ClassInfo if it is of kind CLASS |
ClassInfo |
FieldInfo.asClass() |
ClassInfo |
ClassInfo.asClass() |
static ClassInfo |
ClassInfo.create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
Map<DotName,List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor)
Deprecated.
|
ClassInfo |
MethodInfo.declaringClass()
Returns the class that declared this method
|
ClassInfo |
RecordComponentInfo.declaringClass()
Returns the (record) class declaring this record component.
|
ClassInfo |
FieldInfo.declaringClass()
Returns the class which declared the field
|
ClassInfo |
ClassExtendsTypeTarget.enclosingTarget() |
default ClassInfo |
IndexView.getClassByName(Class<?> clazz)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
Index.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
CompositeIndex.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
IndexView.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
default ClassInfo |
IndexView.getClassByName(String className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
Indexer.index$$bridge(InputStream stream) |
ClassInfo |
Indexer.indexClass$$bridge(Class<?> clazz) |
ClassInfo |
ModuleInfo.moduleInfoClass() |
static ClassInfo |
Index.singleClass(byte[] classData)
|
static ClassInfo |
Index.singleClass(Class<?> clazz)
|
static ClassInfo |
Index.singleClass(InputStream classData)
|
| Modifier and Type | Method and Description |
|---|---|
default Collection<ClassInfo> |
IndexView.getAllKnownImplementors(Class<?> interfaceClass)
Returns all known classes that implement the given interface, directly and indirectly.
|
Set<ClassInfo> |
Index.getAllKnownImplementors(DotName interfaceName)
Returns all known classes that implement the given interface, directly and indirectly.
|
Set<ClassInfo> |
CompositeIndex.getAllKnownImplementors(DotName interfaceName)
Returns all known classes that implement the given interface, directly and indirectly.
|
Collection<ClassInfo> |
IndexView.getAllKnownImplementors(DotName interfaceName)
Returns all known classes that implement the given interface, directly and indirectly.
|
default Collection<ClassInfo> |
IndexView.getAllKnownImplementors(String interfaceName)
Returns all known classes that implement the given interface, directly and indirectly.
|
default Collection<ClassInfo> |
IndexView.getAllKnownSubclasses(Class<?> clazz)
Returns all known (including non-direct) subclasses of the given class.
|
Collection<ClassInfo> |
Index.getAllKnownSubclasses(DotName className) |
Set<ClassInfo> |
CompositeIndex.getAllKnownSubclasses(DotName className)
Returns all known (including non-direct) subclasses of the given class.
|
Collection<ClassInfo> |
IndexView.getAllKnownSubclasses(DotName className)
Returns all known (including non-direct) subclasses of the given class.
|
default Collection<ClassInfo> |
IndexView.getAllKnownSubclasses(String className)
Returns all known (including non-direct) subclasses of the given class.
|
default Collection<ClassInfo> |
IndexView.getAllKnownSubinterfaces(Class<?> iface)
Returns all known interfaces that extend the given interface, directly and indirectly.
|
Collection<ClassInfo> |
Index.getAllKnownSubinterfaces(DotName interfaceName)
Returns all known interfaces that extend the given interface, directly and indirectly.
|
Collection<ClassInfo> |
CompositeIndex.getAllKnownSubinterfaces(DotName interfaceName)
Returns all known interfaces that extend the given interface, directly and indirectly.
|
Collection<ClassInfo> |
IndexView.getAllKnownSubinterfaces(DotName interfaceName)
Returns all known interfaces that extend the given interface, directly and indirectly.
|
default Collection<ClassInfo> |
IndexView.getAllKnownSubinterfaces(String interfaceName)
Returns all known interfaces that extend the given interface, directly and indirectly.
|
Collection<ClassInfo> |
Index.getClassesInPackage(DotName packageName) |
Collection<ClassInfo> |
CompositeIndex.getClassesInPackage(DotName packageName)
Returns all classes known to this index that are present in given package.
|
Collection<ClassInfo> |
IndexView.getClassesInPackage(DotName packageName)
Returns all classes known to this index that are present in given package.
|
default Collection<ClassInfo> |
IndexView.getClassesInPackage(String packageName)
Returns all classes known to this index that are present in given package.
|
Collection<ClassInfo> |
Index.getKnownClasses()
Gets all known classes by this index (those which were scanned).
|
Collection<ClassInfo> |
CompositeIndex.getKnownClasses()
Gets all known classes by this index (those which were scanned).
|
Collection<ClassInfo> |
IndexView.getKnownClasses()
Gets all known classes by this index (those which were scanned).
|
default Collection<ClassInfo> |
IndexView.getKnownDirectImplementors(Class<?> clazz)
Gets all known direct implementors of the specified interface name.
|
List<ClassInfo> |
Index.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface.
|
Collection<ClassInfo> |
CompositeIndex.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface.
|
Collection<ClassInfo> |
IndexView.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface.
|
default Collection<ClassInfo> |
IndexView.getKnownDirectImplementors(String className)
Gets all known direct implementors of the specified interface name.
|
default Collection<ClassInfo> |
IndexView.getKnownDirectSubclasses(Class<?> clazz)
Gets all known direct subclasses of the specified class.
|
List<ClassInfo> |
Index.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class.
|
Set<ClassInfo> |
CompositeIndex.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class.
|
Collection<ClassInfo> |
IndexView.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class.
|
default Collection<ClassInfo> |
IndexView.getKnownDirectSubclasses(String className)
Gets all known direct subclasses of the specified class.
|
default Collection<ClassInfo> |
IndexView.getKnownDirectSubinterfaces(Class<?> iface)
Gets all known direct subinterfaces of the specified interface.
|
List<ClassInfo> |
Index.getKnownDirectSubinterfaces(DotName interfaceName)
Gets all known direct subinterfaces of the specified interface.
|
Collection<ClassInfo> |
CompositeIndex.getKnownDirectSubinterfaces(DotName interfaceName)
Gets all known direct subinterfaces of the specified interface.
|
Collection<ClassInfo> |
IndexView.getKnownDirectSubinterfaces(DotName interfaceName)
Gets all known direct subinterfaces of the specified interface.
|
default Collection<ClassInfo> |
IndexView.getKnownDirectSubinterfaces(String interfaceName)
Gets all known direct subinterfaces of the specified interface.
|
default Collection<ClassInfo> |
IndexView.getKnownUsers(Class<?> clazz)
Obtains a list of classes that use the specified class.
|
List<ClassInfo> |
Index.getKnownUsers(DotName className)
Obtains a list of classes that use the specified class.
|
Collection<ClassInfo> |
CompositeIndex.getKnownUsers(DotName className)
Obtains a list of classes that use the specified class.
|
Collection<ClassInfo> |
IndexView.getKnownUsers(DotName className)
Obtains a list of classes that use the specified class.
|
default Collection<ClassInfo> |
IndexView.getKnownUsers(String className)
Obtains a list of classes that use the specified class.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
ClassInfo value)
Adds a class-valued annotation member with given
name. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
ClassInfo[] values)
Adds a class array-valued annotation member with given
name. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
ClassInfo enumType,
String enumValue)
Adds an enum-valued annotation member with given
name. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
ClassInfo enumType,
String[] enumValues)
Adds an enum array-valued annotation member with given
name. |
static AnnotationInstanceBuilder |
AnnotationInstance.builder(ClassInfo annotationType)
Creates a builder of annotation instances of given
annotationType. |
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
String[] parameterNames,
Type[] parameterTypes,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
static RecordComponentInfo |
RecordComponentInfo.create(ClassInfo clazz,
String name,
Type type)
Constructs a new mock record component info
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] parameterTypes,
Type returnType,
short flags)
Construct a new mock Method instance.
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] parameterTypes,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
static FieldInfo |
FieldInfo.create(ClassInfo clazz,
String name,
Type type,
short flags)
Construct a new mock Field instance.
|
static Class<?> |
JandexReflection.loadClass(ClassInfo clazz)
Loads a class corresponding to given
ClassInfo from the thread context classloader. |
static EquivalenceKey.ClassEquivalenceKey |
EquivalenceKey.of(ClassInfo clazz)
Returns an equivalence key for given class.
|
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(ClassInfo value)
Adds a class-valued annotation member called
value. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(ClassInfo[] values)
Adds a class array-valued annotation member called
value. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(ClassInfo enumType,
String enumValue)
Adds an enum-valued annotation member called
value. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(ClassInfo enumType,
String[] enumValues)
Adds an enum array-valued annotation member called
value. |
| Modifier and Type | Method and Description |
|---|---|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> subinterfaces,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> subinterfaces,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> subinterfaces,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> subinterfaces,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(Map<DotName,List<AnnotationInstance>> annotations,
Map<DotName,List<ClassInfo>> subclasses,
Map<DotName,List<ClassInfo>> subinterfaces,
Map<DotName,List<ClassInfo>> implementors,
Map<DotName,ClassInfo> classes,
Map<DotName,List<ClassInfo>> users)
Constructs a "mock" Index using the passed values.
|
Copyright © 2018–2022. All rights reserved.