public abstract class AbstractEvaluationVisitor extends AbstractExtendingVisitor<java.lang.Object,ExecutorInternal.ExecutorInternalExtension> implements EvaluationVisitor.EvaluationVisitorExtension
Note that this class is not intended to be used or extended by
clients. Use the EvaluationVisitor
interface, instead.
EvaluationVisitor.EvaluationVisitorExtension
Modifier and Type | Field and Description |
---|---|
protected CompleteEnvironmentInternal |
completeEnvironment
Deprecated.
Use environmentFactory.getEvaluationEnvirinment()
|
protected EnvironmentFactoryInternal |
environmentFactory |
protected EvaluationEnvironment |
evaluationEnvironment
Deprecated.
Use getExecutor().getEvaluationEnvirinment()
|
protected IdResolver |
idResolver |
protected PivotMetamodelManager |
metamodelManager
Deprecated.
Use environmentFactory.getMetamodelManager()
|
protected ModelManager |
modelManager
Deprecated.
Use getExecutor().getModelManager()
|
protected org.eclipse.emf.common.util.Monitor |
monitor
Set non-null by
setMonitor(org.eclipse.emf.common.util.Monitor) to terminate execution at next iteration/operation call. |
protected StandardLibraryInternal |
standardLibrary |
protected EvaluationVisitor |
undecoratedVisitor |
context
Modifier | Constructor and Description |
---|---|
protected |
AbstractEvaluationVisitor(EvaluationEnvironment evaluationEnvironment)
Deprecated.
Use ExecutorInternal
|
protected |
AbstractEvaluationVisitor(ExecutorInternal executor) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.util.regex.Pattern> |
createRegexCache()
Deprecated.
moved to Evaluator
|
CompleteEnvironment |
getCompleteEnvironment()
Deprecated.
moved to Evaluator
|
int |
getDiagnosticSeverity(int severityPreference,
java.lang.Object resultValue)
Deprecated.
moved to Evaluator
|
EnvironmentFactory |
getEnvironmentFactory()
Obtains the environment factory that created me.
|
EvaluationEnvironment |
getEvaluationEnvironment()
Deprecated.
moved to Evaluator
|
EvaluationVisitor |
getEvaluator() |
ExecutorInternal |
getExecutor() |
IdResolver |
getIdResolver()
Deprecated.
moved to Evaluator
|
EvaluationLogger |
getLogger()
Deprecated.
moved to Evaluator
|
PivotMetamodelManager |
getMetamodelManager()
Deprecated.
moved to Evaluator
|
ModelManager |
getModelManager()
Deprecated.
moved to Evaluator
|
org.eclipse.emf.common.util.Monitor |
getMonitor() |
java.util.regex.Pattern |
getRegexPattern(java.lang.String regex)
Deprecated.
moved to Evaluator
|
int |
getSeverity(java.lang.Object validationKey)
Deprecated.
moved to Evaluator
|
StandardLibrary |
getStandardLibrary()
Deprecated.
moved to Evaluator
|
Class |
getStaticTypeOf(java.lang.Object value)
Deprecated.
moved to Evaluator
|
Class |
getStaticTypeOf(java.lang.Object value,
java.lang.Iterable<?> values)
Deprecated.
moved to Evaluator
|
Class |
getStaticTypeOf(java.lang.Object value,
java.lang.Object... values)
Deprecated.
moved to Evaluator
|
protected EvaluationVisitor |
getUndecoratedVisitor()
Obtains the visitor on which I perform nested
Visitable.accept(Visitor) calls. |
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(EvaluationLogger logger)
Deprecated.
moved to Evaluator
|
void |
setMonitor(org.eclipse.emf.common.util.Monitor monitor) |
void |
setUndecoratedVisitor(EvaluationVisitor evaluationVisitor)
Sets the visitor on which I perform nested
Visitable.accept(Visitor) calls. |
java.lang.String |
toString() |
java.lang.Object |
visit(Visitable visitable)
Perform a visit to the specified visitable.
|
java.lang.Object |
visitConstraint(Constraint constraint)
This default implementation asserts that the constraint is
boolean-valued if it is an invariant, pre-condition, or post-condition
constraint and returns the value of its body expression by delegation to
Visitable.accept(Visitor) . |
visitAnnotation, visitAnyType, visitAssociationClass, visitAssociationClassCallExp, visitBagType, visitBehavior, visitBooleanLiteralExp, visitCallExp, visitCallOperationAction, visitClass, visitCollectionItem, visitCollectionLiteralExp, visitCollectionLiteralPart, visitCollectionRange, visitCollectionType, visitComment, visitCompleteClass, visitCompleteEnvironment, visitCompleteModel, visitCompletePackage, visitConnectionPointReference, visitDataType, visitDetail, visitDynamicBehavior, visitDynamicElement, visitDynamicProperty, visitDynamicType, visitDynamicValueSpecification, visitElement, visitElementExtension, visitEnumeration, visitEnumerationLiteral, visitEnumLiteralExp, visitExpressionInOCL, visitFeature, visitFeatureCallExp, visitFinalState, visitIfExp, visitImport, visitInstanceSpecification, visitIntegerLiteralExp, visitInvalidLiteralExp, visitInvalidType, visitIterateExp, visitIteration, visitIteratorExp, visitIteratorVariable, visitLambdaType, visitLanguageExpression, visitLetExp, visitLetVariable, visitLibrary, visitLiteralExp, visitLoopExp, visitMapLiteralExp, visitMapLiteralPart, visitMapType, visitMessageExp, visitMessageType, visitModel, visitNamedElement, visitNamespace, visitNavigationCallExp, visitNullLiteralExp, visitNumericLiteralExp, visitOCLExpression, visitOperation, visitOperationCallExp, visitOppositePropertyCallExp, visitOrderedSetType, visitOrphanCompletePackage, visitPackage, visitParameter, visitParameterVariable, visitPrecedence, visitPrimitiveCompletePackage, visitPrimitiveLiteralExp, visitPrimitiveType, visitProfile, visitProfileApplication, visitProperty, visitPropertyCallExp, visitPseudostate, visitRealLiteralExp, visitRegion, visitResultVariable, visitSelfType, visitSendSignalAction, visitSequenceType, visitSetType, visitShadowExp, visitShadowPart, visitSignal, visitSlot, visitStandardLibrary, visitState, visitStateExp, visitStateMachine, visitStereotype, visitStereotypeExtender, visitStringLiteralExp, visitTemplateableElement, visitTemplateBinding, visitTemplateParameter, visitTemplateParameterSubstitution, visitTemplateSignature, visitTransition, visitTrigger, visitTupleLiteralExp, visitTupleLiteralPart, visitTupleType, visitType, visitTypedElement, visitTypeExp, visitUnlimitedNaturalLiteralExp, visitUnspecifiedValueExp, visitValueSpecification, visitVariable, visitVariableDeclaration, visitVariableExp, visitVertex, visitVoidType, visitWildcardType
getAdapter, safeVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createNestedEvaluator, evaluate
getAdapter, visitAnnotation, visitAnyType, visitAssociationClass, visitAssociationClassCallExp, visitBagType, visitBehavior, visitBooleanLiteralExp, visitCallExp, visitCallOperationAction, visitClass, visitCollectionItem, visitCollectionLiteralExp, visitCollectionLiteralPart, visitCollectionRange, visitCollectionType, visitComment, visitCompleteClass, visitCompleteEnvironment, visitCompleteModel, visitCompletePackage, visitConnectionPointReference, visitDataType, visitDetail, visitDynamicBehavior, visitDynamicElement, visitDynamicProperty, visitDynamicType, visitDynamicValueSpecification, visitElement, visitElementExtension, visitEnumeration, visitEnumerationLiteral, visitEnumLiteralExp, visitExpressionInOCL, visitFeature, visitFeatureCallExp, visitFinalState, visitIfExp, visitImport, visiting, visitInstanceSpecification, visitIntegerLiteralExp, visitInvalidLiteralExp, visitInvalidType, visitIterateExp, visitIteration, visitIteratorExp, visitIteratorVariable, visitLambdaType, visitLanguageExpression, visitLetExp, visitLetVariable, visitLibrary, visitLiteralExp, visitLoopExp, visitMapLiteralExp, visitMapLiteralPart, visitMapType, visitMessageExp, visitMessageType, visitModel, visitNamedElement, visitNamespace, visitNavigationCallExp, visitNullLiteralExp, visitNumericLiteralExp, visitOCLExpression, visitOperation, visitOperationCallExp, visitOppositePropertyCallExp, visitOrderedSetType, visitOrphanCompletePackage, visitPackage, visitParameter, visitParameterVariable, visitPrecedence, visitPrimitiveCompletePackage, visitPrimitiveLiteralExp, visitPrimitiveType, visitProfile, visitProfileApplication, visitProperty, visitPropertyCallExp, visitPseudostate, visitRealLiteralExp, visitRegion, visitResultVariable, visitSelfType, visitSendSignalAction, visitSequenceType, visitSetType, visitShadowExp, visitShadowPart, visitSignal, visitSlot, visitStandardLibrary, visitState, visitStateExp, visitStateMachine, visitStereotype, visitStereotypeExtender, visitStringLiteralExp, visitTemplateableElement, visitTemplateBinding, visitTemplateParameter, visitTemplateParameterSubstitution, visitTemplateSignature, visitTransition, visitTrigger, visitTupleLiteralExp, visitTupleLiteralPart, visitTupleType, visitType, visitTypedElement, visitTypeExp, visitUnlimitedNaturalLiteralExp, visitUnspecifiedValueExp, visitValueSpecification, visitVariable, visitVariableDeclaration, visitVariableExp, visitVertex, visitVoidType, visitWildcardType
@NonNull protected final EnvironmentFactoryInternal environmentFactory
@Deprecated @NonNull protected final PivotMetamodelManager metamodelManager
@NonNull protected final IdResolver idResolver
@NonNull protected final StandardLibraryInternal standardLibrary
@NonNull protected EvaluationVisitor undecoratedVisitor
@Nullable protected org.eclipse.emf.common.util.Monitor monitor
setMonitor(org.eclipse.emf.common.util.Monitor)
to terminate execution at next iteration/operation call.@Deprecated @NonNull protected final EvaluationEnvironment evaluationEnvironment
@Deprecated @NonNull protected final CompleteEnvironmentInternal completeEnvironment
@Deprecated @NonNull protected final ModelManager modelManager
@Deprecated protected AbstractEvaluationVisitor(@NonNull EvaluationEnvironment evaluationEnvironment)
protected AbstractEvaluationVisitor(@NonNull ExecutorInternal executor)
@Deprecated @NonNull protected java.util.Map<java.lang.String,java.util.regex.Pattern> createRegexCache()
@Deprecated @NonNull public CompleteEnvironment getCompleteEnvironment()
getCompleteEnvironment
in interface Evaluator
@Deprecated public int getDiagnosticSeverity(int severityPreference, @Nullable java.lang.Object resultValue)
Evaluator
getDiagnosticSeverity
in interface Evaluator
@NonNull public EnvironmentFactory getEnvironmentFactory()
EvaluationVisitor
getEnvironmentFactory
in interface EvaluationVisitor
@Deprecated @NonNull public EvaluationEnvironment getEvaluationEnvironment()
EvaluationVisitor
getEvaluationEnvironment
in interface EvaluationVisitor
getEvaluationEnvironment
in interface Evaluator
@NonNull public EvaluationVisitor getEvaluator()
getEvaluator
in interface EvaluationVisitor
@NonNull public ExecutorInternal getExecutor()
getExecutor
in interface EvaluationVisitor.EvaluationVisitorExtension
@Deprecated @NonNull public IdResolver getIdResolver()
getIdResolver
in interface Evaluator
@Deprecated @Nullable public EvaluationLogger getLogger()
Evaluator
@Deprecated @NonNull public PivotMetamodelManager getMetamodelManager()
getMetamodelManager
in interface EvaluationVisitor
@Deprecated @NonNull public ModelManager getModelManager()
Evaluator
getModelManager
in interface EvaluationVisitor
getModelManager
in interface Evaluator
@Nullable public org.eclipse.emf.common.util.Monitor getMonitor()
getMonitor
in interface EvaluationVisitor
@Deprecated @NonNull public java.util.regex.Pattern getRegexPattern(@NonNull java.lang.String regex)
getRegexPattern
in interface Evaluator
@Deprecated public int getSeverity(@Nullable java.lang.Object validationKey)
Evaluator
StatusCodes.OK severity suppresses the validation altogether.
StatusCodes.Warning is returned for any null or unknown key.
getSeverity
in interface Evaluator
@Deprecated @NonNull public StandardLibrary getStandardLibrary()
getStandardLibrary
in interface EvaluationVisitor
getStandardLibrary
in interface Evaluator
@Deprecated public Class getStaticTypeOf(@Nullable java.lang.Object value)
getStaticTypeOf
in interface Evaluator
@Deprecated public Class getStaticTypeOf(@Nullable java.lang.Object value, @NonNull java.lang.Object... values)
getStaticTypeOf
in interface Evaluator
@Deprecated public Class getStaticTypeOf(@Nullable java.lang.Object value, @NonNull java.lang.Iterable<?> values)
getStaticTypeOf
in interface Evaluator
@NonNull protected final EvaluationVisitor getUndecoratedVisitor()
Visitable.accept(Visitor)
calls. This
handles the case in which I am decorated by another visitor that must
intercept every visitXxx() method. If I internally just
recursively visit myself, then this decorator is cut out of the picture.public boolean isCanceled()
Evaluator
isCanceled
in interface EvaluationVisitor
isCanceled
in interface Evaluator
public void setCanceled(boolean isCanceled)
Evaluator
EvaluationHaltedException
when an expression,
operation or iteration is next invoked.setCanceled
in interface EvaluationVisitor
setCanceled
in interface Evaluator
@Deprecated public void setLogger(@Nullable EvaluationLogger logger)
Evaluator
public void setMonitor(@Nullable org.eclipse.emf.common.util.Monitor monitor)
setMonitor
in interface EvaluationVisitor
public void setUndecoratedVisitor(@NonNull EvaluationVisitor evaluationVisitor)
Visitable.accept(Visitor)
calls.setUndecoratedVisitor
in interface EvaluationVisitor
evaluationVisitor
- my delegate visitorgetUndecoratedVisitor()
public java.lang.String toString()
toString
in class java.lang.Object
@Nullable public java.lang.Object visit(@NonNull Visitable visitable)
AbstractVisitor
visit
in interface EvaluationVisitor.EvaluationVisitorExtension
visit
in class AbstractVisitor<java.lang.Object,ExecutorInternal.ExecutorInternalExtension>
visitable
- a visitable, or null
null
if the visitable is null
;
otherwise, the result of visiting itpublic java.lang.Object visitConstraint(@NonNull Constraint constraint)
Visitable.accept(Visitor)
.visitConstraint
in interface Visitor<java.lang.Object>
visitConstraint
in class AbstractExtendingVisitor<java.lang.Object,ExecutorInternal.ExecutorInternalExtension>