|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.pivot.util.AbstractVisitor<R,C>
org.eclipse.ocl.examples.pivot.util.AbstractWrappingVisitor<java.lang.Object,java.lang.Object,IOCLVMEvaluationVisitor,Element>
org.eclipse.ocl.examples.debug.evaluator.OCLVMEvaluationVisitor
public abstract class OCLVMEvaluationVisitor
Field Summary |
---|
Fields inherited from class org.eclipse.ocl.examples.pivot.util.AbstractWrappingVisitor |
---|
delegate |
Fields inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor |
---|
context |
Constructor Summary | |
---|---|
protected |
OCLVMEvaluationVisitor(IOCLVMEvaluationVisitor nestedEvaluationVisitor)
|
Method Summary | |
---|---|
protected abstract java.lang.Object |
badVisit(IVMEvaluationEnvironment<?> evalEnv,
Element element,
java.lang.Object preState,
java.lang.Throwable e)
|
protected java.lang.Object |
badVisit(Visitable visitable,
Element preState,
java.lang.Throwable e)
Intercept an exception thrown by the delegated visit to perform some post-functionality that may use the visitable object, the result of preVisit and the thrown exception to determine the overall wrapped result. |
IOCLVMEvaluationVisitor |
createNestedEvaluator()
|
java.lang.Object |
evaluate(DomainExpression body)
|
java.lang.Object |
evaluate(ExpressionInOCL expressionInOCL)
|
EvaluationVisitor |
getClonedEvaluator()
|
abstract int |
getDepth()
|
OCLVMEnvironment |
getEnvironment()
Obtains the environment that provides the metamodel semantics for the expression to be evaluated. |
IOCLVMEvaluationEnvironment |
getEvaluationEnvironment()
Obtains the evaluation environment that keeps track of variable values and knows how to call operations, navigate properties, etc. |
EvaluationVisitor |
getEvaluator()
|
IdResolver |
getIdResolver()
|
DomainLogger |
getLogger()
Return the logger handling oclLog() invocations or null for none. |
MetaModelManager |
getMetaModelManager()
|
DomainModelManager |
getModelManager()
Obtains the mapping of model classes to their extents. |
org.eclipse.emf.common.util.Monitor |
getMonitor()
|
java.lang.String |
getPluginId()
|
java.util.regex.Pattern |
getRegexPattern(java.lang.String regex)
Return a cached matcher for a give regular expression. |
abstract OCLVMRootEvaluationVisitor |
getRootEvaluationVisitor()
|
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. |
protected abstract void |
postVisit(IVMEvaluationEnvironment<?> evalEnv,
Element element,
java.lang.Object result)
|
protected java.lang.Object |
postVisit(Visitable visitable,
Element prologue,
java.lang.Object result)
Intercept the result of the delegated visit to perform some post-functionality that may use the visitable object, the result of preVisit and the result of the delegated visit to determine the overall wrapped result. |
protected abstract java.lang.Object |
preVisit(IVMEvaluationEnvironment<?> evalEnv,
Element element)
|
protected Element |
preVisit(Visitable visitable)
Compute and return some value before performing the delegated visit. |
protected void |
processDeferredTasks()
|
void |
setCanceled(boolean isCanceled)
Request cancelation of the current the evaluation, or reset the request for a new evaluation. |
protected Element |
setCurrentEnvInstructionPointer(Element element)
|
void |
setLogger(DomainLogger logger)
Specify the logger to handle oclLog() invocations or null for none. |
void |
setMonitor(org.eclipse.emf.common.util.Monitor monitor)
|
void |
setUndecoratedVisitor(EvaluationVisitor evaluationVisitor)
Configures the specified decorated visitor to correctly handle the invocation of recursive visitXxx(...) calls. |
protected void |
superProcessDeferredTasks()
|
java.lang.String |
toString()
|
java.lang.Object |
visitVariable(Variable vd)
|
Methods inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor |
---|
getAdapter, safeVisit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.debug.evaluator.IOCLVMEvaluationVisitor |
---|
dispose, safeVisit |
Constructor Detail |
---|
protected OCLVMEvaluationVisitor(@NonNull IOCLVMEvaluationVisitor nestedEvaluationVisitor)
Method Detail |
---|
@NonNull public EvaluationVisitor getClonedEvaluator()
getClonedEvaluator
in interface IVMEvaluationVisitor<ExpressionInOCL>
public abstract int getDepth()
@NonNull public OCLVMEnvironment getEnvironment()
EvaluationVisitor
getEnvironment
in interface EvaluationVisitor
@NonNull public IOCLVMEvaluationEnvironment getEvaluationEnvironment()
EvaluationVisitor
getEvaluationEnvironment
in interface DomainEvaluator
getEvaluationEnvironment
in interface EvaluationVisitor
@NonNull public java.lang.String getPluginId()
getPluginId
in interface IVMEvaluationVisitor<ExpressionInOCL>
protected void processDeferredTasks()
@Nullable protected java.lang.Object badVisit(@NonNull Visitable visitable, @Nullable Element preState, @NonNull java.lang.Throwable e) throws java.lang.RuntimeException
AbstractWrappingVisitor
badVisit
in class AbstractWrappingVisitor<java.lang.Object,java.lang.Object,IOCLVMEvaluationVisitor,Element>
java.lang.RuntimeException
@Nullable protected abstract java.lang.Object badVisit(@NonNull IVMEvaluationEnvironment<?> evalEnv, @NonNull Element element, java.lang.Object preState, @NonNull java.lang.Throwable e)
protected void superProcessDeferredTasks()
protected java.lang.Object postVisit(@NonNull Visitable visitable, @Nullable Element prologue, @Nullable java.lang.Object result)
AbstractWrappingVisitor
postVisit
in class AbstractWrappingVisitor<java.lang.Object,java.lang.Object,IOCLVMEvaluationVisitor,Element>
protected abstract void postVisit(@NonNull IVMEvaluationEnvironment<?> evalEnv, @NonNull Element element, @Nullable java.lang.Object result)
@Nullable protected Element preVisit(@NonNull Visitable visitable)
AbstractWrappingVisitor
preVisit
in class AbstractWrappingVisitor<java.lang.Object,java.lang.Object,IOCLVMEvaluationVisitor,Element>
protected abstract java.lang.Object preVisit(@NonNull IVMEvaluationEnvironment<?> evalEnv, @NonNull Element element)
protected Element setCurrentEnvInstructionPointer(Element element)
public java.lang.Object visitVariable(@NonNull Variable vd)
visitVariable
in interface Visitor<java.lang.Object>
visitVariable
in class AbstractWrappingVisitor<java.lang.Object,java.lang.Object,IOCLVMEvaluationVisitor,Element>
@NonNull public IOCLVMEvaluationVisitor createNestedEvaluator()
createNestedEvaluator
in interface IOCLVMEvaluationVisitor
createNestedEvaluator
in interface DomainEvaluator
createNestedEvaluator
in interface EvaluationVisitor
@Nullable public java.lang.Object evaluate(@NonNull DomainExpression body)
evaluate
in interface DomainEvaluator
evaluate
in interface EvaluationVisitor
@Nullable public java.lang.Object evaluate(@NonNull ExpressionInOCL expressionInOCL)
evaluate
in interface EvaluationVisitor
@NonNull public EvaluationVisitor getEvaluator()
getEvaluator
in interface EvaluationVisitor
@NonNull public DomainModelManager getModelManager()
EvaluationVisitor
getModelManager
in interface DomainEvaluator
getModelManager
in interface EvaluationVisitor
@NonNull public MetaModelManager getMetaModelManager()
getMetaModelManager
in interface EvaluationVisitor
@NonNull public DomainStandardLibrary getStandardLibrary()
getStandardLibrary
in interface DomainEvaluator
getStandardLibrary
in interface EvaluationVisitor
public void setUndecoratedVisitor(@NonNull EvaluationVisitor evaluationVisitor)
EvaluationVisitor
visitXxx(...)
calls. In particular,
the tail of a chain of decorators is informed (if it is an
AbstractEvaluationVisitor
of the head decorator of the chain,
so that recursive visitation follows the entire decorator chain at
every step.
setUndecoratedVisitor
in interface EvaluationVisitor
@NonNull public IdResolver getIdResolver()
getIdResolver
in interface DomainEvaluator
@Nullable public DomainLogger getLogger()
DomainEvaluator
getLogger
in interface DomainEvaluator
@Nullable public org.eclipse.emf.common.util.Monitor getMonitor()
getMonitor
in interface EvaluationVisitor
@NonNull public java.util.regex.Pattern getRegexPattern(@NonNull java.lang.String regex)
DomainEvaluator
getRegexPattern
in interface DomainEvaluator
@NonNull public abstract OCLVMRootEvaluationVisitor getRootEvaluationVisitor()
@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
isCanceled
in interface EvaluationVisitor
public void setCanceled(boolean isCanceled)
DomainEvaluator
EvaluationHaltedException
when #getValuefactory()
is next invoked.
setCanceled
in interface DomainEvaluator
setCanceled
in interface EvaluationVisitor
public void setLogger(@Nullable DomainLogger logger)
DomainEvaluator
setLogger
in interface DomainEvaluator
public void setMonitor(@Nullable org.eclipse.emf.common.util.Monitor monitor)
setMonitor
in interface EvaluationVisitor
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |