Package ghidra.program.model.pcode
Class JumpTable
- java.lang.Object
-
- ghidra.program.model.pcode.JumpTable
-
public class JumpTable extends java.lang.Object
JumpTable found as part of the decompilation of a function
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JumpTable.BasicOverride
class
JumpTable.LoadTable
-
Constructor Summary
Constructors Constructor Description JumpTable(Address addr, java.util.ArrayList<Address> destlist, boolean override)
JumpTable(AddressSpace preferredSpace)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildXml(java.lang.StringBuilder buf)
Address[]
getCases()
java.lang.Integer[]
getLabelValues()
JumpTable.LoadTable[]
getLoadTables()
Address
getSwitchAddress()
boolean
isEmpty()
static JumpTable
readOverride(Namespace space, SymbolTable symtab)
void
restoreXml(XmlPullParser parser, AddressFactory addrFactory)
Create a JumpTable object by parsing the XML elementsvoid
writeOverride(Function func)
-
-
-
Constructor Detail
-
JumpTable
public JumpTable(AddressSpace preferredSpace)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
restoreXml
public void restoreXml(XmlPullParser parser, AddressFactory addrFactory) throws PcodeXMLException
Create a JumpTable object by parsing the XML elements- Parameters:
parser
- is the XML parseraddrFactory
- is used to look-up address spaces- Throws:
PcodeXMLException
- for improperly formed XML
-
buildXml
public void buildXml(java.lang.StringBuilder buf)
-
getSwitchAddress
public Address getSwitchAddress()
-
getCases
public Address[] getCases()
-
getLabelValues
public java.lang.Integer[] getLabelValues()
-
getLoadTables
public JumpTable.LoadTable[] getLoadTables()
-
writeOverride
public void writeOverride(Function func) throws InvalidInputException
- Throws:
InvalidInputException
-
readOverride
public static JumpTable readOverride(Namespace space, SymbolTable symtab)
-
-