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 generic parameterized type.
|
class |
PrimitiveType
Represents a primitive Java type.
|
class |
TypeVariable
Represents a resolved type parameter or type argument.
|
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.
|
Type |
WildcardType.extendsBound()
Returns the extends (upper) bound of this wildcard.
|
Type |
ParameterizedType.owner()
Returns the owner (enclosing) type of this parameterized type if the owner is parameterized,
or contains type annotations.
|
Type |
MethodInfo.receiverType()
Returns the receiver type of this method (a declaration of the "this" reference), if specified.
|
Type |
ClassInfo.EnclosingMethodInfo.returnType()
Returns the return type of the method.
|
Type |
MethodInfo.returnType()
Returns this method's return parameter type.
|
Type |
WildcardType.superBound()
Returns the super (lower) bound of this wildcard.
|
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 |
FieldInfo.type()
Returns the
Type declared on this field. |
Modifier and Type | Method and Description |
---|---|
List<Type> |
ParameterizedType.arguments()
Returns the list of arguments passed to this Parameterized type.
|
List<Type> |
TypeVariable.bounds() |
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.parameters()
Returns a list containing the types of all parameters declared on this method, in parameter order.
|
Modifier and Type | Method and Description |
---|---|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] args,
Type returnType,
short flags)
Construct a new mock Method instance.
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
String name,
Type[] args,
Type returnType,
short flags)
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 AnnotationValue |
AnnotationValue.createClassValue(String name,
Type type) |
MethodInfo |
ClassInfo.method(String name,
Type... parameters)
Retrieves a method based on its signature, which includes a method name and an argument list.
|
Constructor and Description |
---|
ClassExtendsTypeTarget(AnnotationTarget enclosingTarget,
Type target,
int position) |
Copyright © 2018 JBoss by Red Hat. All rights reserved.