public abstract class AbstractExecutor extends Object implements ExecutorInternal.ExecutorInternalExtension
ExecutorInternal.ExecutorInternalExtension
Executor.ExecutorExtension
Modifier and Type | Method and Description |
---|---|
void |
add(TypedElement referredVariable,
Object value) |
Evaluator |
createNestedEvaluator()
Deprecated.
Evaluator no longer nests
|
void |
dispose() |
Object |
evaluate(OCLExpression body) |
Object |
getCachedEvaluationResult(LibraryOperation.LibraryOperationExtension2 implementation,
TypedElement caller,
Object[] sourceAndArgumentValues) |
CompleteEnvironment |
getCompleteEnvironment() |
int |
getDiagnosticSeverity(int severityPreference,
Object resultValue)
Return the org.eclipse.emf.common.util.Diagnostic severity to be reported for a non-true
validation resultValue given a severityPreference defined by a StatusCodes value.
|
EnvironmentFactoryInternal |
getEnvironmentFactory() |
EvaluationCache |
getEvaluationCache() |
EvaluationEnvironment |
getEvaluationEnvironment() |
EvaluationVisitor.EvaluationVisitorExtension |
getEvaluationVisitor() |
IdResolver.IdResolverExtension |
getIdResolver() |
EvaluationLogger |
getLogger()
Return the logger handling oclLog() invocations or null for none.
|
MetamodelManagerInternal |
getMetamodelManager() |
Pattern |
getRegexPattern(String regex)
Return a cached matcher for a give regular expression.
|
EvaluationEnvironment |
getRootEvaluationEnvironment() |
int |
getSeverity(Object validationKey)
Return the StatusCodes severity with which the validation identified by validationKey is reported.
|
StandardLibrary |
getStandardLibrary() |
Class |
getStaticTypeOf(Object value) |
Class |
getStaticTypeOf(Object value,
Iterable<?> values) |
Class |
getStaticTypeOf(Object value,
Object... values) |
Object |
getValueOf(TypedElement referredVariable) |
EvaluationEnvironment |
initializeEvaluationEnvironment(NamedElement executableObject) |
Object |
internalExecuteNavigationCallExp(NavigationCallExp navigationCallExp,
Property referredProperty,
Object sourceValue) |
Object |
internalExecuteOperationCallExp(OperationCallExp operationCallExp,
Object[] sourceAndArgumentValues) |
Object |
internalExecuteShadowExp(ShadowExp asShadowExp) |
boolean |
isCanceled()
Return true if the evaluation has been canceled.
|
void |
popEvaluationEnvironment() |
EvaluationEnvironment |
pushEvaluationEnvironment(NamedElement executableObject,
Object caller) |
EvaluationEnvironment |
pushEvaluationEnvironment(NamedElement executableObject,
OCLExpression callingObject)
Deprecated.
use TypedElement argument
|
void |
replace(TypedElement referredVariable,
Object value) |
void |
resetCaches() |
void |
setCanceled(boolean isCanceled)
Request cancelation of the current the evaluation, or reset the request for a new evaluation.
|
void |
setLogger(EvaluationLogger logger)
Specify the logger to handle oclLog() invocations or null for none.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModelManager
public void add(TypedElement referredVariable, Object value)
@Deprecated public Evaluator createNestedEvaluator()
createNestedEvaluator
in interface Evaluator
public Object evaluate(OCLExpression body)
public Object getCachedEvaluationResult(LibraryOperation.LibraryOperationExtension2 implementation, TypedElement caller, Object[] sourceAndArgumentValues)
getCachedEvaluationResult
in interface ExecutorInternal.ExecutorInternalExtension
public CompleteEnvironment getCompleteEnvironment()
getCompleteEnvironment
in interface Evaluator
getCompleteEnvironment
in interface Executor
public int getDiagnosticSeverity(int severityPreference, Object resultValue)
Evaluator
getDiagnosticSeverity
in interface Evaluator
public EnvironmentFactoryInternal getEnvironmentFactory()
getEnvironmentFactory
in interface Executor
getEnvironmentFactory
in interface ExecutorInternal
public EvaluationCache getEvaluationCache()
getEvaluationCache
in interface ExecutorInternal.ExecutorInternalExtension
public EvaluationEnvironment getEvaluationEnvironment()
getEvaluationEnvironment
in interface Evaluator
getEvaluationEnvironment
in interface Executor
public EvaluationVisitor.EvaluationVisitorExtension getEvaluationVisitor()
getEvaluationVisitor
in interface ExecutorInternal
public IdResolver.IdResolverExtension getIdResolver()
getIdResolver
in interface Evaluator
getIdResolver
in interface Executor
public EvaluationLogger getLogger()
Evaluator
public MetamodelManagerInternal getMetamodelManager()
getMetamodelManager
in interface Executor
getMetamodelManager
in interface ExecutorInternal
public Pattern getRegexPattern(String regex)
getRegexPattern
in interface Evaluator
getRegexPattern
in interface Executor
public EvaluationEnvironment getRootEvaluationEnvironment()
getRootEvaluationEnvironment
in interface ExecutorInternal
public int getSeverity(Object validationKey)
Evaluator
StatusCodes.OK severity suppresses the validation altogether.
StatusCodes.Warning is returned for any null or unknown key.
getSeverity
in interface Evaluator
getSeverity
in interface Executor
public StandardLibrary getStandardLibrary()
getStandardLibrary
in interface Evaluator
getStandardLibrary
in interface Executor
public Class getStaticTypeOf(Object value)
getStaticTypeOf
in interface Evaluator
getStaticTypeOf
in interface Executor
public Class getStaticTypeOf(Object value, Object... values)
getStaticTypeOf
in interface Evaluator
getStaticTypeOf
in interface Executor
public Class getStaticTypeOf(Object value, Iterable<?> values)
getStaticTypeOf
in interface Evaluator
getStaticTypeOf
in interface Executor
public Object getValueOf(TypedElement referredVariable)
getValueOf
in interface ExecutorInternal
public EvaluationEnvironment initializeEvaluationEnvironment(NamedElement executableObject)
initializeEvaluationEnvironment
in interface ExecutorInternal
public Object internalExecuteNavigationCallExp(NavigationCallExp navigationCallExp, Property referredProperty, Object sourceValue)
internalExecuteNavigationCallExp
in interface ExecutorInternal
public Object internalExecuteOperationCallExp(OperationCallExp operationCallExp, Object[] sourceAndArgumentValues)
internalExecuteOperationCallExp
in interface ExecutorInternal.ExecutorInternalExtension
public Object internalExecuteShadowExp(ShadowExp asShadowExp)
internalExecuteShadowExp
in interface ExecutorInternal.ExecutorInternalExtension
public boolean isCanceled()
Evaluator
isCanceled
in interface Evaluator
public void popEvaluationEnvironment()
popEvaluationEnvironment
in interface Executor
public EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, Object caller)
pushEvaluationEnvironment
in interface Executor.ExecutorExtension
@Deprecated public EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, OCLExpression callingObject)
pushEvaluationEnvironment
in interface Executor
public void replace(TypedElement referredVariable, Object value)
public void resetCaches()
resetCaches
in interface Executor.ExecutorExtension
public void setCanceled(boolean isCanceled)
Evaluator
EvaluationHaltedException
when an expression,
operation or iteration is next invoked.setCanceled
in interface Evaluator
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.