public interface

INativeMethodItem

implements ICodeMethod INativeItem
com.pnfsoftware.jeb.core.units.code.asm.items.INativeMethodItem

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
Public Methods
abstract INativeType getClassType()
Get the type of the class holding this method.
abstract INativeMethodDataItem getData()
If the method is internal, retrieve the method's definition object.
abstract List<? extends IInstruction> getInstructions()
This method is deprecated. Use getData() and getCFG() instead.
abstract Boolean getNonReturning()
Retrieve a hint specifying whether or not the method returns to its caller.
abstract List<String> getParameterNames()
Retrieve a list of parameter names.
abstract List<? extends INativeType> getParameterTypes()
Get the method's parameters list.
abstract IPrototypeItem getPrototype()
Retrieve the method prototype, if one was set.
abstract INativeType getReturnType()
Get the method's return type.
abstract Long getRoutineAddress()
Convenience method to retrieve the physical address of the routine start, if a definition object is present.
abstract void setNonReturning(Boolean nonReturning)
Specify whether the method returns to its caller upon completion.
abstract void setPrototype(IPrototypeItem prototype)
Set or update a prototype.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
From interface com.pnfsoftware.jeb.core.units.code.ICodeMethod
From interface com.pnfsoftware.jeb.core.units.code.asm.items.INativeItem

Public Methods

public abstract INativeType getClassType ()

Get the type of the class holding this method. This method will return null if the method is class-less (example, a native sub-routine not contained in any class).

Returns
  • the class type, null if unknown

public abstract INativeMethodDataItem getData ()

If the method is internal, retrieve the method's definition object.

Returns
  • the method data object; null if the method is external

public abstract List<? extends IInstruction> getInstructions ()

This method is deprecated.
Use getData() and getCFG() instead.

Get the list of instructions of the method's body.

Returns
  • null if the method has no body; else, a list (possibly empty) of instructions

public abstract Boolean getNonReturning ()

Retrieve a hint specifying whether or not the method returns to its caller. Note that this information may be provided in prototype.

Returns
  • null if not present or not computed

public abstract List<String> getParameterNames ()

Retrieve a list of parameter names.

Returns
  • a list, possibly empty (or containing less entries than the actual parameter count); never null

public abstract List<? extends INativeType> getParameterTypes ()

Get the method's parameters list.

Returns
  • the parameter types, null if unknown

public abstract IPrototypeItem getPrototype ()

Retrieve the method prototype, if one was set.

Returns
  • the prototype or null (if unknown)

public abstract INativeType getReturnType ()

Get the method's return type.

Returns
  • the return type, null if unknown

public abstract Long getRoutineAddress ()

Convenience method to retrieve the physical address of the routine start, if a definition object is present.

Returns
  • an address or null if this reference does not link to a definition object

public abstract void setNonReturning (Boolean nonReturning)

Specify whether the method returns to its caller upon completion. Note that this information may be provided in prototype.

public abstract void setPrototype (IPrototypeItem prototype)

Set or update a prototype. Any wildcard prototype attached to the routine will be nullified.