public class

CodePointer

extends Pointer
implements ICodePointer
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.Pointer
     ↳ com.pnfsoftware.jeb.core.units.code.CodePointer

Class Overview

Standard implementation of a pointer to code.

Summary

[Expand]
Inherited Constants
From class com.pnfsoftware.jeb.core.units.code.Pointer
[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.core.units.code.Pointer
Public Constructors
CodePointer(long address, int mode)
Create an entry-point address description.
CodePointer(long address)
Create an entry-point description using a default processor mode.
CodePointer(ICodePointer src)
Public Methods
boolean almostEquals(Object obj)
Equality that disregards the processor mode.
static CodePointer createFrom(INativeMethodDataItem routineData)
static CodePointer createFrom(long internalAddress, INativeCodeModel<?> model)
static CodePointer createFrom(ILocatedInstruction insn)
static CodePointer createFrom(String entryPointAsString)
static CodePointer createFrom(INativeMethodItem routine)
static CodePointer createUnknown()
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 equals(Object obj)
int getMode()
Get the processor mode that should be used when parsing at the address.
int hashCode()
boolean isUnknownAddress()
Indicate if the entry-point relates to an unknown address
void setMode(int mode)
Set the processor mode.
String toString()
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.core.units.code.Pointer
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.units.code.ICodePointer

Public Constructors

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 be MODE_DEFAULT (0) if unknown/default

public CodePointer (long address)

Create an entry-point description using a default processor mode.

public CodePointer (ICodePointer src)

Public Methods

public boolean almostEquals (Object obj)

Equality that disregards the processor mode.

public static CodePointer createFrom (INativeMethodDataItem routineData)

public static CodePointer createFrom (long internalAddress, INativeCodeModel<?> model)

public static CodePointer createFrom (ILocatedInstruction insn)

public static CodePointer createFrom (String entryPointAsString)

public static CodePointer createFrom (INativeMethodItem routine)

public static CodePointer createUnknown ()

Create an Entry Point Description pointing to an unknown address.

public static CodePointer createUnknown (int mode)

Create an Entry Point Description pointing to an unknown address.

public boolean equals (Object obj)

public int getMode ()

Get the processor mode that should be used when parsing at the address.

Returns
  • processor mode

public int hashCode ()

public boolean isUnknownAddress ()

Indicate if the entry-point relates to an unknown address

Returns
  • true if address is unknown, false otherwise

public void setMode (int mode)

Set the processor mode.

public String toString ()