|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.xtend.expression.ExecutionContextImpl
public class ExecutionContextImpl
| Nested Class Summary | |
|---|---|
protected static class |
ExecutionContextImpl.ExtensionsForNameAndTypeCacheKey
|
| Field Summary | |
|---|---|
protected java.util.Map<Resource,java.util.Set<Extension>> |
allExtensionsPerResource
|
protected VetoableCallback |
callback
|
protected ExceptionHandler |
exceptionHandler
|
protected Cache<Triplet<Resource,java.lang.String,java.util.List<Type>>,Extension> |
extensionsForNameAndTypesCache
|
protected java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> |
extensionsReturnTypeCache
|
protected NullEvaluationHandler |
nullEvaluationHandler
|
protected java.util.List<Around> |
registeredExtensionAdvices
|
protected ResourceManager |
resourceManager
|
protected TypeSystemImpl |
typeSystem
|
| Fields inherited from interface org.eclipse.xtend.expression.ExecutionContext |
|---|
IMPLICIT_VARIABLE |
| Constructor Summary | |
|---|---|
ExecutionContextImpl()
|
|
ExecutionContextImpl(java.util.Map<java.lang.String,Variable> globalVars)
|
|
ExecutionContextImpl(ResourceManager resourceManager,
Resource resource,
TypeSystemImpl typeSystem,
java.util.Map<java.lang.String,Variable> variables,
java.util.Map<java.lang.String,Variable> globalVars,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
ExceptionHandler exceptionHandler,
java.util.List<Around> advices,
NullEvaluationHandler neh2,
java.util.Map<Resource,java.util.Set<Extension>> extensionPerResourceMap,
VetoableCallback callback,
Cache<Triplet<Resource,java.lang.String,java.util.List<Type>>,Extension> extensionsForNameAndTypesCache,
java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache)
|
|
ExecutionContextImpl(ResourceManager resourceManager,
TypeSystemImpl typeSystem,
java.util.Map<java.lang.String,Variable> globalVars)
|
|
ExecutionContextImpl(TypeSystemImpl ts)
|
|
ExecutionContextImpl(TypeSystemImpl ts,
java.util.Map<java.lang.String,Variable> globalVars)
|
|
| Method Summary | |
|---|---|
ExecutionContextImpl |
cloneContext()
|
ExecutionContext |
cloneWithoutMonitor()
|
ExecutionContext |
cloneWithoutResource()
|
ExecutionContext |
cloneWithoutVariables()
|
ExecutionContext |
cloneWithResource(Resource ns)
|
ExecutionContext |
cloneWithVariable(Variable v)
|
Resource |
currentResource()
|
Operation |
findOperation(java.lang.String name,
java.lang.Object target,
java.lang.Object[] params)
|
Property |
findProperty(java.lang.String name,
java.lang.Object target)
|
Type[] |
findTypesForPrefix(java.lang.String prefix)
|
java.util.Set<? extends Extension> |
getAllExtensions()
|
Type[] |
getAllTypes()
|
Type |
getBooleanType()
|
VetoableCallback |
getCallback()
|
Type |
getCollectionType(Type innerType)
|
Extension |
getExtension(java.lang.String functionName,
java.lang.Object[] actualParameters)
|
java.util.List<Around> |
getExtensionAdvices()
|
Extension |
getExtensionForTypes(java.lang.String functionName,
Type[] parameterTypes)
|
Type |
getFeatureType()
|
java.util.Map<java.lang.String,Variable> |
getGlobalVariables()
accessible only through special extension methods |
protected java.lang.String[] |
getImportedNamespaces()
|
Type |
getIntegerType()
|
Type |
getListType(Type innerType)
|
java.util.List<MetaModel> |
getMetaModels()
|
org.eclipse.emf.mwe.core.monitor.ProgressMonitor |
getMonitor()
Retrieves the associated ProgressMonitor |
java.util.Set<java.lang.String> |
getNamespaces()
|
Type |
getObjectType()
|
Type |
getOperationType()
|
Type |
getPropertyType()
|
Type |
getRealType()
|
ResourceManager |
getResourceManager()
Retrieves the associated ResourceManager |
Type |
getReturnType(Extension extension,
Type[] paramTypes,
java.util.Set<AnalysationIssue> issues)
|
Type |
getSetType(Type innerType)
|
Type |
getStaticPropertyType()
|
Type |
getStringType()
|
Type |
getType(java.lang.Object obj)
|
Type |
getTypeForName(java.lang.String name)
|
Type |
getTypeType()
|
Variable |
getVariable(java.lang.String name)
|
java.util.Map<java.lang.String,Variable> |
getVisibleVariables()
|
Type |
getVoidType()
|
java.lang.Object |
handleNullEvaluation(SyntaxElement element)
|
void |
handleRuntimeException(java.lang.RuntimeException ex,
SyntaxElement element,
java.util.Map<java.lang.String,java.lang.Object> additionalContextInfo)
|
void |
postTask(java.lang.Object element)
|
void |
preTask(java.lang.Object element)
|
void |
registerExtensionAdvices(java.lang.String fullyQualifiedName)
|
void |
registerMetaModel(MetaModel mm)
|
void |
release()
Clears internal resources (caches). |
void |
setCallBack(Callback callback)
Deprecated. Use setVetoableCallBack(VetoableCallback) |
void |
setFileEncoding(java.lang.String encoding)
Deprecated. Use getResourceManager().setFileEncoding() instead |
void |
setMonitor(org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor)
|
void |
setVetoableCallBack(VetoableCallback callback)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ResourceManager resourceManager
protected final TypeSystemImpl typeSystem
protected ExceptionHandler exceptionHandler
protected NullEvaluationHandler nullEvaluationHandler
protected VetoableCallback callback
protected java.util.Map<Resource,java.util.Set<Extension>> allExtensionsPerResource
protected Cache<Triplet<Resource,java.lang.String,java.util.List<Type>>,Extension> extensionsForNameAndTypesCache
protected java.util.List<Around> registeredExtensionAdvices
protected java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache
| Constructor Detail |
|---|
public ExecutionContextImpl()
public ExecutionContextImpl(TypeSystemImpl ts)
public ExecutionContextImpl(java.util.Map<java.lang.String,Variable> globalVars)
public ExecutionContextImpl(TypeSystemImpl ts,
java.util.Map<java.lang.String,Variable> globalVars)
public ExecutionContextImpl(ResourceManager resourceManager,
TypeSystemImpl typeSystem,
java.util.Map<java.lang.String,Variable> globalVars)
public ExecutionContextImpl(ResourceManager resourceManager,
Resource resource,
TypeSystemImpl typeSystem,
java.util.Map<java.lang.String,Variable> variables,
java.util.Map<java.lang.String,Variable> globalVars,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
ExceptionHandler exceptionHandler,
java.util.List<Around> advices,
NullEvaluationHandler neh2,
java.util.Map<Resource,java.util.Set<Extension>> extensionPerResourceMap,
VetoableCallback callback,
Cache<Triplet<Resource,java.lang.String,java.util.List<Type>>,Extension> extensionsForNameAndTypesCache,
java.util.Map<Pair<java.lang.String,java.util.List<Type>>,Type> extensionsReturnTypeCache)
| Method Detail |
|---|
public VetoableCallback getCallback()
getCallback in interface ExecutionContextpublic void registerMetaModel(MetaModel mm)
public java.util.List<MetaModel> getMetaModels()
public Operation findOperation(java.lang.String name,
java.lang.Object target,
java.lang.Object[] params)
findOperation in interface TypeSystem
public Property findProperty(java.lang.String name,
java.lang.Object target)
findProperty in interface TypeSystempublic Type[] findTypesForPrefix(java.lang.String prefix)
findTypesForPrefix in interface TypeSystempublic Type[] getAllTypes()
getAllTypes in interface TypeSystempublic java.util.Set<java.lang.String> getNamespaces()
getNamespaces in interface TypeSystempublic Type getBooleanType()
getBooleanType in interface TypeSystempublic Type getCollectionType(Type innerType)
getCollectionType in interface TypeSystempublic Type getFeatureType()
getFeatureType in interface TypeSystempublic Type getIntegerType()
getIntegerType in interface TypeSystempublic Type getListType(Type innerType)
getListType in interface TypeSystempublic Type getObjectType()
getObjectType in interface TypeSystempublic Type getOperationType()
getOperationType in interface TypeSystempublic Type getPropertyType()
getPropertyType in interface TypeSystempublic Type getRealType()
getRealType in interface TypeSystempublic Type getSetType(Type innerType)
getSetType in interface TypeSystempublic Type getStaticPropertyType()
getStaticPropertyType in interface TypeSystempublic Type getStringType()
getStringType in interface TypeSystempublic Type getType(java.lang.Object obj)
getType in interface TypeSystempublic Type getTypeForName(java.lang.String name)
getTypeForName in interface TypeSystemprotected java.lang.String[] getImportedNamespaces()
public Type getTypeType()
getTypeType in interface TypeSystempublic Type getVoidType()
getVoidType in interface TypeSystempublic ExecutionContextImpl cloneContext()
@Deprecated public void setFileEncoding(java.lang.String encoding)
public Variable getVariable(java.lang.String name)
getVariable in interface ExecutionContextpublic java.util.Map<java.lang.String,Variable> getVisibleVariables()
getVisibleVariables in interface ExecutionContextpublic java.util.Map<java.lang.String,Variable> getGlobalVariables()
ExecutionContext
getGlobalVariables in interface ExecutionContextpublic ExecutionContext cloneWithVariable(Variable v)
cloneWithVariable in interface ExecutionContextpublic ExecutionContext cloneWithoutVariables()
cloneWithoutVariables in interface ExecutionContextpublic ExecutionContext cloneWithResource(Resource ns)
cloneWithResource in interface ExecutionContextpublic ExecutionContext cloneWithoutResource()
cloneWithoutResource in interface ExecutionContextpublic ExecutionContext cloneWithoutMonitor()
cloneWithoutMonitor in interface ExecutionContextpublic Resource currentResource()
currentResource in interface ExecutionContextpublic java.util.Set<? extends Extension> getAllExtensions()
getAllExtensions in interface ExecutionContext
public Extension getExtensionForTypes(java.lang.String functionName,
Type[] parameterTypes)
getExtensionForTypes in interface ExecutionContext
public Extension getExtension(java.lang.String functionName,
java.lang.Object[] actualParameters)
getExtension in interface ExecutionContextpublic void setMonitor(org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor)
public org.eclipse.emf.mwe.core.monitor.ProgressMonitor getMonitor()
ExecutionContext
getMonitor in interface ExecutionContextpublic void preTask(java.lang.Object element)
preTask in interface ExecutionContextpublic void postTask(java.lang.Object element)
postTask in interface ExecutionContext
public void handleRuntimeException(java.lang.RuntimeException ex,
SyntaxElement element,
java.util.Map<java.lang.String,java.lang.Object> additionalContextInfo)
handleRuntimeException in interface ExecutionContextpublic ResourceManager getResourceManager()
ExecutionContext
getResourceManager in interface ExecutionContextpublic void registerExtensionAdvices(java.lang.String fullyQualifiedName)
public java.util.List<Around> getExtensionAdvices()
getExtensionAdvices in interface ExecutionContextpublic java.lang.Object handleNullEvaluation(SyntaxElement element)
handleNullEvaluation in interface ExecutionContextpublic void release()
TypeSystem
release in interface TypeSystem@Deprecated public void setCallBack(Callback callback)
setVetoableCallBack(VetoableCallback)
public void setVetoableCallBack(VetoableCallback callback)
public Type getReturnType(Extension extension,
Type[] paramTypes,
java.util.Set<AnalysationIssue> issues)
getReturnType in interface ExecutionContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||