Package ghidra.program.model.pcode
Class BlockGoto
- java.lang.Object
-
- ghidra.program.model.pcode.PcodeBlock
-
- ghidra.program.model.pcode.BlockGraph
-
- ghidra.program.model.pcode.BlockGoto
-
public class BlockGoto extends BlockGraph
A "plain" goto block possible multiple incoming edges no outgoing edges 1 (implied) outgoing edge representing the unstructured goto
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ghidra.program.model.pcode.PcodeBlock
PcodeBlock.BlockEdge
-
-
Constructor Summary
Constructors Constructor Description BlockGoto()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PcodeBlock
getGotoTarget()
int
getGotoType()
void
restoreXmlBody(XmlPullParser parser, BlockMap resolver)
Restore the any additional information beyond header and edges from XMLvoid
saveXmlBody(java.io.Writer writer)
Serialize information about the block to XML, other than header and edge infovoid
setGotoTarget(PcodeBlock gt)
-
Methods inherited from class ghidra.program.model.pcode.BlockGraph
addBlock, addEdge, getBlock, getSize, restoreXml, setIndices, transferObjectRef
-
Methods inherited from class ghidra.program.model.pcode.PcodeBlock
addInEdge, calcDepth, getFalseOut, getFrontLeaf, getIn, getIndex, getInRevIndex, getInSize, getOut, getOutRevIndex, getOutSize, getParent, getStart, getStop, getTrueOut, getType, nameToType, restoreNextInEdge, restoreNextInEdge, restoreXml, restoreXmlEdges, restoreXmlHeader, saveXml, saveXmlEdges, saveXmlHeader, setIndex, toString, typeToName
-
-
-
-
Method Detail
-
getGotoTarget
public PcodeBlock getGotoTarget()
-
getGotoType
public int getGotoType()
-
setGotoTarget
public void setGotoTarget(PcodeBlock gt)
-
saveXmlBody
public void saveXmlBody(java.io.Writer writer) throws java.io.IOException
Description copied from class:PcodeBlock
Serialize information about the block to XML, other than header and edge info- Overrides:
saveXmlBody
in classBlockGraph
- Parameters:
writer
- is where to serialize to- Throws:
java.io.IOException
- if there is a problem with the stream
-
restoreXmlBody
public void restoreXmlBody(XmlPullParser parser, BlockMap resolver) throws PcodeXMLException
Description copied from class:PcodeBlock
Restore the any additional information beyond header and edges from XML- Overrides:
restoreXmlBody
in classBlockGraph
- Parameters:
parser
- is the XML parserresolver
- is for looking up edge references- Throws:
PcodeXMLException
- for invalid XML descriptions
-
-