public interface Executor extends Evaluator
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Executor.ExecutorExtension |
| Modifier and Type | Method and Description |
|---|---|
void |
add(TypedElement referredVariable,
Object value) |
Object |
evaluate(OCLExpression body) |
CompleteEnvironment |
getCompleteEnvironment() |
EnvironmentFactory |
getEnvironmentFactory() |
EvaluationEnvironment |
getEvaluationEnvironment() |
IdResolver |
getIdResolver() |
EvaluationLogger |
getLogger()
Return the logger handling oclLog() invocations or null for none.
|
MetamodelManager |
getMetamodelManager() |
ModelManager |
getModelManager()
Return the manager of all model instances for use by allInstances() and hidden opposite support.
|
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) |
void |
popEvaluationEnvironment() |
EvaluationEnvironment |
pushEvaluationEnvironment(NamedElement executableObject,
OCLExpression callingObject)
Deprecated.
use Object argument in ExecutorInternalExtension
|
void |
replace(TypedElement referredVariable,
Object value) |
void |
setLogger(EvaluationLogger logger)
Specify the logger to handle oclLog() invocations or null for none.
|
createNestedEvaluator, dispose, getDiagnosticSeverity, isCanceled, setCanceledvoid add(TypedElement referredVariable, Object value)
Object evaluate(OCLExpression body)
CompleteEnvironment getCompleteEnvironment()
getCompleteEnvironment in interface EvaluatorEnvironmentFactory getEnvironmentFactory()
EvaluationEnvironment getEvaluationEnvironment()
getEvaluationEnvironment in interface EvaluatorIdResolver getIdResolver()
getIdResolver in interface EvaluatorEvaluationLogger getLogger()
EvaluatorMetamodelManager getMetamodelManager()
ModelManager getModelManager()
EvaluatorgetModelManager in interface EvaluatorPattern getRegexPattern(String regex)
EvaluatorgetRegexPattern in interface Evaluatorint getSeverity(Object validationKey)
Evaluator
StatusCodes.OK severity suppresses the validation altogether.
StatusCodes.Warning is returned for any null or unknown key.
getSeverity in interface EvaluatorStandardLibrary getStandardLibrary()
getStandardLibrary in interface EvaluatorClass getStaticTypeOf(Object value)
getStaticTypeOf in interface EvaluatorClass getStaticTypeOf(Object value, Object... values)
getStaticTypeOf in interface EvaluatorClass getStaticTypeOf(Object value, Iterable<?> values)
getStaticTypeOf in interface Evaluatorvoid popEvaluationEnvironment()
@Deprecated EvaluationEnvironment pushEvaluationEnvironment(NamedElement executableObject, OCLExpression callingObject)
void replace(TypedElement referredVariable, Object value)
void setLogger(EvaluationLogger logger)
EvaluatorCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.