Class PrologmodelSwitch<T>


  • public class PrologmodelSwitch<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:
    PrologmodelPackage
    Generated class or method.
    • Field Detail

      • modelPackage

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

      • PrologmodelSwitch

        public PrologmodelSwitch()
        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.
      • caseSystem

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

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

        public T caseValue​(Value object)
        Returns the result of interpreting the object as an instance of 'Value'. 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 'Value'.
        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.
      • caseVariable

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

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

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

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

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

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

        public T caseValueSetType​(ValueSetType object)
        Returns the result of interpreting the object as an instance of 'Value Set 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 'Value Set Type'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogicTerm

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

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

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

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

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

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

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

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

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

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

        public T caseReturnValueRef​(ReturnValueRef object)
        Returns the result of interpreting the object as an instance of 'Return Value Ref'. 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 'Return Value Ref'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStateRef

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

        public T caseDefaultStateRef​(DefaultStateRef object)
        Returns the result of interpreting the object as an instance of 'Default State Ref'. 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 'Default State Ref'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMinStatic

        public T caseMinStatic​(MinStatic object)
        Returns the result of interpreting the object as an instance of 'Min Static'. 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 'Min Static'.
        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.