Class SwitchInformation
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.SwitchInformation
Details on a switch-case native construction. For each possible cases, it provides the handler
address and the jump table entry address and size (if any).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDetails of a switch's jump table.static classDetails on a 'case' of a switch-like statement: the address of the handler code and the corresponding jump table entry (if any, seeSwitchInformation.SwitchCaseInformation.isJumpTableBased()) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a switch case.voidaddJumpTable(SwitchInformation.JumpTableInformation jumpTableInfo) Add jump table information for this switch.getCases()Get the switch cases.Get jump tables associated with this switch.booleanisEmpty()Determine whether this switch has no cases.
-
Constructor Details
-
SwitchInformation
public SwitchInformation()
-
-
Method Details
-
addJumpTable
Add jump table information for this switch.- Parameters:
jumpTableInfo- jump table information
-
getJumpTables
Get jump tables associated with this switch.- Returns:
- jump table information list
-
getCases
Get the switch cases.- Returns:
- switch case information list
-
addCase
Add a switch case.- Parameters:
newCase- switch case information
-
isEmpty
public boolean isEmpty()Determine whether this switch has no cases.- Returns:
- true if no cases are recorded
-