org.eclipse.xtend.shared.ui.expression
Class XpandPluginExecutionContext

java.lang.Object
  extended by org.eclipse.xtend.expression.ExecutionContextImpl
      extended by org.eclipse.xpand2.XpandExecutionContextImpl
          extended by org.eclipse.xtend.shared.ui.expression.XpandPluginExecutionContext
All Implemented Interfaces:
XpandExecutionContext, ExecutionContext, TypeSystem

public class XpandPluginExecutionContext
extends XpandExecutionContextImpl


Nested Class Summary
static class XpandPluginExecutionContext.PluginResourceManager
           
 
Nested classes/interfaces inherited from class org.eclipse.xpand2.XpandExecutionContextImpl
XpandExecutionContextImpl.DefinitionOperationAdapter
 
Nested classes/interfaces inherited from class org.eclipse.xtend.expression.ExecutionContextImpl
ExecutionContextImpl.ExtensionsForNameAndTypeCacheKey
 
Field Summary
 
Fields inherited from class org.eclipse.xpand2.XpandExecutionContextImpl
output, protectedRegionResolver
 
Fields inherited from class org.eclipse.xtend.expression.ExecutionContextImpl
allExtensionsPerResource, callback, exceptionHandler, extensionsForNameAndTypesCache, extensionsReturnTypeCache, nullEvaluationHandler, registeredExtensionAdvices, resourceManager, typeSystem
 
Fields inherited from interface org.eclipse.xtend.expression.ExecutionContext
IMPLICIT_VARIABLE
 
Constructor Summary
  XpandPluginExecutionContext(IXtendXpandProject xp)
           
protected XpandPluginExecutionContext(ResourceManager resourceManager, Resource currentResource, TypeSystemImpl typeSystem, java.util.Map<java.lang.String,Variable> vars, java.util.Map<java.lang.String,Variable> globalVars, Output output, ProtectedRegionResolver prs, org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor, IXtendXpandProject xp, java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache)
           
protected XpandPluginExecutionContext(ResourceManager resourceManager, Resource currentResource, TypeSystemImpl typeSystem, java.util.Map<java.lang.String,Variable> vars, java.util.Map<java.lang.String,Variable> globalVars, Output output, ProtectedRegionResolver prs, org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor, IXtendXpandProject xp, java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache, java.util.Map<Resource,java.util.Set<Extension>> allExtensionsPerResource, VetoableCallback vetoableCallback, Cache<Triplet<Resource,java.lang.String,java.util.List<Type>>,Extension> extensionsForNameAndTypesCache)
           
 
Method Summary
 XpandPluginExecutionContext cloneContext()
           
 java.util.Set<? extends Extension> getAllExtensions()
           
 Extension getExtensionForTypes(java.lang.String functionName, Type[] parameterTypes)
           
 
Methods inherited from class org.eclipse.xpand2.XpandExecutionContextImpl
cloneWithStatement, findDefinition, findDefinition, findTemplate, findTemplate, getAllDefinitions, getDeferredStatements, getOutput, getProtectedRegionResolver, registerAdvices, setResourceManager
 
Methods inherited from class org.eclipse.xtend.expression.ExecutionContextImpl
cloneWithoutMonitor, cloneWithoutResource, cloneWithoutVariables, cloneWithResource, cloneWithVariable, currentResource, findOperation, findProperty, findTypesForPrefix, getAllTypes, getBooleanType, getCallback, getCollectionType, getExtension, getExtensionAdvices, getFeatureType, getGlobalVariables, getImportedNamespaces, getIntegerType, getListType, getMetaModels, getMonitor, getNamespaces, getObjectType, getOperationType, getPropertyType, getRealType, getResourceManager, getReturnType, getSetType, getStaticPropertyType, getStringType, getType, getTypeForName, getTypeType, getVariable, getVisibleVariables, getVoidType, handleNullEvaluation, handleRuntimeException, postTask, preTask, registerExtensionAdvices, registerMetaModel, release, setCallBack, setFileEncoding, setMonitor, setVetoableCallBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtend.expression.ExecutionContext
cloneWithoutMonitor, cloneWithoutResource, cloneWithoutVariables, cloneWithResource, cloneWithVariable, currentResource, getCallback, getExtension, getExtensionAdvices, getGlobalVariables, getMonitor, getResourceManager, getReturnType, getVariable, getVisibleVariables, handleNullEvaluation, handleRuntimeException, postTask, preTask
 
Methods inherited from interface org.eclipse.xtend.expression.TypeSystem
findOperation, findProperty, findTypesForPrefix, getAllTypes, getBooleanType, getCollectionType, getFeatureType, getIntegerType, getListType, getNamespaces, getObjectType, getOperationType, getPropertyType, getRealType, getSetType, getStaticPropertyType, getStringType, getType, getTypeForName, getTypeType, getVoidType, release
 

Constructor Detail

XpandPluginExecutionContext

public XpandPluginExecutionContext(IXtendXpandProject xp)

XpandPluginExecutionContext

protected XpandPluginExecutionContext(ResourceManager resourceManager,
                                      Resource currentResource,
                                      TypeSystemImpl typeSystem,
                                      java.util.Map<java.lang.String,Variable> vars,
                                      java.util.Map<java.lang.String,Variable> globalVars,
                                      Output output,
                                      ProtectedRegionResolver prs,
                                      org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
                                      IXtendXpandProject xp,
                                      java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache)

XpandPluginExecutionContext

protected XpandPluginExecutionContext(ResourceManager resourceManager,
                                      Resource currentResource,
                                      TypeSystemImpl typeSystem,
                                      java.util.Map<java.lang.String,Variable> vars,
                                      java.util.Map<java.lang.String,Variable> globalVars,
                                      Output output,
                                      ProtectedRegionResolver prs,
                                      org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
                                      IXtendXpandProject xp,
                                      java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache,
                                      java.util.Map<Resource,java.util.Set<Extension>> allExtensionsPerResource,
                                      VetoableCallback vetoableCallback,
                                      Cache<Triplet<Resource,java.lang.String,java.util.List<Type>>,Extension> extensionsForNameAndTypesCache)
Since:
2.0
Method Detail

cloneContext

public XpandPluginExecutionContext cloneContext()
Overrides:
cloneContext in class XpandExecutionContextImpl

getAllExtensions

public java.util.Set<? extends Extension> getAllExtensions()
Specified by:
getAllExtensions in interface ExecutionContext
Overrides:
getAllExtensions in class ExecutionContextImpl

getExtensionForTypes

public Extension getExtensionForTypes(java.lang.String functionName,
                                      Type[] parameterTypes)
Specified by:
getExtensionForTypes in interface ExecutionContext
Overrides:
getExtensionForTypes in class ExecutionContextImpl