Package org.eclipse.m2m.atl.emftvm.jit
Class LabelSwitch
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch<org.objectweb.asm.Label>
org.eclipse.m2m.atl.emftvm.jit.LabelSwitch
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch
modelPackage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.Label
Returns the result of interpreting the object as an instance of 'Branch Instruction'.org.objectweb.asm.Label
getFromSource
(BranchInstruction instr) Returns theLabel
withinstr
as source, if any.org.objectweb.asm.Label
getFromTarget
(Instruction instr) Returns theLabel
withinstr
as target, if any.boolean
hasWithSource
(BranchInstruction instr) Returnstrue
iff there is aLabel
withinstr
as source.boolean
hasWithTarget
(Instruction instr) Returnstrue
iff there is aLabel
withinstr
as target.Methods inherited from class org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch
caseAdd, caseAllinst, caseAllinstIn, caseAnd, caseCodeBlock, caseCodeBlockInstruction, caseDelete, caseDup, caseDupX1, caseEnditerate, caseExecEnv, caseFeature, caseField, caseFieldInstruction, caseFindtype, caseFindtypeS, caseGet, caseGetcb, caseGetenv, caseGetenvtype, caseGetStatic, caseGetSuper, caseGetTrans, caseGoto, caseIf, caseIfn, caseIfte, caseImplies, caseInputRuleElement, caseInsert, caseInstruction, caseInvoke, caseInvokeAllCbs, caseInvokeCb, caseInvokeCbS, caseInvokeInstruction, caseInvokeOperationInstruction, caseInvokeStatic, caseInvokeSuper, caseIsnull, caseIterate, caseLineNumber, caseLoad, caseLocalVariable, caseLocalVariableInstruction, caseMatch, caseMatchS, caseMetamodel, caseModel, caseModelDeclaration, caseModule, caseNamedElement, caseNew, caseNewS, caseNot, caseOperation, caseOr, caseOutputRuleElement, caseParameter, casePop, casePush, casePushf, casePusht, caseRemove, caseReturn, caseRule, caseRuleElement, caseSet, caseSetStatic, caseStore, caseSwap, caseSwapX1, caseTypedElement, caseXor, defaultCase, doSwitch, doSwitch, doSwitch
-
Constructor Details
-
LabelSwitch
public LabelSwitch()
-
-
Method Details
-
caseBranchInstruction
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<org.objectweb.asm.Label>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Branch Instruction'.
- See Also:
-
hasWithTarget
Returnstrue
iff there is aLabel
withinstr
as target.- Returns:
true
iff there is aLabel
withinstr
as target
-
getFromTarget
Returns theLabel
withinstr
as target, if any.- Returns:
- the
Label
withinstr
as target, ornull
-
hasWithSource
Returnstrue
iff there is aLabel
withinstr
as source.- Returns:
true
iff there is aLabel
withinstr
as source
-
getFromSource
Returns theLabel
withinstr
as source, if any.- Returns:
- the
Label
withinstr
as source, ornull
-