public class XbaseSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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.
XbasePackage
Modifier and Type | Field and Description |
---|---|
protected static XbasePackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
XbaseSwitch()
Creates an instance of the switch
|
Modifier and Type | Method and Description |
---|---|
T |
caseJvmIdentifiableElement(JvmIdentifiableElement object)
Returns the result of interpreting the object as an instance of 'Jvm Identifiable Element'
|
T |
caseXAbstractFeatureCall(XAbstractFeatureCall object)
Returns the result of interpreting the object as an instance of 'XAbstract Feature Call'
|
T |
caseXAbstractWhileExpression(XAbstractWhileExpression object)
Returns the result of interpreting the object as an instance of 'XAbstract While Expression'
|
T |
caseXAssignment(XAssignment object)
Returns the result of interpreting the object as an instance of 'XAssignment'
|
T |
caseXBasicForLoopExpression(XBasicForLoopExpression object)
Returns the result of interpreting the object as an instance of 'XBasic For Loop Expression'
|
T |
caseXBinaryOperation(XBinaryOperation object)
Returns the result of interpreting the object as an instance of 'XBinary Operation'
|
T |
caseXBlockExpression(XBlockExpression object)
Returns the result of interpreting the object as an instance of 'XBlock Expression'
|
T |
caseXBooleanLiteral(XBooleanLiteral object)
Returns the result of interpreting the object as an instance of 'XBoolean Literal'
|
T |
caseXCasePart(XCasePart object)
Returns the result of interpreting the object as an instance of 'XCase Part'
|
T |
caseXCastedExpression(XCastedExpression object)
Returns the result of interpreting the object as an instance of 'XCasted Expression'
|
T |
caseXCatchClause(XCatchClause object)
Returns the result of interpreting the object as an instance of 'XCatch Clause'
|
T |
caseXClosure(XClosure object)
Returns the result of interpreting the object as an instance of 'XClosure'
|
T |
caseXCollectionLiteral(XCollectionLiteral object)
Returns the result of interpreting the object as an instance of 'XCollection Literal'
|
T |
caseXConstructorCall(XConstructorCall object)
Returns the result of interpreting the object as an instance of 'XConstructor Call'
|
T |
caseXDoWhileExpression(XDoWhileExpression object)
Returns the result of interpreting the object as an instance of 'XDo While Expression'
|
T |
caseXExpression(XExpression object)
Returns the result of interpreting the object as an instance of 'XExpression'
|
T |
caseXFeatureCall(XFeatureCall object)
Returns the result of interpreting the object as an instance of 'XFeature Call'
|
T |
caseXForLoopExpression(XForLoopExpression object)
Returns the result of interpreting the object as an instance of 'XFor Loop Expression'
|
T |
caseXIfExpression(XIfExpression object)
Returns the result of interpreting the object as an instance of 'XIf Expression'
|
T |
caseXInstanceOfExpression(XInstanceOfExpression object)
Returns the result of interpreting the object as an instance of 'XInstance Of Expression'
|
T |
caseXListLiteral(XListLiteral object)
Returns the result of interpreting the object as an instance of 'XList Literal'
|
T |
caseXMemberFeatureCall(XMemberFeatureCall object)
Returns the result of interpreting the object as an instance of 'XMember Feature Call'
|
T |
caseXNullLiteral(XNullLiteral object)
Returns the result of interpreting the object as an instance of 'XNull Literal'
|
T |
caseXNumberLiteral(XNumberLiteral object)
Returns the result of interpreting the object as an instance of 'XNumber Literal'
|
T |
caseXPostfixOperation(XPostfixOperation object)
Returns the result of interpreting the object as an instance of 'XPostfix Operation'
|
T |
caseXReturnExpression(XReturnExpression object)
Returns the result of interpreting the object as an instance of 'XReturn Expression'
|
T |
caseXSetLiteral(XSetLiteral object)
Returns the result of interpreting the object as an instance of 'XSet Literal'
|
T |
caseXStringLiteral(XStringLiteral object)
Returns the result of interpreting the object as an instance of 'XString Literal'
|
T |
caseXSwitchExpression(XSwitchExpression object)
Returns the result of interpreting the object as an instance of 'XSwitch Expression'
|
T |
caseXSynchronizedExpression(XSynchronizedExpression object)
Returns the result of interpreting the object as an instance of 'XSynchronized Expression'
|
T |
caseXThrowExpression(XThrowExpression object)
Returns the result of interpreting the object as an instance of 'XThrow Expression'
|
T |
caseXTryCatchFinallyExpression(XTryCatchFinallyExpression object)
Returns the result of interpreting the object as an instance of 'XTry Catch Finally Expression'
|
T |
caseXTypeLiteral(XTypeLiteral object)
Returns the result of interpreting the object as an instance of 'XType Literal'
|
T |
caseXUnaryOperation(XUnaryOperation object)
Returns the result of interpreting the object as an instance of 'XUnary Operation'
|
T |
caseXVariableDeclaration(XVariableDeclaration object)
Returns the result of interpreting the object as an instance of 'XVariable Declaration'
|
T |
caseXWhileExpression(XWhileExpression object)
Returns the result of interpreting the object as an instance of 'XWhile Expression'
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
protected T |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static XbasePackage modelPackage
public XbaseSwitch()
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseXExpression(XExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXIfExpression(XIfExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSwitchExpression(XSwitchExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXCasePart(XCasePart object)
object
- the target of the switch.doSwitch(EObject)
public T caseXBlockExpression(XBlockExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXVariableDeclaration(XVariableDeclaration object)
object
- the target of the switch.doSwitch(EObject)
public T caseXAbstractFeatureCall(XAbstractFeatureCall object)
object
- the target of the switch.doSwitch(EObject)
public T caseXMemberFeatureCall(XMemberFeatureCall object)
object
- the target of the switch.doSwitch(EObject)
public T caseXFeatureCall(XFeatureCall object)
object
- the target of the switch.doSwitch(EObject)
public T caseXConstructorCall(XConstructorCall object)
object
- the target of the switch.doSwitch(EObject)
public T caseXBooleanLiteral(XBooleanLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXNullLiteral(XNullLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXNumberLiteral(XNumberLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXStringLiteral(XStringLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXCollectionLiteral(XCollectionLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXListLiteral(XListLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSetLiteral(XSetLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXClosure(XClosure object)
object
- the target of the switch.doSwitch(EObject)
public T caseXCastedExpression(XCastedExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXBinaryOperation(XBinaryOperation object)
object
- the target of the switch.doSwitch(EObject)
public T caseXUnaryOperation(XUnaryOperation object)
object
- the target of the switch.doSwitch(EObject)
public T caseXPostfixOperation(XPostfixOperation object)
object
- the target of the switch.doSwitch(EObject)
public T caseXForLoopExpression(XForLoopExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXBasicForLoopExpression(XBasicForLoopExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXAbstractWhileExpression(XAbstractWhileExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXDoWhileExpression(XDoWhileExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXWhileExpression(XWhileExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXTypeLiteral(XTypeLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseXInstanceOfExpression(XInstanceOfExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXThrowExpression(XThrowExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXTryCatchFinallyExpression(XTryCatchFinallyExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXCatchClause(XCatchClause object)
object
- the target of the switch.doSwitch(EObject)
public T caseXAssignment(XAssignment object)
object
- the target of the switch.doSwitch(EObject)
public T caseXReturnExpression(XReturnExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseXSynchronizedExpression(XSynchronizedExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseJvmIdentifiableElement(JvmIdentifiableElement object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)