Class StoexSwitch<T>

  • Direct Known Subclasses:
    ExpressionInferTypeVisitor, ExpressionSolveVisitor, TypeCheckVisitor

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

      • modelPackage

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

      • StoexSwitch

        public StoexSwitch()
        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.
      • caseVariableReference

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

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

        public T caseNamespaceReference​(NamespaceReference object)
        Returns the result of interpreting the object as an instance of 'Namespace 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 'Namespace Reference'.
        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.
      • caseAtom

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

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

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

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

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

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

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

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

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

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

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

        public T caseProbabilityFunctionLiteral​(ProbabilityFunctionLiteral object)
        Returns the result of interpreting the object as an instance of 'Probability Function Literal'. 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 'Probability Function Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseParenthesis

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

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

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

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

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

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

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

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

        public T caseBooleanOperatorExpression​(BooleanOperatorExpression object)
        Returns the result of interpreting the object as an instance of 'Boolean Operator Expression'. 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 Operator Expression'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNotExpression

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

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

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

        public T caseIfElseExpression​(IfElseExpression object)
        Returns the result of interpreting the object as an instance of 'If Else Expression'. 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 'If Else Expression'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRandomVariable

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

        public T caseUnitCarryingElement​(UnitCarryingElement object)
        Returns the result of interpreting the object as an instance of 'Unit Carrying 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 'Unit Carrying Element'.
        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.