org.eclipse.ocl.utilities.util
Class UtilitiesSwitch<T1>

java.lang.Object
  extended by org.eclipse.emf.ecore.util.Switch<T1>
      extended by org.eclipse.ocl.utilities.util.UtilitiesSwitch<T1>

public class UtilitiesSwitch<T1>
extends org.eclipse.emf.ecore.util.Switch<T1>

The Switch for the model's inheritance hierarchy. It supports the call doSwitch(object) to invoke the caseXXX method for each class of the model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is returned, which is the result of the switch.

See Also:
UtilitiesPackage
Generated

Field Summary
protected static UtilitiesPackage modelPackage
          The cached model package
 
Constructor Summary
UtilitiesSwitch()
          Creates an instance of the switch.
 
Method Summary
 T1 caseASTNode(ASTNode object)
          Returns the result of interpreting the object as an instance of 'AST Node'.
 T1 caseCallingASTNode(CallingASTNode object)
          Returns the result of interpreting the object as an instance of 'Calling AST Node'.
<C,PM> T1
caseExpressionInOCL(ExpressionInOCL<C,PM> object)
          Returns the result of interpreting the object as an instance of 'Expression In OCL'.
<O> T1
casePredefinedType(PredefinedType<O> object)
          Returns the result of interpreting the object as an instance of 'Predefined Type'.
 T1 caseTypedASTNode(TypedASTNode object)
          Returns the result of interpreting the object as an instance of 'Typed AST Node'.
<C> T1
caseTypedElement(TypedElement<C> object)
          Returns the result of interpreting the object as an instance of 'Typed Element'.
 T1 caseVisitable(Visitable object)
          Returns the result of interpreting the object as an instance of 'Visitable'.
<T,C,O,P,EL,PM,S,COA,SSA,CT>
T1
caseVisitor(Visitor<T,C,O,P,EL,PM,S,COA,SSA,CT> object)
          Returns the result of interpreting the object as an instance of 'Visitor'.
 T1 defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
protected  T1 doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
protected  boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
          Checks whether this is a switch for the given package.
 
Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static UtilitiesPackage modelPackage
The cached model package

Generated
Constructor Detail

UtilitiesSwitch

public UtilitiesSwitch()
Creates an instance of the switch.

Generated
Method Detail

isSwitchFor

protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package.

Specified by:
isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T1>
Parameters:
ePackage - the package in question.
Returns:
whether this is a switch for the given package.
Generated

doSwitch

protected T1 doSwitch(int classifierID,
                      org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Overrides:
doSwitch in class org.eclipse.emf.ecore.util.Switch<T1>
Returns:
the first non-null result returned by a caseXXX call.
Generated

caseASTNode

public T1 caseASTNode(ASTNode object)
Returns the result of interpreting the object as an instance of 'AST Node'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'AST Node'.
See Also:
doSwitch(EObject)
Generated

caseCallingASTNode

public T1 caseCallingASTNode(CallingASTNode object)
Returns the result of interpreting the object as an instance of 'Calling AST Node'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Calling AST Node'.
See Also:
doSwitch(EObject)
Generated

casePredefinedType

public <O> T1 casePredefinedType(PredefinedType<O> object)
Returns the result of interpreting the object as an instance of 'Predefined Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Predefined Type'.
See Also:
doSwitch(EObject)
Generated

caseTypedASTNode

public T1 caseTypedASTNode(TypedASTNode object)
Returns the result of interpreting the object as an instance of 'Typed AST Node'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Typed AST Node'.
See Also:
doSwitch(EObject)
Generated

caseVisitable

public T1 caseVisitable(Visitable object)
Returns the result of interpreting the object as an instance of 'Visitable'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Visitable'.
See Also:
doSwitch(EObject)
Generated

caseTypedElement

public <C> T1 caseTypedElement(TypedElement<C> object)
Returns the result of interpreting the object as an instance of 'Typed Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Typed Element'.
See Also:
doSwitch(EObject)
Generated

caseVisitor

public <T,C,O,P,EL,PM,S,COA,SSA,CT> T1 caseVisitor(Visitor<T,C,O,P,EL,PM,S,COA,SSA,CT> object)
Returns the result of interpreting the object as an instance of 'Visitor'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Visitor'.
See Also:
doSwitch(EObject)
Generated

caseExpressionInOCL

public <C,PM> T1 caseExpressionInOCL(ExpressionInOCL<C,PM> object)
Returns the result of interpreting the object as an instance of 'Expression In OCL'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Expression In OCL'.
See Also:
doSwitch(EObject)
Generated

defaultCase

public T1 defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Overrides:
defaultCase in class org.eclipse.emf.ecore.util.Switch<T1>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
Generated