| Modifier and Type | Class and Description |
|---|---|
class |
ArrayType
Represents a Java array type declaration.
|
class |
ClassType
Represents a standard raw class name.
|
class |
ParameterizedType
Represents a parameterized type.
|
class |
PrimitiveType
Represents a primitive Java type.
|
class |
TypeVariable
Represents a resolved type parameter or type argument.
|
class |
TypeVariableReference
Represents a reference to a type variable in the bound of a recursive type parameter.
|
class |
UnresolvedTypeVariable
Represents a type variable that could not be resolved during indexing.
|
class |
VoidType
Specifies "void" in a method signature.
|
class |
WildcardType
Represents a generic wildcard.
|
| Modifier and Type | Field and Description |
|---|---|
static Type[] |
Type.EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
Type[] |
MethodInfo.args()
Deprecated.
|
Type |
AnnotationValue.asClass()
Returns the class name, in
Type form, that represents a Java
Class used by this value. |
Type[] |
AnnotationValue.asClassArray()
Returns an array of class types representing the underlying class array value.
|
Type |
ArrayType.component()
Returns the component type of the array.
|
static Type |
Type.create(DotName name,
Type.Kind kind)
Creates a type instance of the specified kind.
|
static Type |
Type.createWithAnnotations(DotName name,
Type.Kind kind,
AnnotationInstance[] annotations)
Creates an instance of specified type with given type
annotations. |
Type |
WildcardType.extendsBound()
Returns the upper bound of this wildcard (e.g.
|
Type |
ParameterizedType.owner()
Returns the owner (enclosing) type of this parameterized type, if the owner is parameterized
or has type annotations.
|
Type |
MethodInfo.parameterType(int i)
Returns the type of the given parameter.
|
Type |
MethodInfo.receiverType()
Returns the receiver type of this method (a declaration of the "this" reference), if specified.
|
Type |
MethodInfo.returnType()
Returns this method's return parameter type.
|
Type |
ClassInfo.EnclosingMethodInfo.returnType()
Returns the return type of the method.
|
Type |
WildcardType.superBound()
Returns the lower bound of this wildcard (e.g.
|
Type |
ClassInfo.superClassType()
Returns a super type represented by the extends clause of this class.
|
Type |
TypeTarget.target()
Returns the type which contains the respective annotation.
|
Type |
MethodParameterInfo.type()
Returns the type of this parameter.
|
Type |
RecordComponentInfo.type()
Returns the type of this record component.
|
Type |
FieldInfo.type()
Returns the
Type declared on this field. |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
ParameterizedType.arguments()
Returns the list of type arguments used to instantiate this parameterized type.
|
List<Type> |
TypeVariable.bounds() |
List<Type> |
MethodInfo.descriptorParameterTypes()
Returns a list of types of all parameters present on this method, based on the method descriptor.
|
List<Type> |
MethodInfo.exceptions()
Returns the list of throwable classes declared to be thrown by this method.
|
List<Type> |
ClassInfo.interfaceTypes()
Returns the list of types in the
implements clause of this class. |
List<Type> |
ClassInfo.EnclosingMethodInfo.parameters()
Returns the list of parameters declared by this method or constructor.
|
List<Type> |
MethodInfo.parameterTypes()
Returns a list of types of parameters declared on this method, in declaration order.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
Type value)
Adds a class-valued annotation member with given
name. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.add(String name,
Type[] values)
Adds a class array-valued annotation member with given
name. |
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 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 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)
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 MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] parameterTypes,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
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 ParameterizedType |
ParameterizedType.create(DotName name,
Type[] arguments,
Type owner)
Create a new mock instance.
|
static ParameterizedType |
ParameterizedType.create(DotName name,
Type[] arguments,
Type owner)
Create a new mock instance.
|
static WildcardType |
WildcardType.create(Type bound,
boolean isExtends)
Create a new mock instance of WildcardType.
|
static ArrayType |
ArrayType.create(Type component,
int dimensions)
Create a new mock array type instance with the specified component
and dimensions.
|
static AnnotationValue |
AnnotationValue.createClassValue(String name,
Type type) |
static Class<?> |
JandexReflection.loadRawType(Type type)
Loads a class corresponding to the raw type of given
Type from the thread context classloader. |
MethodInfo |
ClassInfo.method(String name,
Type... parameters)
Retrieves a method based on its signature, which includes a method name and an parameter type list.
|
static EquivalenceKey.TypeEquivalenceKey |
EquivalenceKey.of(Type type)
Returns an equivalence key for given type.
|
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(Type value)
Adds a class-valued annotation member called
value. |
AnnotationInstanceBuilder |
AnnotationInstanceBuilder.value(Type[] values)
Adds a class array-valued annotation member called
value. |
| Constructor and Description |
|---|
ClassExtendsTypeTarget(AnnotationTarget enclosingTarget,
Type target,
int position) |
Copyright © 2018–2022. All rights reserved.