public abstract class ExecutorManager extends java.lang.Object implements DomainEvaluator
Modifier and Type | Field and Description |
---|---|
protected DomainStandardLibrary |
standardLibrary |
Constructor and Description |
---|
ExecutorManager(DomainStandardLibrary standardLibrary) |
Modifier and Type | Method and Description |
---|---|
Value |
evaluate(DomainExpression body) |
Value |
evaluateIteration(DomainType returnType,
CollectionValue sourceVal,
DomainTypedElement accumulator,
DomainExpression body,
DomainTypedElement[] iterators) |
DomainType |
getDynamicTypeOf(java.lang.Object value) |
DomainEvaluationEnvironment |
getEvaluationEnvironment() |
DomainLogger |
getLogger()
Return the logger handling oclLog() invocations or null for none.
|
DomainStandardLibrary |
getStandardLibrary() |
DomainType |
getStaticTypeOf(java.lang.Object value) |
DomainType |
getStaticTypeOf(java.lang.Object value,
java.lang.Iterable<?> values) |
DomainType |
getStaticTypeOf(java.lang.Object value,
java.lang.Object... values) |
boolean |
isCanceled()
Return true if the evaluation has been canceled.
|
void |
setCanceled(boolean isCanceled)
Request cancelation of the current the evaluation, or reset the request for a new evaluation.
|
void |
setLogger(DomainLogger logger)
Specify the logger to handle oclLog() invocations or null for none.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createNestedEvaluator, getIdResolver, getModelManager
@NonNull protected final DomainStandardLibrary standardLibrary
public ExecutorManager(@NonNull DomainStandardLibrary standardLibrary)
@NonNull public Value evaluate(@NonNull DomainExpression body)
evaluate
in interface DomainEvaluator
public Value evaluateIteration(DomainType returnType, CollectionValue sourceVal, DomainTypedElement accumulator, DomainExpression body, DomainTypedElement[] iterators)
@NonNull public DomainType getDynamicTypeOf(@Nullable java.lang.Object value)
@NonNull public DomainEvaluationEnvironment getEvaluationEnvironment()
getEvaluationEnvironment
in interface DomainEvaluator
@Nullable public DomainLogger getLogger()
DomainEvaluator
getLogger
in interface DomainEvaluator
@NonNull public DomainStandardLibrary getStandardLibrary()
getStandardLibrary
in interface DomainEvaluator
@NonNull public DomainType getStaticTypeOf(@Nullable java.lang.Object value)
getStaticTypeOf
in interface DomainEvaluator
@NonNull public DomainType getStaticTypeOf(@Nullable java.lang.Object value, @NonNull java.lang.Object... values)
getStaticTypeOf
in interface DomainEvaluator
@NonNull public DomainType getStaticTypeOf(@Nullable java.lang.Object value, @NonNull java.lang.Iterable<?> values)
getStaticTypeOf
in interface DomainEvaluator
public boolean isCanceled()
DomainEvaluator
isCanceled
in interface DomainEvaluator
public void setCanceled(boolean isCanceled)
DomainEvaluator
EvaluationHaltedException
when #getValuefactory()
is next invoked.setCanceled
in interface DomainEvaluator
public void setLogger(@Nullable DomainLogger logger)
DomainEvaluator
setLogger
in interface DomainEvaluator