org.eclipse.ocl.examples.domain.evaluation
Interface DomainEvaluator

All Known Subinterfaces:
EvaluationVisitor, IOCLVMEvaluationVisitor, IVMEvaluationVisitor<T>, IVMRootEvaluationVisitor<T>
All Known Implementing Classes:
AbstractEvaluationVisitor, AbstractEvaluationVisitorDecorator, EcoreExecutorManager, EvaluationVisitorDecorator, EvaluationVisitorImpl, ExecutorManager, OCLAbstractTracingEvaluationVisitor, OCLConsolePage.CancelableEvaluationVisitor, OCLTracingEvaluationVisitor, OCLVMEvaluationVisitor, OCLVMEvaluationVisitorDecorator, OCLVMEvaluationVisitorImpl, OCLVMNestedEvaluationVisitor, OCLVMRootEvaluationVisitor, PivotExecutorManager, TracingEvaluationVisitor

public interface DomainEvaluator


Method Summary
 DomainEvaluator createNestedEvaluator()
           
 void dispose()
           
 java.lang.Object evaluate(DomainExpression body)
           
 DomainEvaluationEnvironment getEvaluationEnvironment()
           
 IdResolver getIdResolver()
           
 DomainLogger getLogger()
          Return the logger handling oclLog() invocations or null for none.
 DomainModelManager getModelManager()
          Return the manager of all model instances for use by allInstances() and hidden opposite support.
 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 loger)
          Specify the logger to handle oclLog() invocations or null for none.
 

Method Detail

createNestedEvaluator

@NonNull
DomainEvaluator createNestedEvaluator()

dispose

void dispose()

evaluate

@Nullable
java.lang.Object evaluate(@NonNull
                                   DomainExpression body)

getEvaluationEnvironment

@NonNull
DomainEvaluationEnvironment getEvaluationEnvironment()

getIdResolver

@NonNull
IdResolver getIdResolver()

getLogger

@Nullable
DomainLogger getLogger()
Return the logger handling oclLog() invocations or null for none.


getModelManager

@NonNull
DomainModelManager getModelManager()
Return the manager of all model instances for use by allInstances() and hidden opposite support.


getRegexPattern

@NonNull
java.util.regex.Pattern getRegexPattern(@NonNull
                                                java.lang.String regex)
Return a cached matcher for a give regular expression.


getStandardLibrary

@NonNull
DomainStandardLibrary getStandardLibrary()

getStaticTypeOf

@NonNull
DomainType getStaticTypeOf(@Nullable
                                   java.lang.Object value)

getStaticTypeOf

@NonNull
DomainType getStaticTypeOf(@Nullable
                                   java.lang.Object value,
                                   @NonNull
                                   java.lang.Object... values)

getStaticTypeOf

@NonNull
DomainType getStaticTypeOf(@Nullable
                                   java.lang.Object value,
                                   @NonNull
                                   java.lang.Iterable<?> values)

isCanceled

boolean isCanceled()
Return true if the evaluation has been canceled.


setCanceled

void setCanceled(boolean isCanceled)
Request cancelation of the current the evaluation, or reset the request for a new evaluation. Cancelation occurs by throwing an EvaluationHaltedException when an expression, operation or iteration is next invoked.


setLogger

void setLogger(@Nullable
               DomainLogger loger)
Specify the logger to handle oclLog() invocations or null for none.