org.eclipse.gmt.umlx.eqvtc.cst.util
Class EqvtcCSTSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.eqvtc.cst.util.EqvtcCSTSwitch<T>

public class EqvtcCSTSwitch<T>
extends java.lang.Object

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:
EqvtcCSTPackage

Constructor Summary
EqvtcCSTSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAreaCS(AreaCS object)
          Returns the result of interpreting the object as an instance of 'Area CS'.
 T caseAssignmentCS(AssignmentCS object)
          Returns the result of interpreting the object as an instance of 'Assignment CS'.
 T caseBottomPatternCS(BottomPatternCS object)
          Returns the result of interpreting the object as an instance of 'Bottom Pattern CS'.
 T caseCSTNode(org.eclipse.ocl.internal.cst.CSTNode object)
          Returns the result of interpreting the object as an instance of 'Node'.
 T caseDirectionCS(DirectionCS object)
          Returns the result of interpreting the object as an instance of 'Direction CS'.
 T caseDomainCS(DomainCS object)
          Returns the result of interpreting the object as an instance of 'Domain CS'.
 T caseGuardPatternCS(GuardPatternCS object)
          Returns the result of interpreting the object as an instance of 'Guard Pattern CS'.
 T caseIdentifiedCSTNode(IdentifiedCSTNode object)
          Returns the result of interpreting the object as an instance of 'Identified CST Node'.
 T caseIdentifierCS(IdentifierCS object)
          Returns the result of interpreting the object as an instance of 'Identifier CS'.
 T caseMappingCS(MappingCS object)
          Returns the result of interpreting the object as an instance of 'Mapping CS'.
 T caseOCLExpressionCS(org.eclipse.ocl.internal.cst.OCLExpressionCS object)
          Returns the result of interpreting the object as an instance of 'OCL Expression CS'.
 T casePatternCS(PatternCS object)
          Returns the result of interpreting the object as an instance of 'Pattern CS'.
 T caseRealizeableVariableCS(RealizeableVariableCS object)
          Returns the result of interpreting the object as an instance of 'Realizeable Variable CS'.
 T caseRealizedVariableCS(RealizedVariableCS object)
          Returns the result of interpreting the object as an instance of 'Realized Variable CS'.
 T caseTopLevelCS(TopLevelCS object)
          Returns the result of interpreting the object as an instance of 'Top Level CS'.
 T caseTransformationCS(TransformationCS object)
          Returns the result of interpreting the object as an instance of 'Transformation CS'.
 T caseUnrealizedVariableCS(UnrealizedVariableCS object)
          Returns the result of interpreting the object as an instance of 'Unrealized Variable CS'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqvtcCSTSwitch

public EqvtcCSTSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(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.

Returns:
the first non-null result returned by a caseXXX call.

caseAreaCS

public T caseAreaCS(AreaCS object)
Returns the result of interpreting the object as an instance of 'Area CS'. 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 'Area CS'.
See Also:
doSwitch(EObject)

caseAssignmentCS

public T caseAssignmentCS(AssignmentCS object)
Returns the result of interpreting the object as an instance of 'Assignment CS'. 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 'Assignment CS'.
See Also:
doSwitch(EObject)

caseBottomPatternCS

public T caseBottomPatternCS(BottomPatternCS object)
Returns the result of interpreting the object as an instance of 'Bottom Pattern CS'. 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 'Bottom Pattern CS'.
See Also:
doSwitch(EObject)

caseDirectionCS

public T caseDirectionCS(DirectionCS object)
Returns the result of interpreting the object as an instance of 'Direction CS'. 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 'Direction CS'.
See Also:
doSwitch(EObject)

caseIdentifierCS

public T caseIdentifierCS(IdentifierCS object)
Returns the result of interpreting the object as an instance of 'Identifier CS'. 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 'Identifier CS'.
See Also:
doSwitch(EObject)

caseMappingCS

public T caseMappingCS(MappingCS object)
Returns the result of interpreting the object as an instance of 'Mapping CS'. 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 'Mapping CS'.
See Also:
doSwitch(EObject)

casePatternCS

public T casePatternCS(PatternCS object)
Returns the result of interpreting the object as an instance of 'Pattern CS'. 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 'Pattern CS'.
See Also:
doSwitch(EObject)

caseRealizeableVariableCS

public T caseRealizeableVariableCS(RealizeableVariableCS object)
Returns the result of interpreting the object as an instance of 'Realizeable Variable CS'. 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 'Realizeable Variable CS'.
See Also:
doSwitch(EObject)

caseTopLevelCS

public T caseTopLevelCS(TopLevelCS object)
Returns the result of interpreting the object as an instance of 'Top Level CS'. 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 'Top Level CS'.
See Also:
doSwitch(EObject)

caseTransformationCS

public T caseTransformationCS(TransformationCS object)
Returns the result of interpreting the object as an instance of 'Transformation CS'. 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 'Transformation CS'.
See Also:
doSwitch(EObject)

caseUnrealizedVariableCS

public T caseUnrealizedVariableCS(UnrealizedVariableCS object)
Returns the result of interpreting the object as an instance of 'Unrealized Variable CS'. 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 'Unrealized Variable CS'.
See Also:
doSwitch(EObject)

caseDomainCS

public T caseDomainCS(DomainCS object)
Returns the result of interpreting the object as an instance of 'Domain CS'. 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 'Domain CS'.
See Also:
doSwitch(EObject)

caseGuardPatternCS

public T caseGuardPatternCS(GuardPatternCS object)
Returns the result of interpreting the object as an instance of 'Guard Pattern CS'. 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 'Guard Pattern CS'.
See Also:
doSwitch(EObject)

caseIdentifiedCSTNode

public T caseIdentifiedCSTNode(IdentifiedCSTNode object)
Returns the result of interpreting the object as an instance of 'Identified CST 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 'Identified CST Node'.
See Also:
doSwitch(EObject)

caseRealizedVariableCS

public T caseRealizedVariableCS(RealizedVariableCS object)
Returns the result of interpreting the object as an instance of 'Realized Variable CS'. 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 'Realized Variable CS'.
See Also:
doSwitch(EObject)

caseCSTNode

public T caseCSTNode(org.eclipse.ocl.internal.cst.CSTNode object)
Returns the result of interpreting the object as an instance of '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 'Node'.
See Also:
doSwitch(EObject)

caseOCLExpressionCS

public T caseOCLExpressionCS(org.eclipse.ocl.internal.cst.OCLExpressionCS object)
Returns the result of interpreting the object as an instance of 'OCL Expression CS'. 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 'OCL Expression CS'.
See Also:
doSwitch(EObject)

defaultCase

public T 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.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)