Class DSLSwitch<T>


  • public class DSLSwitch<T>
    extends Switch<T>
    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:
    DSLPackage
    Generated class or method.
    • Field Detail

      • modelPackage

        protected static DSLPackage modelPackage
        The cached model package
        Generated class or method.
    • Constructor Detail

      • DSLSwitch

        public DSLSwitch()
        Creates an instance of the switch.
        Generated class or method.
    • Method Detail

      • isSwitchFor

        protected boolean isSwitchFor​(EPackage ePackage)
        Checks whether this is a switch for the given package.
        Specified by:
        isSwitchFor in class Switch<T>
        Parameters:
        ePackage - the package in question.
        Returns:
        whether this is a switch for the given package.
        Generated class or method.
      • doSwitch

        protected T doSwitch​(int classifierID,
                             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 Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated class or method.
      • caseModel

        public T caseModel​(Model object)
        Returns the result of interpreting the object as an instance of 'Model'. 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 'Model'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAbstractElement

        public T caseAbstractElement​(AbstractElement object)
        Returns the result of interpreting the object as an instance of 'Abstract 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 'Abstract Element'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicType

        public T caseCharacteristicType​(CharacteristicType object)
        Returns the result of interpreting the object as an instance of 'Characteristic 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 'Characteristic Type'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseGlobalConstantDefinition

        public T caseGlobalConstantDefinition​(GlobalConstantDefinition object)
        Returns the result of interpreting the object as an instance of 'Global Constant Definition'. 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 'Global Constant Definition'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseGlobalSetConstantDefinition

        public T caseGlobalSetConstantDefinition​(GlobalSetConstantDefinition object)
        Returns the result of interpreting the object as an instance of 'Global Set Constant Definition'. 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 'Global Set Constant Definition'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseGlobalValueConstantDefinition

        public T caseGlobalValueConstantDefinition​(GlobalValueConstantDefinition object)
        Returns the result of interpreting the object as an instance of 'Global Value Constant Definition'. 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 'Global Value Constant Definition'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicClass

        public T caseCharacteristicClass​(CharacteristicClass object)
        Returns the result of interpreting the object as an instance of 'Characteristic Class'. 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 'Characteristic Class'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicTypeSelector

        public T caseCharacteristicTypeSelector​(CharacteristicTypeSelector object)
        Returns the result of interpreting the object as an instance of 'Characteristic Type Selector'. 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 'Characteristic Type Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicVariableType

        public T caseCharacteristicVariableType​(CharacteristicVariableType object)
        Returns the result of interpreting the object as an instance of 'Characteristic Variable 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 'Characteristic Variable Type'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicVariable

        public T caseCharacteristicVariable​(CharacteristicVariable object)
        Returns the result of interpreting the object as an instance of 'Characteristic Variable'. 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 'Characteristic Variable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicSet

        public T caseCharacteristicSet​(CharacteristicSet object)
        Returns the result of interpreting the object as an instance of 'Characteristic Set'. 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 'Characteristic Set'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseInclude

        public T caseInclude​(Include object)
        Returns the result of interpreting the object as an instance of 'Include'. 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 'Include'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseConstraint

        public T caseConstraint​(Constraint object)
        Returns the result of interpreting the object as an instance of 'Constraint'. 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 'Constraint'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRule

        public T caseRule​(Rule object)
        Returns the result of interpreting the object as an instance of 'Rule'. 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 'Rule'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseData

        public T caseData​(Data object)
        Returns the result of interpreting the object as an instance of 'Data'. 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 'Data'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDestination

        public T caseDestination​(Destination object)
        Returns the result of interpreting the object as an instance of 'Destination'. 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 'Destination'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSource

        public T caseSource​(Source object)
        Returns the result of interpreting the object as an instance of 'Source'. 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 'Source'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDataSelector

        public T caseDataSelector​(DataSelector object)
        Returns the result of interpreting the object as an instance of 'Data Selector'. 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 'Data Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSpecificDataSelector

        public T caseSpecificDataSelector​(SpecificDataSelector object)
        Returns the result of interpreting the object as an instance of 'Specific Data Selector'. 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 'Specific Data Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicSelector

        public T caseCharacteristicSelector​(CharacteristicSelector object)
        Returns the result of interpreting the object as an instance of 'Characteristic Selector'. 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 'Characteristic Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicClassSelector

        public T caseCharacteristicClassSelector​(CharacteristicClassSelector object)
        Returns the result of interpreting the object as an instance of 'Characteristic Class Selector'. 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 'Characteristic Class Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAttributeSelector

        public T caseAttributeSelector​(AttributeSelector object)
        Returns the result of interpreting the object as an instance of 'Attribute Selector'. 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 'Attribute Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAttributeClassSelector

        public T caseAttributeClassSelector​(AttributeClassSelector object)
        Returns the result of interpreting the object as an instance of 'Attribute Class Selector'. 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 'Attribute Class Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAnySelector

        public T caseAnySelector​(AnySelector object)
        Returns the result of interpreting the object as an instance of 'Any Selector'. 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 'Any Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNodeSelector

        public T caseNodeSelector​(NodeSelector object)
        Returns the result of interpreting the object as an instance of 'Node Selector'. 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 Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePropertySelector

        public T casePropertySelector​(PropertySelector object)
        Returns the result of interpreting the object as an instance of 'Property Selector'. 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 'Property Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePropertyClassSelector

        public T casePropertyClassSelector​(PropertyClassSelector object)
        Returns the result of interpreting the object as an instance of 'Property Class Selector'. 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 'Property Class Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNodeIdentitiySelector

        public T caseNodeIdentitiySelector​(NodeIdentitiySelector object)
        Returns the result of interpreting the object as an instance of 'Node Identitiy Selector'. 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 Identitiy Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNodeTypeSelector

        public T caseNodeTypeSelector​(NodeTypeSelector object)
        Returns the result of interpreting the object as an instance of 'Node Type Selector'. 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 Type Selector'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStatement

        public T caseStatement​(Statement object)
        Returns the result of interpreting the object as an instance of 'Statement'. 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 'Statement'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStatementType

        public T caseStatementType​(StatementType object)
        Returns the result of interpreting the object as an instance of 'Statement 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 'Statement Type'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStatementModality

        public T caseStatementModality​(StatementModality object)
        Returns the result of interpreting the object as an instance of 'Statement Modality'. 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 'Statement Modality'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCondition

        public T caseCondition​(Condition object)
        Returns the result of interpreting the object as an instance of 'Condition'. 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 'Condition'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseReference

        public T caseReference​(Reference object)
        Returns the result of interpreting the object as an instance of 'Reference'. 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 'Reference'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicReference

        public T caseCharacteristicReference​(CharacteristicReference object)
        Returns the result of interpreting the object as an instance of 'Characteristic Reference'. 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 'Characteristic Reference'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristicSetReference

        public T caseCharacteristicSetReference​(CharacteristicSetReference object)
        Returns the result of interpreting the object as an instance of 'Characteristic Set Reference'. 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 'Characteristic Set Reference'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseOperation

        public T caseOperation​(Operation object)
        Returns the result of interpreting the object as an instance of 'Operation'. 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 'Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBooleanOperation

        public T caseBooleanOperation​(BooleanOperation object)
        Returns the result of interpreting the object as an instance of 'Boolean Operation'. 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 'Boolean Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCharacteristsicSetOperation

        public T caseCharacteristsicSetOperation​(CharacteristsicSetOperation object)
        Returns the result of interpreting the object as an instance of 'Characteristsic Set Operation'. 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 'Characteristsic Set Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSimpleBooleanOperation

        public T caseSimpleBooleanOperation​(SimpleBooleanOperation object)
        Returns the result of interpreting the object as an instance of 'Simple Boolean Operation'. 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 'Simple Boolean Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseVariableEqualityOperation

        public T caseVariableEqualityOperation​(VariableEqualityOperation object)
        Returns the result of interpreting the object as an instance of 'Variable Equality Operation'. 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 'Variable Equality Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseVariableInequalityOperation

        public T caseVariableInequalityOperation​(VariableInequalityOperation object)
        Returns the result of interpreting the object as an instance of 'Variable Inequality Operation'. 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 'Variable Inequality Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLessThanOperation

        public T caseLessThanOperation​(LessThanOperation object)
        Returns the result of interpreting the object as an instance of 'Less Than Operation'. 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 'Less Than Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseGreaterThanOperation

        public T caseGreaterThanOperation​(GreaterThanOperation object)
        Returns the result of interpreting the object as an instance of 'Greater Than Operation'. 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 'Greater Than Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEmptySetOperation

        public T caseEmptySetOperation​(EmptySetOperation object)
        Returns the result of interpreting the object as an instance of 'Empty Set Operation'. 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 'Empty Set Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSubsetOperation

        public T caseSubsetOperation​(SubsetOperation object)
        Returns the result of interpreting the object as an instance of 'Subset Operation'. 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 'Subset Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseIntersectionOperation

        public T caseIntersectionOperation​(IntersectionOperation object)
        Returns the result of interpreting the object as an instance of 'Intersection Operation'. 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 'Intersection Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUnionOperation

        public T caseUnionOperation​(UnionOperation object)
        Returns the result of interpreting the object as an instance of 'Union Operation'. 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 'Union Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSubtractOperation

        public T caseSubtractOperation​(SubtractOperation object)
        Returns the result of interpreting the object as an instance of 'Subtract Operation'. 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 'Subtract Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseElementOfOperation

        public T caseElementOfOperation​(ElementOfOperation object)
        Returns the result of interpreting the object as an instance of 'Element Of Operation'. 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 'Element Of Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCreateSetOperation

        public T caseCreateSetOperation​(CreateSetOperation object)
        Returns the result of interpreting the object as an instance of 'Create Set Operation'. 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 'Create Set Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseComplementOperation

        public T caseComplementOperation​(ComplementOperation object)
        Returns the result of interpreting the object as an instance of 'Complement Operation'. 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 'Complement Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNumericOperation

        public T caseNumericOperation​(NumericOperation object)
        Returns the result of interpreting the object as an instance of 'Numeric Operation'. 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 'Numeric Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseIndexOperation

        public T caseIndexOperation​(IndexOperation object)
        Returns the result of interpreting the object as an instance of 'Index Operation'. 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 'Index Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogicalOrOperation

        public T caseLogicalOrOperation​(LogicalOrOperation object)
        Returns the result of interpreting the object as an instance of 'Logical Or Operation'. 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 'Logical Or Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogicalAndOperation

        public T caseLogicalAndOperation​(LogicalAndOperation object)
        Returns the result of interpreting the object as an instance of 'Logical And Operation'. 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 'Logical And Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogicalNegationOperation

        public T caseLogicalNegationOperation​(LogicalNegationOperation object)
        Returns the result of interpreting the object as an instance of 'Logical Negation Operation'. 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 'Logical Negation Operation'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • defaultCase

        public T defaultCase​(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 Switch<T>
        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 class or method.