Uses of Class
org.jboss.jandex.Type
Packages that use Type
Package
Description
Jandex is a space efficient Java class file indexer and offline reflection library.
-
Uses of Type in org.jboss.jandex
Subclasses of Type in org.jboss.jandexModifier and TypeClassDescriptionfinal classRepresents a Java array type.final classRepresents a class type.classRepresents a parameterized type.final classRepresents a primitive Java type.final classRepresents a resolved type parameter or type argument.final classRepresents a reference to a type variable in the bound of a recursive type parameter.final classRepresents a type variable that could not be resolved during indexing.classRepresents thevoidpseudo-type, which may appear in a method signature.classRepresents a generic wildcard.Fields in org.jboss.jandex declared as TypeFields in org.jboss.jandex with type parameters of type TypeMethods in org.jboss.jandex that return TypeModifier and TypeMethodDescriptionfinal Type[]MethodInfo.args()Deprecated.AnnotationValue.asClass()Returns the class name, inTypeform, that represents a Java Class used by this value.Type[]AnnotationValue.asClassArray()Returns an array of class types representing the underlying class array value.ArrayType.component()Deprecated.ArrayType.componentType()Returns the component type of the array.ArrayType.constituent()Returns the constituent type of the array.static TypeCreates a type that corresponds to the givenclazz.static TypeCreates a type of the specified kind andnamein theClass.getName()format.static TypeType.createWithAnnotations(DotName name, Type.Kind kind, AnnotationInstance[] annotations) Creates an instance of specified type with given typeannotations.ArrayType.elementType()Returns the element type of the array.WildcardType.extendsBound()Returns the upper bound of this wildcard (e.g.ParameterizedType.owner()Returns the owner (enclosing) type of this parameterized type, if the owner is parameterized or has type annotations.final TypeMethodInfo.parameterType(int i) Returns the type of the given parameter.static TypeCreates aTypeby parsing the given string according to the following grammar:final TypeMethodInfo.receiverType()Returns the receiver type of this method (a declaration of the "this" reference), if specified.ClassInfo.EnclosingMethodInfo.returnType()Returns the return type of the enclosing method.final TypeMethodInfo.returnType()Returns this method's return parameter type.WildcardType.superBound()Returns the lower bound of this wildcard (e.g.final TypeClassInfo.superClassType()Returns a super type represented by the extends clause of this class.TypeTarget.target()Returns the type which contains the respective annotation.final TypeFieldInfo.type()Returns theTypedeclared on this field.final TypeMethodParameterInfo.type()Returns the type of this parameter.RecordComponentInfo.type()Returns the type of this record component.Methods in org.jboss.jandex that return types with arguments of type TypeModifier and TypeMethodDescriptionParameterizedType.arguments()Returns the list of type arguments used to instantiate this parameterized type.TypeVariable.bounds()MethodInfo.descriptorParameterTypes()Returns a list of types of all parameters present on this method, based on the method descriptor.MethodInfo.exceptions()Returns the list of throwable classes declared to be thrown by this method.ClassInfo.interfaceTypes()Returns the list of types in theimplementsclause of this class.ClassInfo.EnclosingMethodInfo.parameters()Returns the list of parameter types declared by the enclosing method or constructor.MethodInfo.parameterTypes()Returns a list of types of parameters declared on this method, in declaration order.Methods in org.jboss.jandex with parameters of type TypeModifier and TypeMethodDescriptionAdds a class-valued annotation member with givenname.Adds a class array-valued annotation member with givenname.ParameterizedType.Builder.addArgument(Type argument) Adds a type argument.Adds a bound.static ArrayType.BuilderCreate a builder of an array type.static ArrayTypeCreate a new array type instance with the specified number of dimensions and the specified constituent type.static FieldInfoConstruct a new mock Field instance.static MethodInfoMethodInfo.create(ClassInfo clazz, String name, String[] parameterNames, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions) Construct a new mock Method instance.static MethodInfoMethodInfo.create(ClassInfo clazz, String name, Type[] parameterTypes, Type returnType, short flags) Construct a new mock Method instance.static MethodInfoMethodInfo.create(ClassInfo clazz, String name, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions) Construct a new mock Method instance.static ParameterizedTypeCreate an instance of a parameterized type with given genericclazzand given typearguments.static ParameterizedTypeCreate an instance of a parameterized type with given genericclazzand given typearguments.static ParameterizedTypeCreate an instance of a parameterized type with givenname, which denotes a generic class, and given typearguments.static ParameterizedTypeCreate an instance of a parameterized type with givenname, which denotes a generic class, and given typearguments.static ParameterizedTypeCreate an instance of a parameterized type with givenname, which denotes a generic class, and given typearguments.static ParameterizedTypeCreate an instance of a parameterized type with givenname, which denotes a generic class, and given typearguments.static RecordComponentInfoConstructs a new mock record component infostatic WildcardTypeDeprecated.static AnnotationValueAnnotationValue.createClassValue(String name, Type type) static WildcardTypeWildcardType.createLowerBound(Type lowerBound) Create a new wildcard type with a lower (super) bound.static WildcardTypeWildcardType.createUpperBound(Type upperBound) Create a new wildcard type with an upper (extends) bound.static voidAppends a bytecode descriptor of a single type to givenStringBuilder.static voidGenericSignature.forType(Type type, Function<String, Type> typeVariableSubstitution, StringBuilder result) Appends a generic signature of a single type to givenStringBuilder.static booleanReturns whether the giventypeis a wrapper class for any primitive type (or, in other words, whether thetypemay be a result of a boxing conversion of any primitive type.)static Class<?> JandexReflection.loadRawType(Type type) Loads a class corresponding to the raw type of givenTypefrom the thread context classloader.static Typefinal MethodInfoRetrieves a method based on its signature, which includes a method name and a parameter type list.Returns an equivalence key for given type.WildcardType.Builder.setLowerBound(Type lowerBound) Sets the lower bound.Sets the owner.WildcardType.Builder.setUpperBound(Type upperBound) Sets the upper bound.Adds a class-valued annotation member calledvalue.Adds a class array-valued annotation member calledvalue.Method parameters in org.jboss.jandex with type arguments of type TypeModifier and TypeMethodDescriptionClassInfo.descriptor(Function<String, Type> typeVariableSubstitution) Returns a bytecode descriptor of the type introduced by this class.Descriptor.descriptor(Function<String, Type> typeVariableSubstitution) Returns a bytecode descriptor of this element.FieldInfo.descriptor(Function<String, Type> typeVariableSubstitution) Returns a bytecode descriptor of this field.MethodInfo.descriptor(Function<String, Type> typeVariableSubstitution) Returns a bytecode descriptor of this method.RecordComponentInfo.descriptor(Function<String, Type> typeVariableSubstitution) Returns a bytecode descriptor of this record component.Type.descriptor(Function<String, Type> typeVariableSubstitution) Returns the bytecode descriptor of this type (or its erasure in case of generic types).static voidAppends a bytecode descriptor of a single type to givenStringBuilder.static voidGenericSignature.forType(Type type, Function<String, Type> typeVariableSubstitution, StringBuilder result) Appends a generic signature of a single type to givenStringBuilder.static voidGenericSignature.forTypeParameters(List<TypeVariable> typeParameters, Function<String, Type> typeVariableSubstitution, StringBuilder result) Appends a generic signature of a type parameter list, including the<at the beginning and>at the end, to givenStringBuilder.ClassInfo.genericSignature(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this class, possibly without any generic-related information.FieldInfo.genericSignature(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this field, possibly without any generic-related information.GenericSignature.genericSignature(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this declaration, possibly without any generic-related information.MethodInfo.genericSignature(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this method, possibly without any generic-related information.RecordComponentInfo.genericSignature(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this record component, possibly without any generic-related information.default StringGenericSignature.genericSignatureIfRequired(Function<String, Type> typeVariableSubstitution) Returns a generic signature of this declaration if required.final MethodInfoRetrieves a method based on its signature, which includes a method name and a parameter type list.Constructors in org.jboss.jandex with parameters of type TypeModifierConstructorDescriptionClassExtendsTypeTarget(AnnotationTarget enclosingTarget, Type target, int position)
MethodInfo.parameterTypes()