Interface Instruction
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
Add
,Allinst
,AllinstIn
,And
,BranchInstruction
,CodeBlockInstruction
,Delete
,Dup
,DupX1
,Enditerate
,FieldInstruction
,Findtype
,FindtypeS
,Get
,Getcb
,Getenv
,Getenvtype
,GetStatic
,GetSuper
,GetTrans
,Goto
,If
,Ifn
,Ifte
,Implies
,Insert
,Invoke
,InvokeAllCbs
,InvokeCb
,InvokeCbS
,InvokeInstruction
,InvokeOperationInstruction
,InvokeStatic
,InvokeSuper
,Isnull
,Iterate
,Load
,LocalVariableInstruction
,Match
,MatchS
,New
,NewS
,Not
,Or
,Pop
,Push
,Pushf
,Pusht
,Remove
,Return
,Set
,SetStatic
,Store
,Swap
,SwapX1
,Xor
- All Known Implementing Classes:
AddImpl
,AllinstImpl
,AllinstInImpl
,AndImpl
,BranchInstructionImpl
,CodeBlockInstructionImpl
,DeleteImpl
,DupImpl
,DupX1Impl
,EnditerateImpl
,FieldInstructionImpl
,FindtypeImpl
,FindtypeSImpl
,GetcbImpl
,GetenvImpl
,GetenvtypeImpl
,GetImpl
,GetStaticImpl
,GetSuperImpl
,GetTransImpl
,GotoImpl
,IfImpl
,IfnImpl
,IfteImpl
,ImpliesImpl
,InsertImpl
,InstructionImpl
,InvokeAllCbsImpl
,InvokeCbImpl
,InvokeCbSImpl
,InvokeImpl
,InvokeInstructionImpl
,InvokeOperationInstructionImpl
,InvokeStaticImpl
,InvokeSuperImpl
,IsnullImpl
,IterateImpl
,LoadImpl
,LocalVariableInstructionImpl
,MatchImpl
,MatchSImpl
,NewImpl
,NewSImpl
,NotImpl
,OrImpl
,PopImpl
,PushfImpl
,PushImpl
,PushtImpl
,RemoveImpl
,ReturnImpl
,SetImpl
,SetStaticImpl
,StoreImpl
,SwapImpl
,SwapX1Impl
,XorImpl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Line Number' reference.Returns the value of the 'Opcode' attribute.Returns the value of the 'Owning Block' container reference.int
Returns the value of the 'Stack Consumption' attribute.int
Returns the value of the 'Stack Level' attribute.int
Returns the value of the 'Stack Production' attribute.void
setLineNumber
(LineNumber value) Sets the value of the 'Line Number
' reference.void
setOwningBlock
(CodeBlock value) Sets the value of the 'Owning Block
' container reference.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getOwningBlock
CodeBlock getOwningBlock()Returns the value of the 'Owning Block' container reference. It is bidirectional and its opposite is 'Code
'.If the meaning of the 'Owning Block' container reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Owning Block' container reference.
- See Also:
-
setOwningBlock
Sets the value of the 'Owning Block
' container reference.- Parameters:
value
- the new value of the 'Owning Block' container reference.- See Also:
-
getOpcode
Opcode getOpcode()Returns the value of the 'Opcode' attribute. The default value is"PUSH"
. The literals are from the enumerationOpcode
.If the meaning of the 'Opcode' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Opcode' attribute.
- See Also:
-
getStackProduction
int getStackProduction()Returns the value of the 'Stack Production' attribute. The default value is"0"
.If the meaning of the 'Stack Production' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Stack Production' attribute.
- See Also:
-
getStackConsumption
int getStackConsumption()Returns the value of the 'Stack Consumption' attribute. The default value is"0"
.If the meaning of the 'Stack Consumption' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Stack Consumption' attribute.
- See Also:
-
getStackLevel
int getStackLevel()Returns the value of the 'Stack Level' attribute. The default value is"0"
.Calculates the amount of elements on the stack after executing this instruction, also taking into account the execution of previous instructions in the code block.
- Returns:
- the value of the 'Stack Level' attribute.
- See Also:
-
getLineNumber
LineNumber getLineNumber()Returns the value of the 'Line Number' reference. It is bidirectional and its opposite is 'Instructions
'.If the meaning of the 'Line Number' reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Line Number' reference.
- See Also:
-
setLineNumber
Sets the value of the 'Line Number
' reference.- Parameters:
value
- the new value of the 'Line Number' reference.- See Also:
-