Modifier and Type | Method and Description |
---|---|
DotName |
AnnotationValue.asEnumType()
Returns the type name, in DotName form, that represents the
Java enumeration of this value.
|
DotName[] |
AnnotationValue.asEnumTypeArray()
Returns an array of the type name, in DotName form, that represents the
Java enumeration of each array element.
|
static DotName |
DotName.createComponentized(DotName prefix,
String localName)
Constructs a componentized DotName.
|
static DotName |
DotName.createComponentized(DotName prefix,
String localName,
boolean innerClass)
Constructs a componentized DotName.
|
static DotName |
DotName.createSimple(String name)
Constructs a simple DotName which stores the string in it's entirety.
|
DotName |
ClassInfo.enclosingClass()
Returns the enclosing class if this is an inner class, or null if this is an anonymous, a local, or
a top level class.
|
DotName |
ClassInfo.EnclosingMethodInfo.enclosingClass()
Returns the class name which declares this method or constructor.
|
DotName[] |
ClassInfo.interfaces()
Deprecated.
|
DotName |
ArrayType.name() |
DotName |
AnnotationInstance.name()
The name of this annotation in DotName form.
|
DotName |
ClassInfo.name()
Returns the name of the class
|
DotName |
Type.name()
Returns the raw name of this type.
|
DotName |
DotName.prefix()
Returns the parent prefix for this DotName or null if there is none.
|
DotName |
ClassInfo.superName()
Returns the name of the super class declared by the extends clause of this class.
|
Modifier and Type | Method and Description |
---|---|
Map<DotName,List<AnnotationInstance>> |
ClassInfo.annotations()
Returns a map indexed by annotation name, with a value list of annotation instances.
|
List<DotName> |
ClassInfo.interfaceNames()
Returns a list of names for all interfaces this class implements.
|
Modifier and Type | Method and Description |
---|---|
AnnotationInstance |
MethodInfo.annotation(DotName name)
Retrieves an annotation instance declared on this method, it parameters, or any type within the signature
of the method, by the name of the annotation.
|
int |
DotName.compareTo(DotName other)
Compares a
DotName to another DotName and returns whether this DotName
is lesser than, greater than, or equal to the specified DotName. |
static AnnotationInstance |
AnnotationInstance.create(DotName name,
AnnotationTarget target,
AnnotationValue[] values)
Construct a new mock annotation instance.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
AnnotationTarget target,
List<AnnotationValue> values)
Construct a new mock annotation instance.
|
static ClassInfo |
ClassInfo.create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
Map<DotName,List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor)
Deprecated.
|
static ClassInfo |
ClassInfo.create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
Map<DotName,List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor)
Deprecated.
|
static Type |
Type.create(DotName name,
Type.Kind kind)
Creates a type instance of the specified kind.
|
static DotName |
DotName.createComponentized(DotName prefix,
String localName)
Constructs a componentized DotName.
|
static DotName |
DotName.createComponentized(DotName prefix,
String localName,
boolean innerClass)
Constructs a componentized DotName.
|
static AnnotationValue |
AnnotationValue.createEnumValue(String name,
DotName typeName,
String value) |
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.
|
Set<ClassInfo> |
Index.getAllKnownImplementors(DotName interfaceName) |
Set<ClassInfo> |
CompositeIndex.getAllKnownSubclasses(DotName className)
Returns all known (including non-direct) sub classes of the given class.
|
Collection<ClassInfo> |
IndexView.getAllKnownSubclasses(DotName className)
Returns all known (including non-direct) sub classes of the given class.
|
Collection<ClassInfo> |
Index.getAllKnownSubclasses(DotName className) |
List<AnnotationInstance> |
CompositeIndex.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
Collection<AnnotationInstance> |
IndexView.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
List<AnnotationInstance> |
Index.getAnnotations(DotName annotationName)
Obtains a list of instances for the specified annotation.
|
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.
|
ClassInfo |
Index.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
Collection<ClassInfo> |
CompositeIndex.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface name.
|
Collection<ClassInfo> |
IndexView.getKnownDirectImplementors(DotName className)
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 name.
|
Set<ClassInfo> |
CompositeIndex.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class name.
|
Collection<ClassInfo> |
IndexView.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class name.
|
List<ClassInfo> |
Index.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class name.
|
boolean |
MethodInfo.hasAnnotation(DotName name)
Returns whether or not the annotation instance with the given name occurs on this method, its parameters
or its signature
|
Modifier and Type | Method and Description |
---|---|
static ClassInfo |
ClassInfo.create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
Map<DotName,List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor)
Deprecated.
|
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)
Constructs a "mock" Index using the passed values.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.