Package ghidra.program.model.pcode
Class BlockIfGoto
- java.lang.Object
-
- ghidra.program.model.pcode.PcodeBlock
-
- ghidra.program.model.pcode.BlockGraph
-
- ghidra.program.model.pcode.BlockIfGoto
-
public class BlockIfGoto extends BlockGraph
Block representing an if () goto control flow possible multiple incoming edges 1 output edge if the condition is false 1 (implied) output edge representing the unstructured control flow if the condition is true 1 block evaluating the condition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ghidra.program.model.pcode.PcodeBlock
PcodeBlock.BlockEdge
-
-
Constructor Summary
Constructors Constructor Description BlockIfGoto()
-
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 bl)
-
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
-
setGotoTarget
public void setGotoTarget(PcodeBlock bl)
-
getGotoTarget
public PcodeBlock getGotoTarget()
-
getGotoType
public int getGotoType()
-
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
-
-