org.eclipse.ocl.internal.helper
Class OCLSyntaxHelper.ASTVisitor

java.lang.Object
  extended by org.eclipse.ocl.internal.helper.OCLSyntaxHelper.ASTVisitor
All Implemented Interfaces:
Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>
Direct Known Subclasses:
OCLSyntaxHelper.ASTVisitor
Enclosing class:
OCLSyntaxHelper<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>

protected class OCLSyntaxHelper.ASTVisitor
extends java.lang.Object
implements Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>


Constructor Summary
protected OCLSyntaxHelper.ASTVisitor(java.lang.String text, int position, ConstraintKind constraintType)
          Initializes me with the position at which we are trying to find completions and the text that we are completing.
 
Method Summary
protected  ConstraintKind getConstraintType()
           
 java.util.List<Choice> visitAssociationClassCallExp(AssociationClassCallExp<C,P> exp)
           
 java.util.List<Choice> visitBooleanLiteralExp(BooleanLiteralExp<C> exp)
           
 java.util.List<Choice> visitCollectionItem(CollectionItem<C> item)
           
 java.util.List<Choice> visitCollectionLiteralExp(CollectionLiteralExp<C> exp)
           
 java.util.List<Choice> visitCollectionRange(CollectionRange<C> range)
           
 java.util.List<Choice> visitConstraint(CT constraint)
           
 java.util.List<Choice> visitEnumLiteralExp(EnumLiteralExp<C,EL> enumliteralexp)
           
 java.util.List<Choice> visitExpressionInOCL(ExpressionInOCL<C,PM> expression)
           
 java.util.List<Choice> visitIfExp(IfExp<C> exp)
           
 java.util.List<Choice> visitIntegerLiteralExp(IntegerLiteralExp<C> exp)
           
 java.util.List<Choice> visitInvalidLiteralExp(InvalidLiteralExp<C> il)
           
 java.util.List<Choice> visitIterateExp(IterateExp<C,PM> exp)
           
 java.util.List<Choice> visitIteratorExp(IteratorExp<C,PM> exp)
           
 java.util.List<Choice> visitLetExp(LetExp<C,PM> letexp)
           
 java.util.List<Choice> visitMessageExp(MessageExp<C,COA,SSA> m)
           
 java.util.List<Choice> visitNullLiteralExp(NullLiteralExp<C> il)
           
 java.util.List<Choice> visitOperationCallExp(OperationCallExp<C,O> exp)
           
 java.util.List<Choice> visitPropertyCallExp(PropertyCallExp<C,P> propertycallexp)
           
 java.util.List<Choice> visitRealLiteralExp(RealLiteralExp<C> exp)
           
 java.util.List<Choice> visitStateExp(StateExp<C,S> s)
           
 java.util.List<Choice> visitStringLiteralExp(StringLiteralExp<C> exp)
           
 java.util.List<Choice> visitTupleLiteralExp(TupleLiteralExp<C,P> tupleliteralexp)
           
 java.util.List<Choice> visitTupleLiteralPart(TupleLiteralPart<C,P> tp)
           
 java.util.List<Choice> visitTypeExp(TypeExp<C> typeExp)
           
 java.util.List<Choice> visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> exp)
           
 java.util.List<Choice> visitUnspecifiedValueExp(UnspecifiedValueExp<C> unspecifiedvalueexp)
           
 java.util.List<Choice> visitVariable(Variable<C,PM> variabledeclaration)
           
 java.util.List<Choice> visitVariableExp(VariableExp<C,PM> variableexp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OCLSyntaxHelper.ASTVisitor

protected OCLSyntaxHelper.ASTVisitor(java.lang.String text,
                                     int position,
                                     ConstraintKind constraintType)
Initializes me with the position at which we are trying to find completions and the text that we are completing.

Parameters:
text - the text to complete
position - the completion position
constraintType - the type of constraint that we are completing
Method Detail

getConstraintType

protected ConstraintKind getConstraintType()

visitOperationCallExp

public java.util.List<Choice> visitOperationCallExp(OperationCallExp<C,O> exp)
Description copied from interface: Visitor

Specified by:
visitOperationCallExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitVariableExp

public java.util.List<Choice> visitVariableExp(VariableExp<C,PM> variableexp)
Description copied from interface: Visitor

Specified by:
visitVariableExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitPropertyCallExp

public java.util.List<Choice> visitPropertyCallExp(PropertyCallExp<C,P> propertycallexp)
Description copied from interface: Visitor

Specified by:
visitPropertyCallExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitAssociationClassCallExp

public java.util.List<Choice> visitAssociationClassCallExp(AssociationClassCallExp<C,P> exp)
Description copied from interface: Visitor

Specified by:
visitAssociationClassCallExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitVariable

public java.util.List<Choice> visitVariable(Variable<C,PM> variabledeclaration)
Description copied from interface: Visitor

Specified by:
visitVariable in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitIfExp

public java.util.List<Choice> visitIfExp(IfExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitIfExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitTypeExp

public java.util.List<Choice> visitTypeExp(TypeExp<C> typeExp)
Description copied from interface: Visitor

Specified by:
visitTypeExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitMessageExp

public java.util.List<Choice> visitMessageExp(MessageExp<C,COA,SSA> m)
Description copied from interface: Visitor

Specified by:
visitMessageExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitUnspecifiedValueExp

public java.util.List<Choice> visitUnspecifiedValueExp(UnspecifiedValueExp<C> unspecifiedvalueexp)
Description copied from interface: Visitor

Specified by:
visitUnspecifiedValueExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitIntegerLiteralExp

public java.util.List<Choice> visitIntegerLiteralExp(IntegerLiteralExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitIntegerLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitUnlimitedNaturalLiteralExp

public java.util.List<Choice> visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitUnlimitedNaturalLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitRealLiteralExp

public java.util.List<Choice> visitRealLiteralExp(RealLiteralExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitRealLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitStringLiteralExp

public java.util.List<Choice> visitStringLiteralExp(StringLiteralExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitStringLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitBooleanLiteralExp

public java.util.List<Choice> visitBooleanLiteralExp(BooleanLiteralExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitBooleanLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitNullLiteralExp

public java.util.List<Choice> visitNullLiteralExp(NullLiteralExp<C> il)
Description copied from interface: Visitor

Specified by:
visitNullLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitInvalidLiteralExp

public java.util.List<Choice> visitInvalidLiteralExp(InvalidLiteralExp<C> il)
Description copied from interface: Visitor

Specified by:
visitInvalidLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitTupleLiteralExp

public java.util.List<Choice> visitTupleLiteralExp(TupleLiteralExp<C,P> tupleliteralexp)
Description copied from interface: Visitor

Specified by:
visitTupleLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitTupleLiteralPart

public java.util.List<Choice> visitTupleLiteralPart(TupleLiteralPart<C,P> tp)
Description copied from interface: Visitor

Specified by:
visitTupleLiteralPart in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitLetExp

public java.util.List<Choice> visitLetExp(LetExp<C,PM> letexp)
Description copied from interface: Visitor

Specified by:
visitLetExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitEnumLiteralExp

public java.util.List<Choice> visitEnumLiteralExp(EnumLiteralExp<C,EL> enumliteralexp)
Description copied from interface: Visitor

Specified by:
visitEnumLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitStateExp

public java.util.List<Choice> visitStateExp(StateExp<C,S> s)
Description copied from interface: Visitor

Specified by:
visitStateExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitCollectionLiteralExp

public java.util.List<Choice> visitCollectionLiteralExp(CollectionLiteralExp<C> exp)
Description copied from interface: Visitor

Specified by:
visitCollectionLiteralExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitCollectionItem

public java.util.List<Choice> visitCollectionItem(CollectionItem<C> item)
Description copied from interface: Visitor

Specified by:
visitCollectionItem in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitCollectionRange

public java.util.List<Choice> visitCollectionRange(CollectionRange<C> range)
Description copied from interface: Visitor

Specified by:
visitCollectionRange in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitIteratorExp

public java.util.List<Choice> visitIteratorExp(IteratorExp<C,PM> exp)
Description copied from interface: Visitor

Specified by:
visitIteratorExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitIterateExp

public java.util.List<Choice> visitIterateExp(IterateExp<C,PM> exp)
Description copied from interface: Visitor

Specified by:
visitIterateExp in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitExpressionInOCL

public java.util.List<Choice> visitExpressionInOCL(ExpressionInOCL<C,PM> expression)
Description copied from interface: Visitor

Specified by:
visitExpressionInOCL in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>

visitConstraint

public java.util.List<Choice> visitConstraint(CT constraint)
Description copied from interface: Visitor

Specified by:
visitConstraint in interface Visitor<java.util.List<Choice>,C,O,P,EL,PM,S,COA,SSA,CT>