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
public abstract class Type extends java.lang.ObjectUsed to express types when building a generic signature of some declaration.Implementations are created via factory methods such as
voidType()andclassType(Class).- See Also:
SignatureBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classType.ArrayTypestatic classType.ClassTypestatic classType.ParameterizedTypestatic classType.PrimitiveTypestatic classType.TypeVariablestatic classType.VoidTypestatic classType.WildcardType
-
Constructor Summary
Constructors Constructor Description Type()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract voidappendToSignature(java.lang.StringBuilder signature)static Type.ArrayTypearrayType(Type elementType)static Type.ArrayTypearrayType(Type elementType, int dimensions)(package private) Type.ArrayTypeasArray()(package private) Type.ClassTypeasClass()(package private) Type.ParameterizedTypeasParameterizedType()(package private) Type.PrimitiveTypeasPrimitive()(package private) Type.TypeVariableasTypeVariable()(package private) Type.VoidTypeasVoid()(package private) Type.WildcardTypeasWildcard()static Type.PrimitiveTypebooleanType()static Type.PrimitiveTypebyteType()static Type.PrimitiveTypecharType()static Type.ClassTypeclassType(java.lang.Class<?> clazz)static Type.ClassTypeclassType(java.lang.String className)static Type.ClassTypeclassType(org.jboss.jandex.DotName className)static Type.PrimitiveTypedoubleType()static Type.PrimitiveTypefloatType()static Type.PrimitiveTypeintType()(package private) booleanisArray()(package private) booleanisClass()(package private) booleanisParameterizedType()(package private) booleanisPrimitive()(package private) booleanisTypeVariable()(package private) booleanisVoid()(package private) booleanisWildcard()static Type.PrimitiveTypelongType()static Type.ParameterizedTypeparameterizedType(Type.ClassType genericClass, Type... typeArguments)static Type.PrimitiveTypeshortType()static Type.TypeVariabletypeVariable(java.lang.String name)static Type.TypeVariabletypeVariable(java.lang.String name, Type classOrTypeVariableBound)static Type.TypeVariabletypeVariable(java.lang.String name, Type classBound, Type... interfaceBounds)static Type.VoidTypevoidType()static Type.WildcardTypewildcardTypeUnbounded()static Type.WildcardTypewildcardTypeWithLowerBound(Type bound)static Type.WildcardTypewildcardTypeWithUpperBound(Type bound)
-
-
-
Method Detail
-
voidType
public static Type.VoidType voidType()
-
booleanType
public static Type.PrimitiveType booleanType()
-
byteType
public static Type.PrimitiveType byteType()
-
shortType
public static Type.PrimitiveType shortType()
-
intType
public static Type.PrimitiveType intType()
-
longType
public static Type.PrimitiveType longType()
-
floatType
public static Type.PrimitiveType floatType()
-
doubleType
public static Type.PrimitiveType doubleType()
-
charType
public static Type.PrimitiveType charType()
-
classType
public static Type.ClassType classType(org.jboss.jandex.DotName className)
-
classType
public static Type.ClassType classType(java.lang.String className)
-
classType
public static Type.ClassType classType(java.lang.Class<?> clazz)
-
parameterizedType
public static Type.ParameterizedType parameterizedType(Type.ClassType genericClass, Type... typeArguments)
-
arrayType
public static Type.ArrayType arrayType(Type elementType)
-
arrayType
public static Type.ArrayType arrayType(Type elementType, int dimensions)
-
typeVariable
public static Type.TypeVariable typeVariable(java.lang.String name)
-
typeVariable
public static Type.TypeVariable typeVariable(java.lang.String name, Type classOrTypeVariableBound)
-
typeVariable
public static Type.TypeVariable typeVariable(java.lang.String name, Type classBound, Type... interfaceBounds)
-
wildcardTypeWithUpperBound
public static Type.WildcardType wildcardTypeWithUpperBound(Type bound)
-
wildcardTypeWithLowerBound
public static Type.WildcardType wildcardTypeWithLowerBound(Type bound)
-
wildcardTypeUnbounded
public static Type.WildcardType wildcardTypeUnbounded()
-
appendToSignature
abstract void appendToSignature(java.lang.StringBuilder signature)
-
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()
-
-