Class StoExPrettyPrintVisitor

    • Constructor Detail

      • StoExPrettyPrintVisitor

        public StoExPrettyPrintVisitor()
    • Method Detail

      • caseBoolLiteral

        public StringBuilder caseBoolLiteral​(BoolLiteral object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseBoolLiteral in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Bool Literal'.
        See Also:
        doSwitch(EObject)
      • casePowerExpression

        public StringBuilder casePowerExpression​(PowerExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        casePowerExpression in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Power Expression'.
        See Also:
        doSwitch(EObject)
      • caseStringLiteral

        public StringBuilder caseStringLiteral​(StringLiteral object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseStringLiteral in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'String Literal'.
        See Also:
        doSwitch(EObject)
      • caseCompareExpression

        public StringBuilder caseCompareExpression​(CompareExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseCompareExpression in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Compare Expression '.
        See Also:
        doSwitch(EObject)
      • caseDoubleLiteral

        public StringBuilder caseDoubleLiteral​(DoubleLiteral object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseDoubleLiteral in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Double Literal'.
        See Also:
        doSwitch(EObject)
      • caseIntLiteral

        public StringBuilder caseIntLiteral​(IntLiteral object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseIntLiteral in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Int Literal'.
        See Also:
        doSwitch(EObject)
      • caseParenthesis

        public StringBuilder caseParenthesis​(Parenthesis object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseParenthesis in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Parenthesis'.
        See Also:
        doSwitch(EObject)
      • caseProbabilityFunctionLiteral

        public StringBuilder caseProbabilityFunctionLiteral​(ProbabilityFunctionLiteral object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseProbabilityFunctionLiteral in class StoexSwitch<StringBuilder>
        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)
      • caseProductExpression

        public StringBuilder caseProductExpression​(ProductExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseProductExpression in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Product Expression '.
        See Also:
        doSwitch(EObject)
      • caseTermExpression

        public StringBuilder caseTermExpression​(TermExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseTermExpression in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Term Expression'.
        See Also:
        doSwitch(EObject)
      • caseNamespaceReference

        public StringBuilder caseNamespaceReference​(NamespaceReference object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseNamespaceReference in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Namespace Reference '.
        See Also:
        doSwitch(EObject)
      • caseVariableReference

        public StringBuilder caseVariableReference​(VariableReference object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseVariableReference in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Variable Reference '.
        See Also:
        doSwitch(EObject)
      • caseVariable

        public StringBuilder caseVariable​(Variable object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseVariable in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Variable'.
        See Also:
        doSwitch(EObject)
      • caseBooleanOperatorExpression

        public StringBuilder caseBooleanOperatorExpression​(BooleanOperatorExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseBooleanOperatorExpression in class StoexSwitch<StringBuilder>
        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)
      • caseNegativeExpression

        public StringBuilder caseNegativeExpression​(NegativeExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseNegativeExpression in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Negative Expression '.
        See Also:
        doSwitch(EObject)
      • caseNotExpression

        public StringBuilder caseNotExpression​(NotExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseNotExpression in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Not Expression'.
        See Also:
        doSwitch(EObject)
      • caseFunctionLiteral

        public StringBuilder caseFunctionLiteral​(FunctionLiteral object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseFunctionLiteral in class StoexSwitch<StringBuilder>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Function Literal'.
        See Also:
        doSwitch(EObject)
      • caseIfElseExpression

        public StringBuilder caseIfElseExpression​(IfElseExpression object)
        Description copied from class: StoexSwitch
        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.
        Overrides:
        caseIfElseExpression in class StoexSwitch<StringBuilder>
        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)