Package org.eclipse.m2m.atl.emftvm
Interface BranchInstruction
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,Instruction,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
Enditerate,Goto,If,Ifn,Iterate
- All Known Implementing Classes:
BranchInstructionImpl,EnditerateImpl,GotoImpl,IfImpl,IfnImpl,IterateImpl
A representation of the model object 'Branch Instruction'.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of the 'Offset' attribute.Returns the value of the 'Target' reference.voidsetOffset(int value) Sets the value of the 'Offset' attribute.voidsetTarget(Instruction value) Sets the value of the 'Target' reference.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.m2m.atl.emftvm.Instruction
getLineNumber, getOpcode, getOwningBlock, getStackConsumption, getStackLevel, getStackProduction, setLineNumber, setOwningBlockMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getOffset
int getOffset()Returns the value of the 'Offset' attribute. The default value is"-1".Represents the instruction offset to jump to.
- Returns:
- the value of the 'Offset' attribute.
- See Also:
-
setOffset
void setOffset(int value) Sets the value of the 'Offset' attribute. Represents the instruction offset to jump to.- Parameters:
value- the new value of the 'Offset' attribute.- See Also:
-
getTarget
Instruction getTarget()Returns the value of the 'Target' reference.Represents the 'Target' instruction to jump over, i.e. the 'Offset' corresponds to the instruction following 'Target'.
- Returns:
- the value of the 'Target' reference.
- See Also:
-
setTarget
Sets the value of the 'Target' reference.Represents the 'Target' instruction to jump over, i.e. the 'Offset' corresponds to the instruction following 'Target'.
- Parameters:
value- the new value of the 'Target' reference.- See Also:
-