org.eclipse.xtext.xbase.typing
Class Closures

java.lang.Object
  extended by org.eclipse.xtext.xbase.typing.Closures

public class Closures
extends java.lang.Object

Author:
Sven Efftinge - Initial contribution and API, Sebastian Zarnekow

Constructor Summary
Closures()
           
 
Method Summary
 JvmTypeReference createFunctionTypeRef(org.eclipse.emf.ecore.EObject context, java.util.List<JvmTypeReference> parameterTypes, JvmTypeReference returnType, boolean instanceContext)
           
 JvmParameterizedTypeReference createRawFunctionTypeRef(org.eclipse.emf.ecore.EObject context, int parameterCount, boolean procedure)
           
 JvmOperation findImplementingOperation(JvmTypeReference closureType, org.eclipse.emf.ecore.resource.Resource resource)
           
 JvmTypeReference getCompatibleFunctionType(JvmTypeReference original, boolean instanceContext, boolean rawType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Closures

public Closures()
Method Detail

getCompatibleFunctionType

public JvmTypeReference getCompatibleFunctionType(JvmTypeReference original,
                                                  boolean instanceContext,
                                                  boolean rawType)
Returns:
a compatible function type reference or null.

findImplementingOperation

public JvmOperation findImplementingOperation(JvmTypeReference closureType,
                                              org.eclipse.emf.ecore.resource.Resource resource)

createRawFunctionTypeRef

public JvmParameterizedTypeReference createRawFunctionTypeRef(org.eclipse.emf.ecore.EObject context,
                                                              int parameterCount,
                                                              boolean procedure)

createFunctionTypeRef

public JvmTypeReference createFunctionTypeRef(org.eclipse.emf.ecore.EObject context,
                                              java.util.List<JvmTypeReference> parameterTypes,
                                              JvmTypeReference returnType,
                                              boolean instanceContext)