Uses of Class
org.jboss.jandex.Type
-
-
Uses of Type in org.jboss.jandex
Subclasses of Type in org.jboss.jandex Modifier and Type Class 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.Fields in org.jboss.jandex declared as Type Modifier and Type Field Description static Type[]
Type. EMPTY_ARRAY
Methods in org.jboss.jandex that return Type Modifier and Type Method Description Type[]
MethodInfo. args()
Deprecated.Type
AnnotationValue. asClass()
Returns the class name, inType
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 theType
declared on this field.Type
RecordComponentInfo. type()
Returns the type of this record component.Methods in org.jboss.jandex that return types with arguments of type Type Modifier and Type Method 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.Methods in org.jboss.jandex with parameters of type Type Modifier and Type Method Description static ArrayType
ArrayType. create(Type component, int dimensions)
Create a new mock array type instance with the specified component and dimensions.static FieldInfo
FieldInfo. create(ClassInfo clazz, String name, Type type, short flags)
Construct a new mock Field instance.static MethodInfo
MethodInfo. create(ClassInfo clazz, String name, String[] parameterNames, Type[] args, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions)
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 MethodInfo
MethodInfo. create(ClassInfo clazz, String name, Type[] args, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions)
Construct a new mock Method instance.static ParameterizedType
ParameterizedType. create(DotName name, Type[] arguments, Type owner)
Create a new mock instance.static RecordComponentInfo
RecordComponentInfo. create(ClassInfo clazz, String name, Type type)
Constructs a new mock record component infostatic WildcardType
WildcardType. create(Type bound, boolean isExtends)
Create a new mock instance of WildcardType.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.Constructors in org.jboss.jandex with parameters of type Type Constructor Description ClassExtendsTypeTarget(AnnotationTarget enclosingTarget, Type target, int position)
-