org.eclipse.mtl.engine.evaluation
Class MTLEvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>

java.lang.Object
  extended by org.eclipse.ocl.EvaluationVisitorDecorator<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
      extended by org.eclipse.mtl.engine.evaluation.MTLEvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
Type Parameters:
PK - see #org.eclipse.ocl.AbstractEvaluationVisitor.
C - see #org.eclipse.ocl.AbstractEvaluationVisitor.
O - see #org.eclipse.ocl.AbstractEvaluationVisitor.
P - see #org.eclipse.ocl.AbstractEvaluationVisitor.
EL - see #org.eclipse.ocl.AbstractEvaluationVisitor.
PM - see #org.eclipse.ocl.AbstractEvaluationVisitor.
S - see #org.eclipse.ocl.AbstractEvaluationVisitor.
COA - see #org.eclipse.ocl.AbstractEvaluationVisitor.
SSA - see #org.eclipse.ocl.AbstractEvaluationVisitor.
CT - see #org.eclipse.ocl.AbstractEvaluationVisitor.
CLS - see #org.eclipse.ocl.AbstractEvaluationVisitor.
E - see #org.eclipse.ocl.AbstractEvaluationVisitor.
All Implemented Interfaces:
org.eclipse.ocl.EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>, org.eclipse.ocl.utilities.Visitor<java.lang.Object,C,O,P,EL,PM,S,COA,SSA,CT>

public class MTLEvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
extends org.eclipse.ocl.EvaluationVisitorDecorator<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>

This visitor will handle the evaluation of MTL nodes.


Constructor Summary
MTLEvaluationVisitor(org.eclipse.ocl.EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> decoratedVisitor, MTLEvaluationContext context)
          Default constructor.
 
Method Summary
 java.lang.Object visitExpression(org.eclipse.ocl.expressions.OCLExpression<C> expression)
          
 void visitMTLBlock(Block block)
          Handles the evaluation of an MTL Block.
 void visitMTLFileBlock(FileBlock fileBlock)
          Handles the evaluation of an MTL FileBlock.
 void visitMTLForBlock(ForBlock forBlock)
          Handles the evaluation of an MTL ForBlock.
 void visitMTLIfBlock(IfBlock ifBlock)
          Handles the evaluation of an MTL IfBlock.
 void visitMTLLetBlock(LetBlock letBlock)
          Handles the evaluation of an MTL LetBlock.
 void visitMTLProtectedArea(ProtectedAreaBlock protectedArea)
          Handles the evaluation of an MTL ProtectedAreaBlock.
 java.lang.Object visitMTLQueryInvocation(QueryInvocation invocation)
          Handles the evaluation of an MTL QueryInvocation.
 java.lang.String visitMTLTemplate(Template template)
          Handles the evaluation of an MTL Template.
 java.lang.Object visitMTLTemplateInvocation(TemplateInvocation invocation)
          Handles the evaluation of an MTL TemplateInvocation.
 
Methods inherited from class org.eclipse.ocl.EvaluationVisitorDecorator
getDelegate, getEnvironment, getEvaluationEnvironment, getExtentMap, visitAssociationClassCallExp, visitBooleanLiteralExp, visitCollectionItem, visitCollectionLiteralExp, visitCollectionRange, visitConstraint, visitEnumLiteralExp, visitExpressionInOCL, visitIfExp, visitIntegerLiteralExp, visitInvalidLiteralExp, visitIterateExp, visitIteratorExp, visitLetExp, visitMessageExp, visitNullLiteralExp, visitOperationCallExp, visitPropertyCallExp, visitRealLiteralExp, visitStateExp, visitStringLiteralExp, visitTupleLiteralExp, visitTupleLiteralPart, visitTypeExp, visitUnlimitedNaturalLiteralExp, visitUnspecifiedValueExp, visitVariable, visitVariableExp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTLEvaluationVisitor

public MTLEvaluationVisitor(org.eclipse.ocl.EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> decoratedVisitor,
                            MTLEvaluationContext context)
Default constructor.

Parameters:
decoratedVisitor - The evaluation visitor this instance will decorate.
context - The evaluation context this visitor has to take into account.
Method Detail

visitExpression

public java.lang.Object visitExpression(org.eclipse.ocl.expressions.OCLExpression<C> expression)

Specified by:
visitExpression in interface org.eclipse.ocl.EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
Overrides:
visitExpression in class org.eclipse.ocl.EvaluationVisitorDecorator<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
See Also:
AbstractEvaluationVisitor.visitExpression(org.eclipse.ocl.expressions.OCLExpression)

visitMTLBlock

public void visitMTLBlock(Block block)
Handles the evaluation of an MTL Block.

Parameters:
block - The MTL block that is to be evaluated.

visitMTLFileBlock

public void visitMTLFileBlock(FileBlock fileBlock)
Handles the evaluation of an MTL FileBlock.

Parameters:
fileBlock - The file block that need be evaluated.

visitMTLForBlock

public void visitMTLForBlock(ForBlock forBlock)
Handles the evaluation of an MTL ForBlock.

Parameters:
forBlock - The MTL block that is to be evaluated.

visitMTLIfBlock

public void visitMTLIfBlock(IfBlock ifBlock)
Handles the evaluation of an MTL IfBlock.

Parameters:
ifBlock - The MTL block that is to be evaluated.

visitMTLLetBlock

public void visitMTLLetBlock(LetBlock letBlock)
Handles the evaluation of an MTL LetBlock.

Parameters:
letBlock - The MTL let block that is to be evaluated.

visitMTLProtectedArea

public void visitMTLProtectedArea(ProtectedAreaBlock protectedArea)
Handles the evaluation of an MTL ProtectedAreaBlock.

Parameters:
protectedArea - The MTL protected area that is to be evaluated.

visitMTLQueryInvocation

public java.lang.Object visitMTLQueryInvocation(QueryInvocation invocation)
Handles the evaluation of an MTL QueryInvocation.

Parameters:
invocation - The MTL query invocation that is to be evaluated.
Returns:
result of the invocation.

visitMTLTemplate

public java.lang.String visitMTLTemplate(Template template)
Handles the evaluation of an MTL Template.

Parameters:
template - The MTL Template that is to be evaluated.
Returns:
Result of the template evaluation.

visitMTLTemplateInvocation

public java.lang.Object visitMTLTemplateInvocation(TemplateInvocation invocation)
Handles the evaluation of an MTL TemplateInvocation.

Parameters:
invocation - The MTL template invocation that is to be evaluated.
Returns:
result of the invocation.

Copyright 2008 Obeo
All Rights Reserved.