Class SaveInstructionParametersSwitch
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch<Instruction>
-
- org.eclipse.m2m.atl.emftvm.impl.resource.SaveInstructionParametersSwitch
-
public class SaveInstructionParametersSwitch extends EmftvmSwitch<Instruction>
SavesInstruction
parameters to aDataOutputStream
.
-
-
Field Summary
Fields Modifier and Type Field Description protected ConstantPool
constants
protected java.io.DataOutputStream
outputStream
-
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description SaveInstructionParametersSwitch(java.io.DataOutputStream outputStream, ConstantPool constants)
Creates a newSaveInstructionParametersSwitch
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instruction
caseBranchInstruction(BranchInstruction object)
Returns the result of interpreting the object as an instance of 'Branch Instruction'.Instruction
caseCodeBlockInstruction(CodeBlockInstruction object)
Returns the result of interpreting the object as an instance of 'Code Block Instruction'.Instruction
caseFieldInstruction(FieldInstruction object)
Returns the result of interpreting the object as an instance of 'Field Instruction'.Instruction
caseFindtype(Findtype object)
Returns the result of interpreting the object as an instance of 'Findtype'.Instruction
caseIfte(Ifte object)
Returns the result of interpreting the object as an instance of 'Ifte'.Instruction
caseInvokeInstruction(InvokeInstruction object)
Returns the result of interpreting the object as an instance of 'Invoke Instruction'.Instruction
caseInvokeOperationInstruction(InvokeOperationInstruction object)
Returns the result of interpreting the object as an instance of 'Invoke Operation Instruction'.Instruction
caseLocalVariableInstruction(LocalVariableInstruction object)
Returns the result of interpreting the object as an instance of 'Local Variable Instruction'.Instruction
caseMatch(Match object)
Returns the result of interpreting the object as an instance of 'Match'.Instruction
caseNew(New object)
Returns the result of interpreting the object as an instance of 'New'.Instruction
casePush(Push object)
Returns the result of interpreting the object as an instance of 'Push'.-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch
caseAdd, caseAllinst, caseAllinstIn, caseAnd, caseCodeBlock, caseDelete, caseDup, caseDupX1, caseEnditerate, caseExecEnv, caseFeature, caseField, caseFindtypeS, caseGet, caseGetcb, caseGetenv, caseGetenvtype, caseGetStatic, caseGetSuper, caseGetTrans, caseGoto, caseIf, caseIfn, caseImplies, caseInputRuleElement, caseInsert, caseInstruction, caseInvoke, caseInvokeAllCbs, caseInvokeCb, caseInvokeCbS, caseInvokeStatic, caseInvokeSuper, caseIsnull, caseIterate, caseLineNumber, caseLoad, caseLocalVariable, caseMatchS, caseMetamodel, caseModel, caseModelDeclaration, caseModule, caseNamedElement, caseNewS, caseNot, caseOperation, caseOr, caseOutputRuleElement, caseParameter, casePop, casePushf, casePusht, caseRemove, caseReturn, caseRule, caseRuleElement, caseSet, caseSetStatic, caseStore, caseSwap, caseSwapX1, caseTypedElement, caseXor, defaultCase, doSwitch, doSwitch, doSwitch
-
-
-
-
Field Detail
-
outputStream
protected final java.io.DataOutputStream outputStream
-
constants
protected final ConstantPool constants
-
-
Constructor Detail
-
SaveInstructionParametersSwitch
public SaveInstructionParametersSwitch(java.io.DataOutputStream outputStream, ConstantPool constants)
Creates a newSaveInstructionParametersSwitch
.- Parameters:
outputStream
- the output streamconstants
- the constant pool
-
-
Method Detail
-
caseBranchInstruction
public Instruction caseBranchInstruction(BranchInstruction object)
Returns the result of interpreting the object as an instance of 'Branch Instruction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseBranchInstruction
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Branch Instruction'.
- See Also:
doSwitch(EObject)
-
caseFieldInstruction
public Instruction caseFieldInstruction(FieldInstruction object)
Returns the result of interpreting the object as an instance of 'Field Instruction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseFieldInstruction
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Field Instruction'.
- See Also:
doSwitch(EObject)
-
caseFindtype
public Instruction caseFindtype(Findtype object)
Returns the result of interpreting the object as an instance of 'Findtype'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseFindtype
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Findtype'.
- See Also:
doSwitch(EObject)
-
caseInvokeInstruction
public Instruction caseInvokeInstruction(InvokeInstruction object)
Returns the result of interpreting the object as an instance of 'Invoke Instruction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseInvokeInstruction
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Invoke Instruction'.
- See Also:
doSwitch(EObject)
-
caseInvokeOperationInstruction
public Instruction caseInvokeOperationInstruction(InvokeOperationInstruction object)
Returns the result of interpreting the object as an instance of 'Invoke Operation Instruction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseInvokeOperationInstruction
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Invoke Operation Instruction'.
- See Also:
doSwitch(EObject)
-
caseLocalVariableInstruction
public Instruction caseLocalVariableInstruction(LocalVariableInstruction object)
Returns the result of interpreting the object as an instance of 'Local Variable Instruction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseLocalVariableInstruction
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Local Variable Instruction'.
- See Also:
doSwitch(EObject)
-
caseNew
public Instruction caseNew(New object)
Returns the result of interpreting the object as an instance of 'New'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseNew
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'New'.
- See Also:
doSwitch(EObject)
-
casePush
public Instruction casePush(Push object)
Returns the result of interpreting the object as an instance of 'Push'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
casePush
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Push'.
- See Also:
doSwitch(EObject)
-
caseMatch
public Instruction caseMatch(Match object)
Returns the result of interpreting the object as an instance of 'Match'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseMatch
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Match'.
- See Also:
doSwitch(EObject)
-
caseCodeBlockInstruction
public Instruction caseCodeBlockInstruction(CodeBlockInstruction object)
Returns the result of interpreting the object as an instance of 'Code Block Instruction'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseCodeBlockInstruction
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Code Block Instruction'.
- See Also:
doSwitch(EObject)
-
caseIfte
public Instruction caseIfte(Ifte object)
Returns the result of interpreting the object as an instance of 'Ifte'. This implementation returns null; returning a non-null result will terminate the switch.- Overrides:
caseIfte
in classEmftvmSwitch<Instruction>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ifte'.
- See Also:
doSwitch(EObject)
-
-