Class Instruction
- java.lang.Object
 - 
- jetbrains.mps.lang.dataFlow.framework.instructions.Instruction
 
 
- 
- Direct Known Subclasses:
 EndInstruction,EndTryInstruction,FinallyInstruction,GeneratedInstruction,IfJumpInstruction,JumpInstruction,NopInstruction,ReadInstruction,RetInstruction,TryInstruction,WriteInstruction
public abstract class Instruction extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Program.TryFinallyInfomyBlockInfoprotected intmyIndexprotected Set<Instruction>myJumpsprotected ProgrammyProgramprotected StringmyRuleReferenceprotected ObjectmySourceprotected Map<Object,Object>myUserObjects 
- 
Constructor Summary
Constructors Constructor Description Instruction()Instruction(String ruleNodeReference) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddJump(Instruction instruction)voidbuildCaches()abstract StringcommandPresentation()Program.TryFinallyInfogetEnclosingBlock()intgetIndex()Set<Instruction>getJumps()ProgramgetProgram()StringgetRuleReference()ObjectgetSource()ObjectgetUserObject(Object key)booleanisAfter(Instruction i)booleanisBefore(Instruction i)booleanisStart()Set<Instruction>pred()List<ProgramState>pred(ProgramState s)voidputUserObject(Object key, Object value)voidremoveJump(Instruction instruction)voidsetIndex(int index)voidsetProgram(Program p)voidsetRuleReference(String ruleReference)voidsetSource(Object source)Set<Instruction>succ()List<ProgramState>succ(ProgramState s)StringtoString() 
 - 
 
- 
- 
Field Detail
- 
myProgram
protected Program myProgram
 
- 
mySource
protected Object mySource
 
- 
myRuleReference
protected String myRuleReference
 
- 
myJumps
protected final Set<Instruction> myJumps
 
- 
myBlockInfo
protected Program.TryFinallyInfo myBlockInfo
 
- 
myIndex
protected int myIndex
 
 - 
 
- 
Constructor Detail
- 
Instruction
public Instruction()
 
- 
Instruction
public Instruction(String ruleNodeReference)
 
 - 
 
- 
Method Detail
- 
getProgram
public Program getProgram()
 
- 
setProgram
public void setProgram(Program p)
 
- 
getSource
public Object getSource()
 
- 
setSource
public void setSource(Object source)
 
- 
isStart
public boolean isStart()
 
- 
addJump
public void addJump(Instruction instruction)
 
- 
removeJump
public void removeJump(Instruction instruction)
 
- 
getJumps
public Set<Instruction> getJumps()
 
- 
buildCaches
public void buildCaches()
 
- 
getEnclosingBlock
public Program.TryFinallyInfo getEnclosingBlock()
 
- 
succ
public Set<Instruction> succ()
 
- 
pred
public Set<Instruction> pred()
 
- 
succ
public List<ProgramState> succ(ProgramState s)
 
- 
pred
public List<ProgramState> pred(ProgramState s)
 
- 
getIndex
public int getIndex()
 
- 
setIndex
public void setIndex(int index)
 
- 
isBefore
public boolean isBefore(Instruction i)
 
- 
isAfter
public boolean isAfter(Instruction i)
 
- 
commandPresentation
public abstract String commandPresentation()
 
- 
getRuleReference
public String getRuleReference()
 
- 
setRuleReference
public void setRuleReference(String ruleReference)
 
 - 
 
 -