public interface

IDexMethod

implements ICodeMethod IDexItem
com.pnfsoftware.jeb.core.units.code.android.dex.IDexMethod

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
Public Methods
abstract IDexType getClassType()
Get the type of the class holding this method.
abstract int getClassTypeIndex()
Get the containing class type index.
abstract IDexMethodData getData()
Get a reference to the method definition, if the method is internal.
abstract int getIndex()
Get the index of this item in the DEX file's method list.
abstract String getName(boolean effective)
Get the name for this method.
abstract int getNameIndex()
Get the method name index.
abstract int getPrototypeIndex()
Get the method prototype index.
abstract String getSignature(boolean effective)
Get the signature for this method.
abstract boolean setName(String name)
Rename this method.
[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.android.dex.IDexItem

Public Methods

public abstract IDexType 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 int getClassTypeIndex ()

Get the containing class type index.

Returns
  • the class type index

public abstract IDexMethodData getData ()

Get a reference to the method definition, if the method is internal.

Returns
  • the methods data, null for external methods

public abstract int getIndex ()

Get the index of this item in the DEX file's method list.

Returns
  • the method index

public abstract String getName (boolean effective)

Get the name for this method.

Parameters
effective true to get the actual name, false to return the original name (if the unit allows the modification of items)
Returns
  • the name

public abstract int getNameIndex ()

Get the method name index.

Returns
  • the name index

public abstract int getPrototypeIndex ()

Get the method prototype index.

Returns
  • the prototype index

public abstract String getSignature (boolean effective)

Get the signature for this method.

Parameters
effective true to get the actual signature, false to return the original signature (if the unit allows the modification of items)
Returns
  • the signature

public abstract boolean setName (String name)

Rename this method. The method overrides and/or definition are renamed consistently. This method does not notify changes on success: it is up to the user to issue a UnitChange notification.

This method is for convenience only: users can always use the associated unit's RENAME action (through the executeAction method) to rename an item generically.

Parameters
name the new name
Returns
  • success indicator