Package io.quarkus.gizmo
Class Type
java.lang.Object
io.quarkus.gizmo.Type
- Direct Known Subclasses:
Type.ArrayType,Type.ClassType,Type.ParameterizedType,Type.PrimitiveType,Type.TypeVariable,Type.VoidType,Type.WildcardType
Used to express types when building a generic signature of some declaration.
Implementations are created via factory methods such as voidType() and classType(Class).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidappendToSignature(StringBuilder signature) static Type.ArrayTypestatic Type.ArrayType(package private) Type.ArrayTypeasArray()(package private) Type.ClassTypeasClass()(package private) Type.ParameterizedType(package private) Type.PrimitiveType(package private) Type.TypeVariable(package private) Type.VoidTypeasVoid()(package private) Type.WildcardTypestatic Type.PrimitiveTypestatic Type.PrimitiveTypebyteType()static Type.PrimitiveTypecharType()static Type.ClassTypestatic Type.ClassTypestatic Type.ClassTypeclassType(org.jboss.jandex.DotName className) static Type.PrimitiveTypestatic Type.PrimitiveTypestatic Type.PrimitiveTypeintType()(package private) booleanisArray()(package private) booleanisClass()(package private) boolean(package private) boolean(package private) boolean(package private) booleanisVoid()(package private) booleanstatic Type.PrimitiveTypelongType()static Type.ParameterizedTypeparameterizedType(Type.ClassType genericClass, Type... typeArguments) static Type.PrimitiveTypestatic Type.TypeVariabletypeVariable(String name) static Type.TypeVariabletypeVariable(String name, Type classOrTypeVariableBound) static Type.TypeVariabletypeVariable(String name, Type classBound, Type... interfaceBounds) static Type.VoidTypevoidType()static Type.WildcardTypestatic Type.WildcardTypewildcardTypeWithLowerBound(Type bound) static Type.WildcardTypewildcardTypeWithUpperBound(Type bound)
-
Constructor Details
-
Type
public Type()
-
-
Method Details
-
voidType
-
booleanType
-
byteType
-
shortType
-
intType
-
longType
-
floatType
-
doubleType
-
charType
-
classType
-
classType
-
classType
-
parameterizedType
public static Type.ParameterizedType parameterizedType(Type.ClassType genericClass, Type... typeArguments) -
arrayType
-
arrayType
-
typeVariable
-
typeVariable
-
typeVariable
-
wildcardTypeWithUpperBound
-
wildcardTypeWithLowerBound
-
wildcardTypeUnbounded
-
appendToSignature
-
isVoid
boolean isVoid() -
isPrimitive
boolean isPrimitive() -
isClass
boolean isClass() -
isArray
boolean isArray() -
isParameterizedType
boolean isParameterizedType() -
isTypeVariable
boolean isTypeVariable() -
isWildcard
boolean isWildcard() -
asVoid
Type.VoidType asVoid() -
asPrimitive
Type.PrimitiveType asPrimitive() -
asClass
Type.ClassType asClass() -
asArray
Type.ArrayType asArray() -
asParameterizedType
Type.ParameterizedType asParameterizedType() -
asTypeVariable
Type.TypeVariable asTypeVariable() -
asWildcard
Type.WildcardType asWildcard()
-