public abstract class ExecutorManager extends Object implements Executor.ExecutorExtension
Executor.ExecutorExtension| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTION_COUNT |
| 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)
Deprecated.
|
Class |
getStaticTypeOf(Object value,
Iterable<?> values) |
Class |
getStaticTypeOf(Object value,
Object... values) |
Class |
getStaticTypeOfValue(Type staticType,
Object value) |
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, waitgetIdResolver, getModelManagerpublic ExecutorManager(CompleteEnvironment environment)
public void add(TypedElement referredVariable, Object value)
@Deprecated public Evaluator createNestedEvaluator()
createNestedEvaluator in interface Evaluatorpublic Value evaluate(OCLExpression body)
public Value evaluateIteration(Type returnType, CollectionValue sourceVal, TypedElement accumulator, OCLExpression body, TypedElement[] iterators)
public CompleteEnvironment getCompleteEnvironment()
getCompleteEnvironment in interface EvaluatorgetCompleteEnvironment in interface Executorpublic int getDiagnosticSeverity(int severityPreference,
Object resultValue)
EvaluatorgetDiagnosticSeverity in interface Evaluatorpublic EnvironmentFactory getEnvironmentFactory()
getEnvironmentFactory in interface Executorpublic EvaluationEnvironment getEvaluationEnvironment()
getEvaluationEnvironment in interface EvaluatorgetEvaluationEnvironment in interface Executorpublic EvaluationLogger getLogger()
Evaluatorpublic MetamodelManager getMetamodelManager()
getMetamodelManager in interface Executorpublic Pattern getRegexPattern(String regex)
getRegexPattern in interface EvaluatorgetRegexPattern in interface Executorpublic 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 EvaluatorgetSeverity in interface Executorpublic StandardLibrary getStandardLibrary()
getStandardLibrary in interface EvaluatorgetStandardLibrary in interface Executor@Deprecated public Class getStaticTypeOf(Object value)
getStaticTypeOf in interface EvaluatorgetStaticTypeOf in interface Executorpublic Class getStaticTypeOf(Object value, Object... values)
getStaticTypeOf in interface EvaluatorgetStaticTypeOf in interface Executorpublic Class getStaticTypeOf(Object value, Iterable<?> values)
getStaticTypeOf in interface EvaluatorgetStaticTypeOf in interface Executorpublic Class getStaticTypeOfValue(Type staticType, Object value)
getStaticTypeOfValue in interface Executorpublic boolean isCanceled()
EvaluatorisCanceled in interface Evaluatorpublic void setCanceled(boolean isCanceled)
EvaluatorEvaluationHaltedException when an expression,
operation or iteration is next invoked.setCanceled in interface Evaluatorpublic void setLogger(EvaluationLogger logger)
Evaluatorpublic void popEvaluationEnvironment()
popEvaluationEnvironment in interface Executor@Deprecated public EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, OCLExpression callingObject)
pushEvaluationEnvironment in interface Executorpublic EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, Object caller)
pushEvaluationEnvironment in interface Executor.ExecutorExtensionpublic void replace(TypedElement referredVariable, Object value)
public void resetCaches()
resetCaches in interface Executor.ExecutorExtensionCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.