| Modifier and Type | Method and Description |
|---|---|
| public Type | |
| public ArrayType | |
| public ClassType | ofClass(String
the binary name of the class, must not be name)nullReturns a |
| public ClassType | |
| public PrimitiveType | ofPrimitive(PrimitiveType.
the primitive type kind, must not be kindnullReturns a |
| public VoidType | |
| public ParameterizedType | Returns: the parameterized type, nevernullthe type to parameterize, must not be genericType, Class<?>... nullone or more type arguments typeArguments)Returns a |
| public ParameterizedType | Returns: the parameterized type, nevernullthe type to parameterize, must not be genericType, Type... nullone or more type arguments typeArguments)Returns a |
| public ParameterizedType | Returns: the parameterized type, nevernullthe type to parameterize, must not be genericType, Type... nullone or more type arguments typeArguments)Returns a |
| public WildcardType | Returns: aWildcardType object representing an unbounded wildcard typeReturns a |
| public WildcardType | Returns: aWildcardType object representing a wildcard type with given upper boundlower bound type, must not be lowerBound)nullReturns a |
| public WildcardType | Returns: aWildcardType object representing a wildcard type with given upper boundupper bound type, must not be upperBound)nullReturns a |
| of | back to summary |
|---|---|
| public Type of(Class<?> clazz) Returns a type from given class literal. For example:
| |
| ofArray | back to summary |
|---|---|
| public ArrayType ofArray(Type elementType, int dimensions) Returns an
Note that this method accepts the element type of an array, even though
| |
| ofClass | back to summary |
|---|---|
| public ClassType ofClass(String name) Returns a
Note that this method returns | |
| ofClass | back to summary |
|---|---|
| public ClassType ofClass(ClassInfo clazz) Returns a | |
| ofPrimitive | back to summary |
|---|---|
| public PrimitiveType ofPrimitive(PrimitiveType. Returns a
| |
| ofVoid | back to summary |
|---|---|
| public VoidType ofVoid() Returns a | |
| parameterized | back to summary |
|---|---|
| public ParameterizedType parameterized(Class<?> genericType, Class<?>... typeArguments) Returns a
| |
| parameterized | back to summary |
|---|---|
| public ParameterizedType parameterized(Class<?> genericType, Type... typeArguments) Returns a
| |
| parameterized | back to summary |
|---|---|
| public ParameterizedType parameterized(ClassType genericType, Type... typeArguments) Returns a
| |
| wildcardUnbounded | back to summary |
|---|---|
| public WildcardType wildcardUnbounded() Returns a
| |
| wildcardWithLowerBound | back to summary |
|---|---|
| public WildcardType wildcardWithLowerBound(Type lowerBound) Returns a
| |
| wildcardWithUpperBound | back to summary |
|---|---|
| public WildcardType wildcardWithUpperBound(Type upperBound) Returns a
| |