Class OperatorsSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.emftext.language.java.operators.util.OperatorsSwitch<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:
- Generated class or method.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseAddition
(Addition object) Returns the result of interpreting the object as an instance of 'Addition'.caseAdditiveOperator
(AdditiveOperator object) Returns the result of interpreting the object as an instance of 'Additive Operator'.caseAssignment
(Assignment object) Returns the result of interpreting the object as an instance of 'Assignment'.caseAssignmentAnd
(AssignmentAnd object) Returns the result of interpreting the object as an instance of 'Assignment And'.Returns the result of interpreting the object as an instance of 'Assignment Division'.Returns the result of interpreting the object as an instance of 'Assignment Exclusive Or'.Returns the result of interpreting the object as an instance of 'Assignment Left Shift'.caseAssignmentMinus
(AssignmentMinus object) Returns the result of interpreting the object as an instance of 'Assignment Minus'.caseAssignmentModulo
(AssignmentModulo object) Returns the result of interpreting the object as an instance of 'Assignment Modulo'.Returns the result of interpreting the object as an instance of 'Assignment Multiplication'.Returns the result of interpreting the object as an instance of 'Assignment Operator'.caseAssignmentOr
(AssignmentOr object) Returns the result of interpreting the object as an instance of 'Assignment Or'.caseAssignmentPlus
(AssignmentPlus object) Returns the result of interpreting the object as an instance of 'Assignment Plus'.Returns the result of interpreting the object as an instance of 'Assignment Right Shift'.Returns the result of interpreting the object as an instance of 'Assignment Unsigned Right Shift'.caseCommentable
(Commentable object) Returns the result of interpreting the object as an instance of 'Commentable'.caseComplement
(Complement object) Returns the result of interpreting the object as an instance of 'Complement'.caseDivision
(Division object) Returns the result of interpreting the object as an instance of 'Division'.Returns the result of interpreting the object as an instance of 'Equal'.caseEqualityOperator
(EqualityOperator object) Returns the result of interpreting the object as an instance of 'Equality Operator'.caseGreaterThan
(GreaterThan object) Returns the result of interpreting the object as an instance of 'Greater Than'.Returns the result of interpreting the object as an instance of 'Greater Than Or Equal'.caseLeftShift
(LeftShift object) Returns the result of interpreting the object as an instance of 'Left Shift'.caseLessThan
(LessThan object) Returns the result of interpreting the object as an instance of 'Less Than'.caseLessThanOrEqual
(LessThanOrEqual object) Returns the result of interpreting the object as an instance of 'Less Than Or Equal'.caseMinusMinus
(MinusMinus object) Returns the result of interpreting the object as an instance of 'Minus Minus'.caseMultiplication
(Multiplication object) Returns the result of interpreting the object as an instance of 'Multiplication'.Returns the result of interpreting the object as an instance of 'Multiplicative Operator'.caseNegate
(Negate object) Returns the result of interpreting the object as an instance of 'Negate'.caseNotEqual
(NotEqual object) Returns the result of interpreting the object as an instance of 'Not Equal'.caseOperator
(Operator object) Returns the result of interpreting the object as an instance of 'Operator'.casePlusPlus
(PlusPlus object) Returns the result of interpreting the object as an instance of 'Plus Plus'.caseRelationOperator
(RelationOperator object) Returns the result of interpreting the object as an instance of 'Relation Operator'.caseRemainder
(Remainder object) Returns the result of interpreting the object as an instance of 'Remainder'.caseRightShift
(RightShift object) Returns the result of interpreting the object as an instance of 'Right Shift'.caseShiftOperator
(ShiftOperator object) Returns the result of interpreting the object as an instance of 'Shift Operator'.caseSubtraction
(Subtraction object) Returns the result of interpreting the object as an instance of 'Subtraction'.Returns the result of interpreting the object as an instance of 'Unary Modification Operator'.caseUnaryOperator
(UnaryOperator object) Returns the result of interpreting the object as an instance of 'Unary Operator'.Returns the result of interpreting the object as an instance of 'Unsigned Right Shift'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor
(EPackage ePackage) Checks whether this is a switch for the given package.
-
Field Details
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
OperatorsSwitch
public OperatorsSwitch()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
isSwitchFor
Checks whether this is a switch for the given package.- Specified by:
isSwitchFor
in classSwitch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
- Generated class or method.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result. -
caseOperator
Returns the result of interpreting the object as an instance of 'Operator'. 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 'Operator'.
- See Also:
- Generated class or method.
-
caseAdditiveOperator
Returns the result of interpreting the object as an instance of 'Additive Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseAssignmentOperator
Returns the result of interpreting the object as an instance of 'Assignment Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseEqualityOperator
Returns the result of interpreting the object as an instance of 'Equality Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseMultiplicativeOperator
Returns the result of interpreting the object as an instance of 'Multiplicative Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseRelationOperator
Returns the result of interpreting the object as an instance of 'Relation Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseShiftOperator
Returns the result of interpreting the object as an instance of 'Shift Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseUnaryOperator
Returns the result of interpreting the object as an instance of 'Unary Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseUnaryModificationOperator
Returns the result of interpreting the object as an instance of 'Unary Modification Operator'. 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 Operator'.
- See Also:
- Generated class or method.
-
caseAssignment
Returns the result of interpreting the object as an instance of '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 'Assignment'.
- See Also:
- Generated class or method.
-
caseAssignmentAnd
Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment And'.
- See Also:
- Generated class or method.
-
caseAssignmentDivision
Returns the result of interpreting the object as an instance of 'Assignment Division'. 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 Division'.
- See Also:
- Generated class or method.
-
caseAssignmentExclusiveOr
Returns the result of interpreting the object as an instance of 'Assignment Exclusive 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 'Assignment Exclusive Or'.
- See Also:
- Generated class or method.
-
caseAssignmentMinus
Returns the result of interpreting the object as an instance of 'Assignment Minus'. 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 Minus'.
- See Also:
- Generated class or method.
-
caseAssignmentModulo
Returns the result of interpreting the object as an instance of 'Assignment Modulo'. 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 Modulo'.
- See Also:
- Generated class or method.
-
caseAssignmentMultiplication
Returns the result of interpreting the object as an instance of 'Assignment Multiplication'. 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 Multiplication'.
- See Also:
- Generated class or method.
-
caseAssignmentLeftShift
Returns the result of interpreting the object as an instance of 'Assignment Left Shift'. 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 Left Shift'.
- See Also:
- Generated class or method.
-
caseAssignmentOr
Returns the result of interpreting the object as an instance of 'Assignment 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 'Assignment Or'.
- See Also:
- Generated class or method.
-
caseAssignmentPlus
Returns the result of interpreting the object as an instance of 'Assignment Plus'. 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 Plus'.
- See Also:
- Generated class or method.
-
caseAssignmentRightShift
Returns the result of interpreting the object as an instance of 'Assignment Right Shift'. 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 Right Shift'.
- See Also:
- Generated class or method.
-
caseAssignmentUnsignedRightShift
Returns the result of interpreting the object as an instance of 'Assignment Unsigned Right Shift'. 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 Unsigned Right Shift'.
- See Also:
- Generated class or method.
-
caseEqual
Returns the result of interpreting the object as an instance of 'Equal'. 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 'Equal'.
- See Also:
- Generated class or method.
-
caseNotEqual
Returns the result of interpreting the object as an instance of 'Not Equal'. 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 Equal'.
- See Also:
- Generated class or method.
-
caseGreaterThan
Returns the result of interpreting the object as an instance of 'Greater Than'. 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'.
- See Also:
- Generated class or method.
-
caseGreaterThanOrEqual
Returns the result of interpreting the object as an instance of 'Greater Than Or Equal'. 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 Or Equal'.
- See Also:
- Generated class or method.
-
caseLessThan
Returns the result of interpreting the object as an instance of 'Less Than'. 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'.
- See Also:
- Generated class or method.
-
caseLessThanOrEqual
Returns the result of interpreting the object as an instance of 'Less Than Or Equal'. 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 Or Equal'.
- See Also:
- Generated class or method.
-
caseAddition
Returns the result of interpreting the object as an instance of 'Addition'. 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 'Addition'.
- See Also:
- Generated class or method.
-
caseSubtraction
Returns the result of interpreting the object as an instance of 'Subtraction'. 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 'Subtraction'.
- See Also:
- Generated class or method.
-
caseDivision
Returns the result of interpreting the object as an instance of 'Division'. 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 'Division'.
- See Also:
- Generated class or method.
-
caseMultiplication
Returns the result of interpreting the object as an instance of 'Multiplication'. 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 'Multiplication'.
- See Also:
- Generated class or method.
-
caseRemainder
Returns the result of interpreting the object as an instance of 'Remainder'. 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 'Remainder'.
- See Also:
- Generated class or method.
-
caseComplement
Returns the result of interpreting the object as an instance of 'Complement'. 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'.
- See Also:
- Generated class or method.
-
caseMinusMinus
Returns the result of interpreting the object as an instance of 'Minus Minus'. 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 'Minus Minus'.
- See Also:
- Generated class or method.
-
caseNegate
Returns the result of interpreting the object as an instance of 'Negate'. 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 'Negate'.
- See Also:
- Generated class or method.
-
casePlusPlus
Returns the result of interpreting the object as an instance of 'Plus Plus'. 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 'Plus Plus'.
- See Also:
- Generated class or method.
-
caseLeftShift
Returns the result of interpreting the object as an instance of 'Left Shift'. 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 'Left Shift'.
- See Also:
- Generated class or method.
-
caseRightShift
Returns the result of interpreting the object as an instance of 'Right Shift'. 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 'Right Shift'.
- See Also:
- Generated class or method.
-
caseUnsignedRightShift
Returns the result of interpreting the object as an instance of 'Unsigned Right Shift'. 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 'Unsigned Right Shift'.
- See Also:
- Generated class or method.
-
caseCommentable
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:
- Generated class or method.
-
defaultCase
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 classSwitch<T>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
- Generated class or method.
-