org.eclipse.xtext.common.types.util
Class TypeReferences

java.lang.Object
  extended by org.eclipse.xtext.common.types.util.TypeReferences

public class TypeReferences
extends java.lang.Object

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
TypeReferences()
           
 
Method Summary
 JvmAnyTypeReference createAnyTypeReference(org.eclipse.emf.ecore.EObject context)
           
 JvmGenericArrayTypeReference createArrayType(JvmTypeReference componentType)
           
 JvmMultiTypeReference createMultiTypeReference(org.eclipse.emf.ecore.EObject context, JvmTypeReference... references)
           
 JvmParameterizedTypeReference createTypeRef(JvmType type, JvmTypeReference... typeArgs)
           
 JvmType findDeclaredType(java.lang.Class<?> clazz, org.eclipse.emf.ecore.EObject context)
           
 JvmType findDeclaredType(java.lang.String typeName, org.eclipse.emf.common.notify.Notifier context)
           
 JvmTypeReference getArgument(JvmTypeReference left, int index)
           
 JvmTypeReference getTypeForName(java.lang.Class<?> clazz, org.eclipse.emf.ecore.EObject context, JvmTypeReference... params)
           
 JvmTypeReference getTypeForName(java.lang.String typeName, org.eclipse.emf.common.notify.Notifier context, JvmTypeReference... params)
           
 boolean is(JvmTypeReference reference, java.lang.Class<?> clazz)
           
 boolean isArray(JvmTypeReference type)
           
 boolean isInstanceOf(JvmTypeReference reference, java.lang.Class<?> clazz)
           
 boolean isNullOrProxy(JvmTypeReference reference)
           
protected  org.eclipse.emf.common.util.URI toCommonTypesUri(java.lang.Class<?> clazz)
           
 JvmWildcardTypeReference wildCard()
           
 JvmWildcardTypeReference wildCardExtends(JvmTypeReference clone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeReferences

public TypeReferences()
Method Detail

createAnyTypeReference

public JvmAnyTypeReference createAnyTypeReference(org.eclipse.emf.ecore.EObject context)

createMultiTypeReference

public JvmMultiTypeReference createMultiTypeReference(org.eclipse.emf.ecore.EObject context,
                                                      JvmTypeReference... references)

createTypeRef

public JvmParameterizedTypeReference createTypeRef(JvmType type,
                                                   JvmTypeReference... typeArgs)

getArgument

public JvmTypeReference getArgument(JvmTypeReference left,
                                    int index)

wildCard

public JvmWildcardTypeReference wildCard()

wildCardExtends

public JvmWildcardTypeReference wildCardExtends(JvmTypeReference clone)

toCommonTypesUri

protected org.eclipse.emf.common.util.URI toCommonTypesUri(java.lang.Class<?> clazz)

getTypeForName

public JvmTypeReference getTypeForName(java.lang.Class<?> clazz,
                                       org.eclipse.emf.ecore.EObject context,
                                       JvmTypeReference... params)

getTypeForName

public JvmTypeReference getTypeForName(java.lang.String typeName,
                                       org.eclipse.emf.common.notify.Notifier context,
                                       JvmTypeReference... params)

createArrayType

public JvmGenericArrayTypeReference createArrayType(JvmTypeReference componentType)

findDeclaredType

public JvmType findDeclaredType(java.lang.Class<?> clazz,
                                org.eclipse.emf.ecore.EObject context)

findDeclaredType

public JvmType findDeclaredType(java.lang.String typeName,
                                org.eclipse.emf.common.notify.Notifier context)

is

public boolean is(JvmTypeReference reference,
                  java.lang.Class<?> clazz)

isNullOrProxy

public boolean isNullOrProxy(JvmTypeReference reference)

isInstanceOf

public boolean isInstanceOf(JvmTypeReference reference,
                            java.lang.Class<?> clazz)

isArray

public boolean isArray(JvmTypeReference type)