Class BranchTarget
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.BranchTarget
- All Implemented Interfaces:
IBranchTarget
- Direct Known Subclasses:
CallGraphVertex
Standard implementation of a branch target. A branch target is either an internal address or an
external routine.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty branch target for subclasses.BranchTarget(INativeMethodItem routine) Create a routine branch target.BranchTarget(CodePointer codeptr) Create an internal branch target. -
Method Summary
-
Constructor Details
-
BranchTarget
public BranchTarget()Create an empty branch target for subclasses. -
BranchTarget
Create an internal branch target.- Parameters:
codeptr- internal code pointer
-
BranchTarget
Create a routine branch target.- Parameters:
routine- target routine
-
-
Method Details
-
isInternal
public boolean isInternal()Description copied from interface:IBranchTargetDetermine whether this target is internal.- Specified by:
isInternalin interfaceIBranchTarget- Returns:
- true if the target is an internal address
-
getInternalAddress
Description copied from interface:IBranchTargetGet the internal address.- Specified by:
getInternalAddressin interfaceIBranchTarget- Returns:
- internal code pointer, or null if this target is external
-
getRoutine
Description copied from interface:IBranchTargetGet the target routine.- Specified by:
getRoutinein interfaceIBranchTarget- Returns:
- target routine, or null if this target is not a routine
-
hashCode
public int hashCode() -
equals
-
toString
-