|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.library.executor.ExecutorManager
public abstract class ExecutorManager
Field Summary | |
---|---|
protected DomainStandardLibrary |
standardLibrary
|
Constructor Summary | |
---|---|
ExecutorManager(DomainStandardLibrary standardLibrary)
|
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,java.util.regex.Pattern> |
createRegexCache()
Creates (on demand) the regular-expression matcher cache. |
void |
dispose()
|
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. |
java.util.regex.Pattern |
getRegexPattern(java.lang.String regex)
Return a cached matcher for a give regular expression. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.domain.evaluation.DomainEvaluator |
---|
createNestedEvaluator, getIdResolver, getModelManager |
Field Detail |
---|
@NonNull protected final DomainStandardLibrary standardLibrary
Constructor Detail |
---|
public ExecutorManager(@NonNull DomainStandardLibrary standardLibrary)
Method Detail |
---|
@NonNull protected java.util.Map<java.lang.String,java.util.regex.Pattern> createRegexCache()
getRegexPattern(String)
public void dispose()
dispose
in interface DomainEvaluator
@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 java.util.regex.Pattern getRegexPattern(@NonNull java.lang.String regex)
getRegexPattern
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 an expression,
operation or iteration is next invoked.
setCanceled
in interface DomainEvaluator
public void setLogger(@Nullable DomainLogger logger)
DomainEvaluator
setLogger
in interface DomainEvaluator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |