public class TypeReferences
extends java.lang.Object
Constructor and Description |
---|
TypeReferences() |
Modifier and Type | Method and Description |
---|---|
JvmAnyTypeReference |
createAnyTypeReference(org.eclipse.emf.common.notify.Notifier context) |
JvmGenericArrayTypeReference |
createArrayType(JvmTypeReference componentType) |
JvmDelegateTypeReference |
createDelegateTypeReference(JvmTypeReference typeRef) |
JvmMultiTypeReference |
createMultiTypeReference(org.eclipse.emf.common.notify.Notifier context,
JvmTypeReference... references) |
JvmParameterizedTypeReference |
createTypeRef(JvmType type,
JvmTypeReference... typeArgs) |
JvmType |
findDeclaredType(java.lang.Class<?> clazz,
org.eclipse.emf.common.notify.Notifier context)
looks up a JVMType corresponding to the given
Class . |
JvmType |
findDeclaredType(java.lang.String typeName,
org.eclipse.emf.common.notify.Notifier context)
looks up a JVMType corresponding to the given
Class . |
JvmTypeReference |
getArgument(JvmTypeReference left,
int index) |
JvmTypeReference |
getTypeForName(java.lang.Class<?> clazz,
org.eclipse.emf.common.notify.Notifier context,
JvmTypeReference... params) |
JvmTypeReference |
getTypeForName(java.lang.String typeName,
org.eclipse.emf.common.notify.Notifier context,
JvmTypeReference... params) |
protected JvmUnknownTypeReference |
getUnknownTypeReference(java.lang.String qualifiedName) |
boolean |
is(JvmType type,
java.lang.Class<?> clazz) |
boolean |
is(JvmTypeReference reference,
java.lang.Class<?> clazz) |
boolean |
isArray(JvmTypeReference type) |
boolean |
isNullOrProxy(JvmTypeReference reference) |
JvmWildcardTypeReference |
wildCard() |
JvmWildcardTypeReference |
wildCardExtends(JvmTypeReference clone) |
JvmWildcardTypeReference |
wildCardSuper(JvmTypeReference clone) |
public JvmAnyTypeReference createAnyTypeReference(org.eclipse.emf.common.notify.Notifier context)
JvmAnyTypeReference
or null if Object
is not on the context's classpathpublic JvmMultiTypeReference createMultiTypeReference(org.eclipse.emf.common.notify.Notifier context, JvmTypeReference... references)
JvmMultiTypeReference
pointing to the given references or null if Object
is not
on the context's class pathpublic JvmParameterizedTypeReference createTypeRef(JvmType type, JvmTypeReference... typeArgs)
JvmParameterizedTypeReference
for the given JvmType
parameterized with the given
typeArgs. This method does not check whether the given type can handle the given type arguments.public JvmDelegateTypeReference createDelegateTypeReference(JvmTypeReference typeRef)
public JvmTypeReference getArgument(JvmTypeReference left, int index)
public JvmWildcardTypeReference wildCard()
public JvmWildcardTypeReference wildCardExtends(JvmTypeReference clone)
public JvmWildcardTypeReference wildCardSuper(JvmTypeReference clone)
public JvmTypeReference getTypeForName(java.lang.Class<?> clazz, org.eclipse.emf.common.notify.Notifier context, JvmTypeReference... params)
protected JvmUnknownTypeReference getUnknownTypeReference(java.lang.String qualifiedName)
public JvmTypeReference getTypeForName(java.lang.String typeName, org.eclipse.emf.common.notify.Notifier context, JvmTypeReference... params)
public JvmGenericArrayTypeReference createArrayType(JvmTypeReference componentType)
public JvmType findDeclaredType(java.lang.Class<?> clazz, org.eclipse.emf.common.notify.Notifier context)
Class
. This method ignores any Jvm types created in non-
TypeResource
in the given EObject's resourceSet, but goes straight to the Java-layer, using a
IJvmTypeProvider
.Class
object, or null if no such JvmType
could be found using the context's resourceSet.public JvmType findDeclaredType(java.lang.String typeName, org.eclipse.emf.common.notify.Notifier context)
Class
. This method ignores any Jvm types created in non-
TypeResource
in the given context's resourceSet, but goes straight to the Java-layer, using a
IJvmTypeProvider
.Class
object, or null if no such JvmType
could be found using the context's resourceSet.public boolean is(JvmTypeReference reference, java.lang.Class<?> clazz)
public boolean is(JvmType type, java.lang.Class<?> clazz)
public boolean isNullOrProxy(JvmTypeReference reference)
public boolean isArray(JvmTypeReference type)