|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.xbase.util.XbaseSwitch<T>
public class XbaseSwitch<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.
XbasePackage
Field Summary | |
---|---|
protected static XbasePackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
XbaseSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
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 |
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 |
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 |
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 |
caseXReturnExpression(XReturnExpression object)
Returns the result of interpreting the object as an instance of 'XReturn Expression'. |
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 |
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(org.eclipse.emf.ecore.EClass theEClass,
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. |
T |
doSwitch(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 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static XbasePackage modelPackage
Constructor Detail |
---|
public XbaseSwitch()
Method Detail |
---|
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.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.
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 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 caseXForLoopExpression(XForLoopExpression 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 caseJvmIdentifiableElement(JvmIdentifiableElement object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |