Class ExpressionsSwitch<T>
- java.lang.Object
- 
- org.eclipse.emf.ecore.util.Switch<T>
- 
- org.eclipse.emf.cdo.expressions.util.ExpressionsSwitch<T>
 
 
- 
 public class ExpressionsSwitch<T> extends org.eclipse.emf.ecore.util.Switch<T>The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)to invoke thecaseXXXmethod 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:
- ExpressionsPackage
- Generated
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static ExpressionsPackagemodelPackageThe cached model package
 - 
Constructor SummaryConstructors Constructor Description ExpressionsSwitch()Creates an instance of the switch.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TcaseAccess(Access object)Returns the result of interpreting the object as an instance of 'Access'.TcaseBooleanValue(BooleanValue object)Returns the result of interpreting the object as an instance of 'Boolean Value'.TcaseByteValue(ByteValue object)Returns the result of interpreting the object as an instance of 'Byte Value'.TcaseCharValue(CharValue object)Returns the result of interpreting the object as an instance of 'Char Value'.TcaseContainedObject(ContainedObject object)Returns the result of interpreting the object as an instance of 'Contained Object'.TcaseContextAccess(ContextAccess object)Returns the result of interpreting the object as an instance of 'Context Access'.TcaseDoubleValue(DoubleValue object)Returns the result of interpreting the object as an instance of 'Double Value'.TcaseExpression(Expression object)Returns the result of interpreting the object as an instance of 'Expression'.TcaseFloatValue(FloatValue object)Returns the result of interpreting the object as an instance of 'Float Value'.TcaseFunctionInvocation(FunctionInvocation object)Returns the result of interpreting the object as an instance of 'Function Invocation'.TcaseIntValue(IntValue object)Returns the result of interpreting the object as an instance of 'Int Value'.TcaseInvocation(Invocation object)Returns the result of interpreting the object as an instance of 'Invocation'.TcaseLinkedExpression(LinkedExpression object)Returns the result of interpreting the object as an instance of 'Linked Expression'.TcaseLinkedObject(LinkedObject object)Returns the result of interpreting the object as an instance of 'Linked Object'.TcaseListConstruction(ListConstruction object)Returns the result of interpreting the object as an instance of 'List Construction'.TcaseLongValue(LongValue object)Returns the result of interpreting the object as an instance of 'Long Value'.TcaseMemberAccess(MemberAccess object)Returns the result of interpreting the object as an instance of 'Member Access'.TcaseMemberInvocation(MemberInvocation object)Returns the result of interpreting the object as an instance of 'Member Invocation'.TcaseShortValue(ShortValue object)Returns the result of interpreting the object as an instance of 'Short Value'.TcaseStaticAccess(StaticAccess object)Returns the result of interpreting the object as an instance of 'Static Access'.TcaseStringValue(StringValue object)Returns the result of interpreting the object as an instance of 'String Value'.TcaseValue(Value object)Returns the result of interpreting the object as an instance of 'Value'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)Checks whether this is a switch for the given package.
 
- 
- 
- 
Field Detail- 
modelPackageprotected static ExpressionsPackage modelPackage The cached model package- Generated
 
 
- 
 - 
Method Detail- 
isSwitchForprotected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
- isSwitchForin class- org.eclipse.emf.ecore.util.Switch<T>
- Parameters:
- ePackage- the package in question.
- Returns:
- whether this is a switch for the given package.
- Generated
 
 - 
doSwitchprotected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
- doSwitchin class- org.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a caseXXXcall.
- Generated
 
 - 
caseExpressionpublic 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
 
 - 
caseValuepublic T caseValue(Value object) Returns the result of interpreting the object as an instance of '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 'Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseBooleanValuepublic T caseBooleanValue(BooleanValue object) Returns the result of interpreting the object as an instance of 'Boolean 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 'Boolean Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseByteValuepublic T caseByteValue(ByteValue object) Returns the result of interpreting the object as an instance of 'Byte 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 'Byte Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseShortValuepublic T caseShortValue(ShortValue object) Returns the result of interpreting the object as an instance of 'Short 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 'Short Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseIntValuepublic T caseIntValue(IntValue object) Returns the result of interpreting the object as an instance of 'Int 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 'Int Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseLongValuepublic T caseLongValue(LongValue object) Returns the result of interpreting the object as an instance of 'Long 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 'Long Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseFloatValuepublic T caseFloatValue(FloatValue object) Returns the result of interpreting the object as an instance of 'Float 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 'Float Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseDoubleValuepublic T caseDoubleValue(DoubleValue object) Returns the result of interpreting the object as an instance of 'Double 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 'Double Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseCharValuepublic T caseCharValue(CharValue object) Returns the result of interpreting the object as an instance of 'Char 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 'Char Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseStringValuepublic T caseStringValue(StringValue object) Returns the result of interpreting the object as an instance of 'String 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 'String Value'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseInvocationpublic T caseInvocation(Invocation object) Returns the result of interpreting the object as an instance of 'Invocation'. 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 'Invocation'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseFunctionInvocationpublic T caseFunctionInvocation(FunctionInvocation object) Returns the result of interpreting the object as an instance of 'Function Invocation'. 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 'Function Invocation'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseMemberInvocationpublic T caseMemberInvocation(MemberInvocation object) Returns the result of interpreting the object as an instance of 'Member Invocation'. 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 'Member Invocation'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseAccesspublic T caseAccess(Access object) Returns the result of interpreting the object as an instance of 'Access'. 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 'Access'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseStaticAccesspublic T caseStaticAccess(StaticAccess object) Returns the result of interpreting the object as an instance of 'Static Access'. 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 'Static Access'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseMemberAccesspublic T caseMemberAccess(MemberAccess object) Returns the result of interpreting the object as an instance of 'Member Access'. 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 'Member Access'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseContextAccesspublic T caseContextAccess(ContextAccess object) Returns the result of interpreting the object as an instance of 'Context Access'. 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 'Context Access'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseContainedObjectpublic T caseContainedObject(ContainedObject object) Returns the result of interpreting the object as an instance of 'Contained Object'. 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 'Contained Object'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseLinkedObjectpublic T caseLinkedObject(LinkedObject object) Returns the result of interpreting the object as an instance of 'Linked Object'. 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 'Linked Object'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseLinkedExpressionpublic T caseLinkedExpression(LinkedExpression object) Returns the result of interpreting the object as an instance of 'Linked 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 'Linked Expression'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
caseListConstructionpublic T caseListConstruction(ListConstruction object) Returns the result of interpreting the object as an instance of 'List Construction'. 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 'List Construction'.
- See Also:
- doSwitch(EObject)
- Generated
 
 - 
defaultCasepublic T defaultCase(org.eclipse.emf.ecore.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:
- defaultCasein class- org.eclipse.emf.ecore.util.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
 
 
- 
 
-