|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ExecutionContext
public 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 TypeSystem
public Type[] findTypesForPrefix(java.lang.String prefix)
findTypesForPrefix
in interface TypeSystem
public Type[] getAllTypes()
getAllTypes
in interface TypeSystem
public java.util.Set<java.lang.String> getNamespaces()
getNamespaces
in interface TypeSystem
public Type getBooleanType()
getBooleanType
in interface TypeSystem
public Type getCollectionType(Type innerType)
getCollectionType
in interface TypeSystem
public Type getFeatureType()
getFeatureType
in interface TypeSystem
public Type getIntegerType()
getIntegerType
in interface TypeSystem
public Type getListType(Type innerType)
getListType
in interface TypeSystem
public Type getObjectType()
getObjectType
in interface TypeSystem
public Type getOperationType()
getOperationType
in interface TypeSystem
public Type getPropertyType()
getPropertyType
in interface TypeSystem
public Type getRealType()
getRealType
in interface TypeSystem
public Type getSetType(Type innerType)
getSetType
in interface TypeSystem
public Type getStaticPropertyType()
getStaticPropertyType
in interface TypeSystem
public Type getStringType()
getStringType
in interface TypeSystem
public Type getType(java.lang.Object obj)
getType
in interface TypeSystem
public Type getTypeForName(java.lang.String name)
getTypeForName
in interface TypeSystem
protected java.lang.String[] getImportedNamespaces()
public Type getTypeType()
getTypeType
in interface TypeSystem
public Type getVoidType()
getVoidType
in interface TypeSystem
public ExecutionContextImpl cloneContext()
@Deprecated public void setFileEncoding(java.lang.String encoding)
public Variable getVariable(java.lang.String name)
getVariable
in interface ExecutionContext
public java.util.Map<java.lang.String,Variable> getVisibleVariables()
getVisibleVariables
in interface ExecutionContext
public java.util.Map<java.lang.String,Variable> getGlobalVariables()
ExecutionContext
getGlobalVariables
in interface ExecutionContext
public ExecutionContext cloneWithVariable(Variable v)
cloneWithVariable
in interface ExecutionContext
public ExecutionContext cloneWithoutVariables()
cloneWithoutVariables
in interface ExecutionContext
public ExecutionContext cloneWithResource(Resource ns)
cloneWithResource
in interface ExecutionContext
public ExecutionContext cloneWithoutResource()
cloneWithoutResource
in interface ExecutionContext
public ExecutionContext cloneWithoutMonitor()
cloneWithoutMonitor
in interface ExecutionContext
public Resource currentResource()
currentResource
in interface ExecutionContext
public 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 ExecutionContext
public void setMonitor(org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor)
public org.eclipse.emf.mwe.core.monitor.ProgressMonitor getMonitor()
ExecutionContext
getMonitor
in interface ExecutionContext
public void preTask(java.lang.Object element)
preTask
in interface ExecutionContext
public 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 ExecutionContext
public ResourceManager getResourceManager()
ExecutionContext
getResourceManager
in interface ExecutionContext
public void registerExtensionAdvices(java.lang.String fullyQualifiedName)
public java.util.List<Around> getExtensionAdvices()
getExtensionAdvices
in interface ExecutionContext
public java.lang.Object handleNullEvaluation(SyntaxElement element)
handleNullEvaluation
in interface ExecutionContext
public 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 |