Interface IDexPackage

All Superinterfaces:
ICodeItem, ICodePackage, IDexItem

public interface IDexPackage extends IDexItem, ICodePackage
This class represent Java packages of a Dex objects.
  • Method Details

    • getName

      String getName(boolean effective)
      Provide the package's top-level element name. Example: if the package is "com.xyz.foo", then "foo" is returned.
      Specified by:
      getName in interface ICodeItem
      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
    • setName

      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 J.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