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 |
|---|---|
org.eclipse.xtext.common.types.JvmTypeReference |
typeRef(java.lang.Class<?> clazz,
org.eclipse.xtext.common.types.JvmTypeReference... typeArgs)
Creates a new
JvmTypeReference pointing to the given class and containing the given type arguments. |
org.eclipse.xtext.common.types.JvmTypeReference |
typeRef(org.eclipse.xtext.common.types.JvmType type,
org.eclipse.xtext.common.types.JvmTypeReference... typeArgs)
Creates a new
JvmTypeReference pointing to the given class and containing the given type arguments. |
org.eclipse.xtext.common.types.JvmTypeReference |
typeRef(java.lang.String typeName,
org.eclipse.xtext.common.types.JvmTypeReference... typeArgs)
Creates a new
JvmTypeReference pointing to the given class and containing the given type arguments. |
org.eclipse.xtext.common.types.JvmTypeReference |
wildcard()
Creates a new wildcard type reference with upper bound
Object. |
org.eclipse.xtext.common.types.JvmTypeReference |
wildcardExtends(org.eclipse.xtext.common.types.JvmTypeReference extendsBound)
Creates a new wildcard type reference with the given type as the upper bound.
|
org.eclipse.xtext.common.types.JvmTypeReference |
wildcardSuper(org.eclipse.xtext.common.types.JvmTypeReference superBound)
Creates a new wildcard type reference with the given type as the lower bound and
Object as upper bound. |
public org.eclipse.xtext.common.types.JvmTypeReference typeRef(java.lang.Class<?> clazz,
org.eclipse.xtext.common.types.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 org.eclipse.xtext.common.types.JvmTypeReference typeRef(java.lang.String typeName,
org.eclipse.xtext.common.types.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 org.eclipse.xtext.common.types.JvmTypeReference typeRef(org.eclipse.xtext.common.types.JvmType type,
org.eclipse.xtext.common.types.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 org.eclipse.xtext.common.types.JvmTypeReference wildcardExtends(org.eclipse.xtext.common.types.JvmTypeReference extendsBound)
wildcardExtends(typeRef(CharSequence))would create a type reference representing
? extends CharSequence
extendsBound - the upper bound of the wildcardpublic org.eclipse.xtext.common.types.JvmTypeReference wildcardSuper(org.eclipse.xtext.common.types.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 org.eclipse.xtext.common.types.JvmTypeReference wildcard()
Object.
I.e. ? extends Object