de.cau.cs.kieler.krep.editors.klp.klp.util
Class KlpSwitch<T>

java.lang.Object
  extended by de.cau.cs.kieler.krep.editors.klp.klp.util.KlpSwitch<T>

public class KlpSwitch<T>
extends Object

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.

See Also:
KlpPackage
Rating red
Generated:
This code was automatically generated.

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

modelPackage

protected static KlpPackage modelPackage
The cached model package

Generated:
This code was automatically generated.
Constructor Detail

KlpSwitch

public KlpSwitch()
Creates an instance of the switch.

Generated:
This code was automatically generated.
Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.
Generated:
This code was automatically generated.

doSwitch

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.

Returns:
the first non-null result returned by a caseXXX call.
Generated:
This code was automatically generated.

doSwitch

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.

Returns:
the first non-null result returned by a caseXXX call.
Generated:
This code was automatically generated.

caseKLP

public T caseKLP(KLP object)
Returns the result of interpreting the object as an instance of 'KLP'. 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 'KLP'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseLine

public T caseLine(Line object)
Returns the result of interpreting the object as an instance of 'Line'. 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 'Line'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseInstruction

public T caseInstruction(Instruction object)
Returns the result of interpreting the object as an instance of 'Instruction'. 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 'Instruction'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseDecl

public T caseDecl(Decl object)
Returns the result of interpreting the object as an instance of 'Decl'. 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 'Decl'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseSetClk

public T caseSetClk(SetClk object)
Returns the result of interpreting the object as an instance of 'Set Clk'. 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 'Set Clk'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseSetPC

public T caseSetPC(SetPC object)
Returns the result of interpreting the object as an instance of 'Set PC'. 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 'Set PC'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

casePrio

public T casePrio(Prio object)
Returns the result of interpreting the object as an instance of 'Prio'. 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 'Prio'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseDone

public T caseDone(Done object)
Returns the result of interpreting the object as an instance of 'Done'. 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 'Done'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseBinop

public T caseBinop(Binop object)
Returns the result of interpreting the object as an instance of 'Binop'. 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 'Binop'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseJmp

public T caseJmp(Jmp object)
Returns the result of interpreting the object as an instance of 'Jmp'. 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 'Jmp'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseCJmp

public T caseCJmp(CJmp object)
Returns the result of interpreting the object as an instance of 'CJmp'. 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 'CJmp'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseMove

public T caseMove(Move object)
Returns the result of interpreting the object as an instance of 'Move'. 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 'Move'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseLabel

public T caseLabel(Label object)
Returns the result of interpreting the object as an instance of 'Label'. 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 'Label'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseReg

public T caseReg(Reg object)
Returns the result of interpreting the object as an instance of 'Reg'. 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 'Reg'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseRead

public T caseRead(Read object)
Returns the result of interpreting the object as an instance of 'Read'. 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 'Read'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

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.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)
Generated:
This code was automatically generated.