Class ArraysSwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.emftext.language.java.arrays.util.ArraysSwitch<T>
-
public class ArraysSwitch<T> extends Switch<T>
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
ArraysPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ArraysPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description ArraysSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAdditiveExpressionChild(AdditiveExpressionChild object)
Returns the result of interpreting the object as an instance of 'Additive Expression Child'.T
caseAndExpressionChild(AndExpressionChild object)
Returns the result of interpreting the object as an instance of 'And Expression Child'.T
caseAnnotable(Annotable object)
Returns the result of interpreting the object as an instance of 'Annotable'.T
caseAnnotationValue(AnnotationValue object)
Returns the result of interpreting the object as an instance of 'Annotation Value'.T
caseArrayDimension(ArrayDimension object)
Returns the result of interpreting the object as an instance of 'Array Dimension'.T
caseArrayInitializationValue(ArrayInitializationValue object)
Returns the result of interpreting the object as an instance of 'Array Initialization Value'.T
caseArrayInitializer(ArrayInitializer object)
Returns the result of interpreting the object as an instance of 'Array Initializer'.T
caseArrayInstantiation(ArrayInstantiation object)
Returns the result of interpreting the object as an instance of 'Array Instantiation'.T
caseArrayInstantiationBySize(ArrayInstantiationBySize object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Size'.T
caseArrayInstantiationByValues(ArrayInstantiationByValues object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Values'.T
caseArrayInstantiationByValuesTyped(ArrayInstantiationByValuesTyped object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Values Typed'.T
caseArrayInstantiationByValuesUntyped(ArrayInstantiationByValuesUntyped object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Values Untyped'.T
caseArraySelector(ArraySelector object)
Returns the result of interpreting the object as an instance of 'Array Selector'.T
caseArrayTypeable(ArrayTypeable object)
Returns the result of interpreting the object as an instance of 'Array Typeable'.T
caseAssignmentExpressionChild(AssignmentExpressionChild object)
Returns the result of interpreting the object as an instance of 'Assignment Expression Child'.T
caseCommentable(Commentable object)
Returns the result of interpreting the object as an instance of 'Commentable'.T
caseConditionalAndExpressionChild(ConditionalAndExpressionChild object)
Returns the result of interpreting the object as an instance of 'Conditional And Expression Child'.T
caseConditionalExpressionChild(ConditionalExpressionChild object)
Returns the result of interpreting the object as an instance of 'Conditional Expression Child'.T
caseConditionalOrExpressionChild(ConditionalOrExpressionChild object)
Returns the result of interpreting the object as an instance of 'Conditional Or Expression Child'.T
caseEqualityExpressionChild(EqualityExpressionChild object)
Returns the result of interpreting the object as an instance of 'Equality Expression Child'.T
caseExclusiveOrExpressionChild(ExclusiveOrExpressionChild object)
Returns the result of interpreting the object as an instance of 'Exclusive Or Expression Child'.T
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'.T
caseInclusiveOrExpressionChild(InclusiveOrExpressionChild object)
Returns the result of interpreting the object as an instance of 'Inclusive Or Expression Child'.T
caseInstanceOfExpressionChild(InstanceOfExpressionChild object)
Returns the result of interpreting the object as an instance of 'Instance Of Expression Child'.T
caseLambdaBody(LambdaBody object)
Returns the result of interpreting the object as an instance of 'Lambda Body'.T
caseMethodReferenceExpressionChild(MethodReferenceExpressionChild object)
Returns the result of interpreting the object as an instance of 'Method Reference Expression Child'.T
caseMultiplicativeExpressionChild(MultiplicativeExpressionChild object)
Returns the result of interpreting the object as an instance of 'Multiplicative Expression Child'.T
casePrimaryExpression(PrimaryExpression object)
Returns the result of interpreting the object as an instance of 'Primary Expression'.T
caseReference(Reference object)
Returns the result of interpreting the object as an instance of 'Reference'.T
caseRelationExpressionChild(RelationExpressionChild object)
Returns the result of interpreting the object as an instance of 'Relation Expression Child'.T
caseShiftExpressionChild(ShiftExpressionChild object)
Returns the result of interpreting the object as an instance of 'Shift Expression Child'.T
caseTypeArgumentable(TypeArgumentable object)
Returns the result of interpreting the object as an instance of 'Type Argumentable'.T
caseTypedElement(TypedElement object)
Returns the result of interpreting the object as an instance of 'Typed Element'.T
caseTypedElementExtension(TypedElementExtension object)
Returns the result of interpreting the object as an instance of 'Typed Element Extension'.T
caseUnaryExpressionChild(UnaryExpressionChild object)
Returns the result of interpreting the object as an instance of 'Unary Expression Child'.T
caseUnaryModificationExpressionChild(UnaryModificationExpressionChild object)
Returns the result of interpreting the object as an instance of 'Unary Modification Expression Child'.T
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch(int classifierID, EObject theEObject)
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 Detail
-
modelPackage
protected static ArraysPackage modelPackage
The cached model package- 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 classSwitch<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)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
caseArrayTypeable
public T caseArrayTypeable(ArrayTypeable object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseArrayDimension
public T caseArrayDimension(ArrayDimension object)
Returns the result of interpreting the object as an instance of 'Array Dimension'. 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 Dimension'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseArrayInitializer
public T caseArrayInitializer(ArrayInitializer object)
Returns the result of interpreting the object as an instance of 'Array Initializer'. 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 Initializer'.
- 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.
-
caseArrayInstantiation
public T caseArrayInstantiation(ArrayInstantiation object)
Returns the result of interpreting the object as an instance of 'Array Instantiation'. 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 Instantiation'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseArrayInstantiationBySize
public T caseArrayInstantiationBySize(ArrayInstantiationBySize object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Size'. 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 Instantiation By Size'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseArrayInstantiationByValues
public T caseArrayInstantiationByValues(ArrayInstantiationByValues object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Values'. 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 Instantiation By Values'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseArrayInstantiationByValuesUntyped
public T caseArrayInstantiationByValuesUntyped(ArrayInstantiationByValuesUntyped object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Values Untyped'. 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 Instantiation By Values Untyped'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseArrayInstantiationByValuesTyped
public T caseArrayInstantiationByValuesTyped(ArrayInstantiationByValuesTyped object)
Returns the result of interpreting the object as an instance of 'Array Instantiation By Values Typed'. 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 Instantiation By Values Typed'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseArraySelector
public T caseArraySelector(ArraySelector object)
Returns the result of interpreting the object as an instance of 'Array Selector'. 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 Selector'.
- 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.
-
caseAnnotable
public T caseAnnotable(Annotable object)
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:
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.
-
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.
-
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.
-
caseTypeArgumentable
public T caseTypeArgumentable(TypeArgumentable object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseTypedElementExtension
public T caseTypedElementExtension(TypedElementExtension object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseReference
public T caseReference(Reference object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseTypedElement
public T caseTypedElement(TypedElement object)
Returns the result of interpreting the object as an instance of 'Typed 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 'Typed 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 classSwitch<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.
-
-