public interface

IDexPackage

implements ICodePackage IDexItem
com.pnfsoftware.jeb.core.units.code.android.dex.IDexPackage

Class Overview

This class represent Java packages of a Dex objects.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
Public Methods
abstract String getName(boolean effective)
Provide the package's top-level element name.
abstract boolean setName(String name)
Rename the top-level element of this package.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
From interface com.pnfsoftware.jeb.core.units.code.ICodePackage
From interface com.pnfsoftware.jeb.core.units.code.android.dex.IDexItem

Public Methods

public abstract String getName (boolean effective)

Provide the package's top-level element name. Example: if the package is "com.xyz.foo", then "foo" is returned.

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 boolean setName (String name)

Rename the top-level element of this package. 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 simple, top-level element package name
Returns
  • success indicator