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
-
public class LabelSwitch extends EmftvmSwitch<org.objectweb.asm.Label>
-
-
Field Summary
-
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.EmftvmSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description LabelSwitch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.LabelcaseBranchInstruction(BranchInstruction object)Returns the result of interpreting the object as an instance of 'Branch Instruction'.org.objectweb.asm.LabelgetFromSource(BranchInstruction instr)Returns theLabelwithinstras source, if any.org.objectweb.asm.LabelgetFromTarget(Instruction instr)Returns theLabelwithinstras target, if any.booleanhasWithSource(BranchInstruction instr)Returnstrueiff there is aLabelwithinstras source.booleanhasWithTarget(Instruction instr)Returnstrueiff there is aLabelwithinstras 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
-
-
-
-
Method Detail
-
caseBranchInstruction
public org.objectweb.asm.Label 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:
caseBranchInstructionin 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:
doSwitch(EObject)
-
hasWithTarget
public boolean hasWithTarget(Instruction instr)
Returnstrueiff there is aLabelwithinstras target.- Returns:
trueiff there is aLabelwithinstras target
-
getFromTarget
public org.objectweb.asm.Label getFromTarget(Instruction instr)
Returns theLabelwithinstras target, if any.- Returns:
- the
Labelwithinstras target, ornull
-
hasWithSource
public boolean hasWithSource(BranchInstruction instr)
Returnstrueiff there is aLabelwithinstras source.- Returns:
trueiff there is aLabelwithinstras source
-
getFromSource
public org.objectweb.asm.Label getFromSource(BranchInstruction instr)
Returns theLabelwithinstras source, if any.- Returns:
- the
Labelwithinstras source, ornull
-
-