Class LiteralsSwitch<T>

  • Direct Known Subclasses:
    LiteralsPrinterSwitch

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

      • modelPackage

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

      • LiteralsSwitch

        public LiteralsSwitch()
        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.
      • caseLiteral

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

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

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

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

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

        public T caseDecimalFloatLiteral​(DecimalFloatLiteral object)
        Returns the result of interpreting the object as an instance of 'Decimal Float 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 'Decimal Float Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseHexFloatLiteral

        public T caseHexFloatLiteral​(HexFloatLiteral object)
        Returns the result of interpreting the object as an instance of 'Hex Float 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 'Hex Float 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.
      • caseDecimalDoubleLiteral

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

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

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

        public T caseDecimalIntegerLiteral​(DecimalIntegerLiteral object)
        Returns the result of interpreting the object as an instance of 'Decimal Integer 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 'Decimal Integer Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseHexIntegerLiteral

        public T caseHexIntegerLiteral​(HexIntegerLiteral object)
        Returns the result of interpreting the object as an instance of 'Hex Integer 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 'Hex Integer Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseOctalIntegerLiteral

        public T caseOctalIntegerLiteral​(OctalIntegerLiteral object)
        Returns the result of interpreting the object as an instance of 'Octal Integer 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 'Octal Integer Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBinaryIntegerLiteral

        public T caseBinaryIntegerLiteral​(BinaryIntegerLiteral object)
        Returns the result of interpreting the object as an instance of 'Binary Integer 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 'Binary Integer Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLongLiteral

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

        public T caseDecimalLongLiteral​(DecimalLongLiteral object)
        Returns the result of interpreting the object as an instance of 'Decimal Long 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 'Decimal Long Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseHexLongLiteral

        public T caseHexLongLiteral​(HexLongLiteral object)
        Returns the result of interpreting the object as an instance of 'Hex Long 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 'Hex Long Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseOctalLongLiteral

        public T caseOctalLongLiteral​(OctalLongLiteral object)
        Returns the result of interpreting the object as an instance of 'Octal Long 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 'Octal Long Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBinaryLongLiteral

        public T caseBinaryLongLiteral​(BinaryLongLiteral object)
        Returns the result of interpreting the object as an instance of 'Binary Long 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 'Binary Long Literal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNullLiteral

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

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

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

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

        public T caseArrayInitializationValue​(ArrayInitializationValue object)
        Returns the result of interpreting the object as an instance of 'Array Initialization 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 'Array Initialization Value'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLambdaBody

        public T caseLambdaBody​(LambdaBody object)
        Returns the result of interpreting the object as an instance of 'Lambda Body'. 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 'Lambda Body'.
        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.
      • caseAnnotationValue

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public T casePrimaryExpression​(PrimaryExpression object)
        Returns the result of interpreting the object as an instance of 'Primary 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 'Primary Expression'.
        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.