Class ReferencesSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.emftext.language.java.references.util.ReferencesSwitch<T>
- Direct Known Subclasses:
ReferencesPrinterSwitch
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 TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Additive Expression Child'.Returns the result of interpreting the object as an instance of 'And Expression Child'.caseAnnotable
(Annotable object) Returns the result of interpreting the object as an instance of 'Annotable'.caseAnnotationValue
(AnnotationValue object) Returns the result of interpreting the object as an instance of 'Annotation Value'.caseArgumentable
(Argumentable object) Returns the result of interpreting the object as an instance of 'Argumentable'.Returns the result of interpreting the object as an instance of 'Array Initialization Value'.caseArrayTypeable
(ArrayTypeable object) Returns the result of interpreting the object as an instance of 'Array Typeable'.Returns the result of interpreting the object as an instance of 'Assignment Expression Child'.Returns the result of interpreting the object as an instance of 'Call Type Argumentable'.caseCommentable
(Commentable object) Returns the result of interpreting the object as an instance of 'Commentable'.Returns the result of interpreting the object as an instance of 'Conditional And Expression Child'.Returns the result of interpreting the object as an instance of 'Conditional Expression Child'.Returns the result of interpreting the object as an instance of 'Conditional Or Expression Child'.caseElementReference
(ElementReference object) Returns the result of interpreting the object as an instance of 'Element Reference'.Returns the result of interpreting the object as an instance of 'Equality Expression Child'.Returns the result of interpreting the object as an instance of 'Exclusive Or Expression Child'.caseExpression
(Expression object) Returns the result of interpreting the object as an instance of 'Expression'.Returns the result of interpreting the object as an instance of 'Identifier Reference'.Returns the result of interpreting the object as an instance of 'Inclusive Or Expression Child'.Returns the result of interpreting the object as an instance of 'Instance Of Expression Child'.caseLambdaBody
(LambdaBody object) Returns the result of interpreting the object as an instance of 'Lambda Body'.caseMethodCall
(MethodCall object) Returns the result of interpreting the object as an instance of 'Method Call'.Returns the result of interpreting the object as an instance of 'Method Reference Expression Child'.Returns the result of interpreting the object as an instance of 'Multiplicative Expression Child'.caseNamedElement
(NamedElement object) Returns the result of interpreting the object as an instance of 'Named Element'.Returns the result of interpreting the object as an instance of 'Namespace Aware Element'.casePackageReference
(PackageReference object) Returns the result of interpreting the object as an instance of 'Package Reference'.Returns the result of interpreting the object as an instance of 'Primary Expression'.Returns the result of interpreting the object as an instance of 'Primitive Type Reference'.caseReference
(Reference object) Returns the result of interpreting the object as an instance of 'Reference'.Returns the result of interpreting the object as an instance of 'Referenceable Element'.Returns the result of interpreting the object as an instance of 'Reflective Class Reference'.Returns the result of interpreting the object as an instance of 'Relation Expression Child'.caseResource
(Resource object) Returns the result of interpreting the object as an instance of 'Resource'.caseSelfReference
(SelfReference object) Returns the result of interpreting the object as an instance of 'Self Reference'.Returns the result of interpreting the object as an instance of 'Shift Expression Child'.caseStringReference
(StringReference object) Returns the result of interpreting the object as an instance of 'String Reference'.Returns the result of interpreting the object as an instance of 'Text Block Reference'.caseTypeArgumentable
(TypeArgumentable object) Returns the result of interpreting the object as an instance of 'Type Argumentable'.Returns the result of interpreting the object as an instance of 'Typed Element Extension'.Returns the result of interpreting the object as an instance of 'Unary Expression Child'.Returns the result of interpreting the object as an instance of 'Unary Modification Expression Child'.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
-
ReferencesSwitch
public ReferencesSwitch()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. -
caseReference
Returns the result of interpreting the object as an instance of '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 'Reference'.
- See Also:
- Generated class or method.
-
caseArgumentable
Returns the result of interpreting the object as an instance of 'Argumentable'. 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 'Argumentable'.
- See Also:
- Generated class or method.
-
caseReferenceableElement
Returns the result of interpreting the object as an instance of 'Referenceable 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 'Referenceable Element'.
- See Also:
- Generated class or method.
-
caseElementReference
Returns the result of interpreting the object as an instance of 'Element 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 'Element Reference'.
- See Also:
- Generated class or method.
-
caseIdentifierReference
Returns the result of interpreting the object as an instance of 'Identifier 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 'Identifier Reference'.
- See Also:
- Generated class or method.
-
caseMethodCall
Returns the result of interpreting the object as an instance of 'Method 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 'Method Call'.
- See Also:
- Generated class or method.
-
caseReflectiveClassReference
Returns the result of interpreting the object as an instance of 'Reflective Class 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 'Reflective Class Reference'.
- See Also:
- Generated class or method.
-
casePrimitiveTypeReference
Returns the result of interpreting the object as an instance of 'Primitive Type 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 'Primitive Type Reference'.
- See Also:
- Generated class or method.
-
caseStringReference
Returns the result of interpreting the object as an instance of 'String 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 'String Reference'.
- See Also:
- Generated class or method.
-
caseSelfReference
Returns the result of interpreting the object as an instance of 'Self 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 'Self Reference'.
- See Also:
- Generated class or method.
-
caseTextBlockReference
Returns the result of interpreting the object as an instance of 'Text Block 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 'Text Block Reference'.
- See Also:
- Generated class or method.
-
casePackageReference
Returns the result of interpreting the object as an instance of 'Package 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 'Package Reference'.
- 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.
-
caseArrayInitializationValue
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:
- Generated class or method.
-
caseLambdaBody
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:
- Generated class or method.
-
caseExpression
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:
- Generated class or method.
-
caseAnnotationValue
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:
- Generated class or method.
-
caseAssignmentExpressionChild
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:
- Generated class or method.
-
caseConditionalExpressionChild
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:
- Generated class or method.
-
caseConditionalOrExpressionChild
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:
- Generated class or method.
-
caseConditionalAndExpressionChild
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:
- Generated class or method.
-
caseInclusiveOrExpressionChild
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:
- Generated class or method.
-
caseExclusiveOrExpressionChild
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:
- Generated class or method.
-
caseAndExpressionChild
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:
- Generated class or method.
-
caseEqualityExpressionChild
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:
- Generated class or method.
-
caseInstanceOfExpressionChild
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:
- Generated class or method.
-
caseRelationExpressionChild
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:
- Generated class or method.
-
caseShiftExpressionChild
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:
- Generated class or method.
-
caseAdditiveExpressionChild
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:
- Generated class or method.
-
caseMultiplicativeExpressionChild
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:
- Generated class or method.
-
caseUnaryExpressionChild
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:
- Generated class or method.
-
caseUnaryModificationExpressionChild
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:
- Generated class or method.
-
caseMethodReferenceExpressionChild
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:
- Generated class or method.
-
casePrimaryExpression
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:
- Generated class or method.
-
caseTypeArgumentable
Returns the result of interpreting the object as an instance of 'Type Argumentable'. 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 'Type Argumentable'.
- See Also:
- Generated class or method.
-
caseTypedElementExtension
Returns the result of interpreting the object as an instance of 'Typed Element Extension'. 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 'Typed Element Extension'.
- See Also:
- Generated class or method.
-
caseNamedElement
Returns the result of interpreting the object as an instance of 'Named 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 'Named Element'.
- See Also:
- Generated class or method.
-
caseResource
Returns the result of interpreting the object as an instance of 'Resource'. 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 'Resource'.
- See Also:
- Generated class or method.
-
caseAnnotable
Returns the result of interpreting the object as an instance of 'Annotable'. 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 'Annotable'.
- See Also:
- Generated class or method.
-
caseArrayTypeable
Returns the result of interpreting the object as an instance of 'Array Typeable'. 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 Typeable'.
- See Also:
- Generated class or method.
-
caseCallTypeArgumentable
Returns the result of interpreting the object as an instance of 'Call Type Argumentable'. 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 'Call Type Argumentable'.
- See Also:
- Generated class or method.
-
caseNamespaceAwareElement
Returns the result of interpreting the object as an instance of 'Namespace Aware 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 'Namespace Aware Element'.
- 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.
-