public class JvmTypeReferenceBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JvmTypeReferenceBuilder.Factory |
Constructor and Description |
---|
JvmTypeReferenceBuilder() |
Modifier and Type | Method and Description |
---|---|
JvmTypeReference |
typeRef(java.lang.Class<?> clazz,
JvmTypeReference... typeArgs)
Creates a new
JvmTypeReference pointing to the given class and containing the given type arguments. |
JvmTypeReference |
typeRef(JvmType type,
JvmTypeReference... typeArgs)
Creates a new
JvmTypeReference pointing to the given class and containing the given type arguments. |
JvmTypeReference |
typeRef(java.lang.String typeName,
JvmTypeReference... typeArgs)
Creates a new
JvmTypeReference pointing to the given class and containing the given type arguments. |
JvmTypeReference |
wildcard()
Creates a new wildcard type reference with upper bound
Object . |
JvmTypeReference |
wildcardExtends(JvmTypeReference extendsBound)
Creates a new wildcard type reference with the given type as the upper bound.
|
JvmTypeReference |
wildcardSuper(JvmTypeReference superBound)
Creates a new wildcard type reference with the given type as the lower bound and
Object as upper bound. |
public JvmTypeReference typeRef(java.lang.Class<?> clazz, JvmTypeReference... typeArgs)
JvmTypeReference
pointing to the given class and containing the given type arguments.clazz
- the class the type reference shall point to.typeArgs
- type argumentsJvmTypeReference
public JvmTypeReference typeRef(java.lang.String typeName, JvmTypeReference... typeArgs)
JvmTypeReference
pointing to the given class and containing the given type arguments.typeName
- the name of the type the reference shall point to.typeArgs
- type argumentsJvmTypeReference
public JvmTypeReference typeRef(JvmType type, JvmTypeReference... typeArgs)
JvmTypeReference
pointing to the given class and containing the given type arguments.type
- the type the reference shall point to.typeArgs
- type argumentsJvmTypeReference
public JvmTypeReference wildcardExtends(JvmTypeReference extendsBound)
wildcardExtends(typeRef(CharSequence))would create a type reference representing
? extends CharSequence
extendsBound
- the upper bound of the wildcardpublic JvmTypeReference wildcardSuper(JvmTypeReference superBound)
Object
as upper bound.
For example:
wildcardSuper(typeRef(CharSequence))would create a type reference representing
? super CharSequence
superBound
- the super bound of the wildcardpublic JvmTypeReference wildcard()
Object
.
I.e. ? extends Object