|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.krep.editors.klp.klp.util.KlpSwitch<T>
public class KlpSwitch<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.
KlpPackage
Field Summary | |
---|---|
protected static KlpPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
KlpSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseBinop(Binop object)
Returns the result of interpreting the object as an instance of 'Binop'. |
T |
caseCJmp(CJmp object)
Returns the result of interpreting the object as an instance of 'CJmp'. |
T |
caseDecl(Decl object)
Returns the result of interpreting the object as an instance of 'Decl'. |
T |
caseDone(Done object)
Returns the result of interpreting the object as an instance of 'Done'. |
T |
caseInstruction(Instruction object)
Returns the result of interpreting the object as an instance of 'Instruction'. |
T |
caseJmp(Jmp object)
Returns the result of interpreting the object as an instance of 'Jmp'. |
T |
caseKLP(KLP object)
Returns the result of interpreting the object as an instance of 'KLP'. |
T |
caseLabel(Label object)
Returns the result of interpreting the object as an instance of 'Label'. |
T |
caseLine(Line object)
Returns the result of interpreting the object as an instance of 'Line'. |
T |
caseMove(Move object)
Returns the result of interpreting the object as an instance of 'Move'. |
T |
casePrio(Prio object)
Returns the result of interpreting the object as an instance of 'Prio'. |
T |
caseRead(Read object)
Returns the result of interpreting the object as an instance of 'Read'. |
T |
caseReg(Reg object)
Returns the result of interpreting the object as an instance of 'Reg'. |
T |
caseSetClk(SetClk object)
Returns the result of interpreting the object as an instance of 'Set Clk'. |
T |
caseSetPC(SetPC object)
Returns the result of interpreting the object as an instance of 'Set PC'. |
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
T |
doSwitch(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,
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 KlpPackage modelPackage
Constructor Detail |
---|
public KlpSwitch()
Method Detail |
---|
public T doSwitch(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(EClass theEClass, 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, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseKLP(KLP object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLine(Line object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInstruction(Instruction object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDecl(Decl object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSetClk(SetClk object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSetPC(SetPC object)
object
- the target of the switch.
doSwitch(EObject)
public T casePrio(Prio object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDone(Done object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBinop(Binop object)
object
- the target of the switch.
doSwitch(EObject)
public T caseJmp(Jmp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCJmp(CJmp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseMove(Move object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLabel(Label object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReg(Reg object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRead(Read object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(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 |