public class JvmTypeReferenceBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JvmTypeReferenceBuilder.Factory |
| Constructor and Description |
|---|
JvmTypeReferenceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
JvmTypeReference |
typeRef(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(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(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 argumentsJvmTypeReferencepublic JvmTypeReference typeRef(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 argumentsJvmTypeReferencepublic 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 argumentsJvmTypeReferencepublic 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
Copyright © 2015. All Rights Reserved.