Class CodePointer
java.lang.Object
com.pnfsoftware.jeb.core.units.code.Pointer
com.pnfsoftware.jeb.core.units.code.CodePointer
- All Implemented Interfaces:
ICodePointer
Standard implementation of a pointer to code.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCodePointer
(long address) Create an entry-point description using a default processor mode.CodePointer
(long address, int mode) Create an entry-point address description.CodePointer
(ICodePointer src) -
Method Summary
Modifier and TypeMethodDescriptionboolean
almostEquals
(Object obj) Equality that disregards theprocessor mode
.static CodePointer
createFrom
(long internalAddress, INativeCodeModel<?> model) static CodePointer
createFrom
(INativeMethodDataItem routineData) static CodePointer
createFrom
(INativeMethodItem routine) static CodePointer
static CodePointer
createFrom
(String entryPointAsString) static CodePointer
Create an Entry Point Description pointing to an unknown address.static CodePointer
createUnknown
(int mode) Create an Entry Point Description pointing to an unknown address.boolean
int
getMode()
Get the processor mode that should be used when parsing at the address.int
hashCode()
boolean
Indicate if the entry-point relates to an unknown addressvoid
setMode
(int mode) Set the processor mode.toString()
Methods inherited from class com.pnfsoftware.jeb.core.units.code.Pointer
getAddress, getSize, getType, setSize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.ICodePointer
getAddress
-
Constructor Details
-
CodePointer
public CodePointer(long address, int mode) Create an entry-point address description.- Parameters:
address
- address of the Entry point or -1 for unknown address.mode
- optional processor mode, can beIProcessor.MODE_DEFAULT
(0) if unknown/default
-
CodePointer
public CodePointer(long address) Create an entry-point description using a default processor mode.- Parameters:
address
-
-
CodePointer
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
almostEquals
Equality that disregards theprocessor mode
.- Parameters:
obj
-- Returns:
-
getMode
public int getMode()Get the processor mode that should be used when parsing at the address.- Specified by:
getMode
in interfaceICodePointer
- Returns:
-
setMode
public void setMode(int mode) Set the processor mode.- Parameters:
mode
-
-
isUnknownAddress
public boolean isUnknownAddress()Description copied from interface:ICodePointer
Indicate if the entry-point relates to an unknown address- Specified by:
isUnknownAddress
in interfaceICodePointer
- Returns:
- true if address is unknown, false otherwise
-
toString
Description copied from interface:ICodePointer
- Specified by:
toString
in interfaceICodePointer
- Overrides:
toString
in classPointer
-
createFrom
-
createFrom
-
createFrom
-
createFrom
-
createFrom
-
createUnknown
Create an Entry Point Description pointing to an unknown address. -
createUnknown
Create an Entry Point Description pointing to an unknown address.
-