Class SwitchInformation.JumpTableInformation
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.SwitchInformation.JumpTableInformation
- Enclosing class:
SwitchInformation
Details of a switch's jump table.
-
Constructor Summary
ConstructorsConstructorDescriptionJumpTableInformation(long startAddress, int entrySize) Create primary jump table information.JumpTableInformation(long startAddress, int entrySize, boolean isSecondary) Create jump table information. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the exclusive end address of the jump table.intGet the size of one jump table entry.longGet the jump table start address.booleanDetermine whether this is a secondary jump table.voidsetEndAddress(long endAddress) Set the exclusive end address of the jump table.
-
Constructor Details
-
JumpTableInformation
public JumpTableInformation(long startAddress, int entrySize, boolean isSecondary) Create jump table information.- Parameters:
startAddress- start address of the jump tableentrySize- size of a jump table entry, in bytesisSecondary- true for a secondary jump table
-
JumpTableInformation
public JumpTableInformation(long startAddress, int entrySize) Create primary jump table information.- Parameters:
startAddress- start address of the jump tableentrySize- size of a jump table entry, in bytes
-
-
Method Details
-
setEndAddress
public void setEndAddress(long endAddress) Set the exclusive end address of the jump table.- Parameters:
endAddress- exclusive end address
-
getStartAddress
public long getStartAddress()Get the jump table start address.- Returns:
- start address
-
getEntrySize
public int getEntrySize()Get the size of one jump table entry.- Returns:
- entry size in bytes
-
getEndAddress
public long getEndAddress()Get the exclusive end address of the jump table.- Returns:
- exclusive end address
-
isSecondary
public boolean isSecondary()Determine whether this is a secondary jump table.- Returns:
- true for a secondary jump table
-