public abstract class ExecutorManager extends Object implements Executor.ExecutorExtension
Executor.ExecutorExtension
Constructor and Description |
---|
ExecutorManager(CompleteEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
void |
add(TypedElement referredVariable,
Object value) |
Evaluator |
createNestedEvaluator()
Deprecated.
Evaluator no longer nests
|
void |
dispose() |
Value |
evaluate(OCLExpression body) |
Value |
evaluateIteration(Type returnType,
CollectionValue sourceVal,
TypedElement accumulator,
OCLExpression body,
TypedElement[] iterators) |
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.
|
Type |
getDynamicTypeOf(Object value) |
EnvironmentFactory |
getEnvironmentFactory() |
EvaluationEnvironment |
getEvaluationEnvironment() |
EvaluationLogger |
getLogger()
Return the logger handling oclLog() invocations or null for none.
|
MetamodelManager |
getMetamodelManager() |
Pattern |
getRegexPattern(String regex)
Return a cached matcher for a give regular expression.
|
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) |
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
getIdResolver, getModelManager
public ExecutorManager(CompleteEnvironment environment)
public void add(TypedElement referredVariable, Object value)
@Deprecated public Evaluator createNestedEvaluator()
createNestedEvaluator
in interface Evaluator
public Value evaluate(OCLExpression body)
public Value evaluateIteration(Type returnType, CollectionValue sourceVal, TypedElement accumulator, OCLExpression body, TypedElement[] iterators)
public CompleteEnvironment getCompleteEnvironment()
getCompleteEnvironment
in interface Evaluator
getCompleteEnvironment
in interface Executor
public int getDiagnosticSeverity(int severityPreference, Object resultValue)
Evaluator
getDiagnosticSeverity
in interface Evaluator
public EnvironmentFactory getEnvironmentFactory()
getEnvironmentFactory
in interface Executor
public EvaluationEnvironment getEvaluationEnvironment()
getEvaluationEnvironment
in interface Evaluator
getEvaluationEnvironment
in interface Executor
public EvaluationLogger getLogger()
Evaluator
public MetamodelManager getMetamodelManager()
getMetamodelManager
in interface Executor
public Pattern getRegexPattern(String regex)
getRegexPattern
in interface Evaluator
getRegexPattern
in interface Executor
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 boolean isCanceled()
Evaluator
isCanceled
in interface Evaluator
public void setCanceled(boolean isCanceled)
Evaluator
EvaluationHaltedException
when an expression,
operation or iteration is next invoked.setCanceled
in interface Evaluator
public void setLogger(EvaluationLogger logger)
Evaluator
public void popEvaluationEnvironment()
popEvaluationEnvironment
in interface Executor
@Deprecated public EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, OCLExpression callingObject)
pushEvaluationEnvironment
in interface Executor
public EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, Object caller)
pushEvaluationEnvironment
in interface Executor.ExecutorExtension
public void replace(TypedElement referredVariable, Object value)
public void resetCaches()
resetCaches
in interface Executor.ExecutorExtension
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.