Package ghidra.program.model.pcode
Class BlockCopy
- java.lang.Object
-
- ghidra.program.model.pcode.PcodeBlock
-
- ghidra.program.model.pcode.BlockCopy
-
public class BlockCopy extends PcodeBlock
Placeholder for a basic block (BlockBasic) within a structured control-flow graph. It originally mirrors the in and out edges of the basic block, but edges may be modified during the structuring process. This copy holds a reference to the actual basic block
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ghidra.program.model.pcode.PcodeBlock
PcodeBlock.BlockEdge
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAltIndex()
java.lang.Object
getRef()
Address
getStart()
Address
getStop()
void
restoreXmlHeader(XmlElement el)
void
saveXmlHeader(java.lang.StringBuilder buf)
protected void
set(java.lang.Object r, Address addr)
Used (by BlockGraph.transferObjectRef) to reset the internal Object and Address-
Methods inherited from class ghidra.program.model.pcode.PcodeBlock
addInEdge, calcDepth, getFalseOut, getFrontLeaf, getIn, getIndex, getInRevIndex, getInSize, getOut, getOutRevIndex, getOutSize, getParent, getTrueOut, getType, nameToType, restoreNextInEdge, restoreNextInEdge, restoreXml, restoreXmlBody, restoreXmlEdges, saveXml, saveXmlBody, saveXmlEdges, setIndex, toString, typeToName
-
-
-
-
Constructor Detail
-
BlockCopy
public BlockCopy()
-
BlockCopy
public BlockCopy(java.lang.Object r, Address addr)
-
-
Method Detail
-
getStart
public Address getStart()
- Overrides:
getStart
in classPcodeBlock
- Returns:
- the first Address covered by this block
-
getStop
public Address getStop()
- Overrides:
getStop
in classPcodeBlock
- Returns:
- the last Address covered by this block
-
getRef
public java.lang.Object getRef()
- Returns:
- the underlying basic block Object
-
set
protected void set(java.lang.Object r, Address addr)
Used (by BlockGraph.transferObjectRef) to reset the internal Object and Address- Parameters:
r
- is the internal Objectaddr
- is the Address
-
getAltIndex
public int getAltIndex()
- Returns:
- the alternative index, used as an id for the original basic block Object
-
saveXmlHeader
public void saveXmlHeader(java.lang.StringBuilder buf)
- Overrides:
saveXmlHeader
in classPcodeBlock
-
restoreXmlHeader
public void restoreXmlHeader(XmlElement el) throws PcodeXMLException
- Overrides:
restoreXmlHeader
in classPcodeBlock
- Throws:
PcodeXMLException
-
-