public interface

IDexClass

implements ICodeClass IDexItem
com.pnfsoftware.jeb.core.units.code.android.dex.IDexClass

Class Overview

This interface represents a DEX class_def_item object.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
Public Methods
abstract int getAccessFlags()
Get the access flags for the class.
abstract IDexAnnotationsDirectory getAnnotationsDirectory()
Get the annotations directory of the class.
abstract int getClassTypeIndex()
Get the type index for this class object.
abstract IDexClassData getData()
Get the class data.
abstract List<? extends IDexField> getFields()
Get the list of fields that are defined in this class (super fields are not returned).
abstract int[] getInterfaceTypeIndexes()
Get the type indexes of the interfaces implemented by this class.
abstract List<? extends IDexMethod> getMethods()
Get the list of methods that are defined in this class (super methods are not returned).
abstract int getSourceStringIndex()
Get the string index of the file name containing the original source for this class.
abstract List<? extends IDexValue> getStaticInitializers()
Get the static initializers of the class.
abstract int getSuperTypeIndex()
Get the type index for the superclass of this class.
abstract boolean setName(String name)
Rename this class or type.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.ICodeClass
From interface com.pnfsoftware.jeb.core.units.code.ICodeItem
From interface com.pnfsoftware.jeb.core.units.code.android.dex.IDexItem

Public Methods

public abstract int getAccessFlags ()

Get the access flags for the class.

Returns
  • a combination of access flags defined in IDexUnit

public abstract IDexAnnotationsDirectory getAnnotationsDirectory ()

Get the annotations directory of the class.

Returns
  • the annotations directory, null if none

public abstract int getClassTypeIndex ()

Get the type index for this class object.

Returns
  • the index

public abstract IDexClassData getData ()

Get the class data.

Returns
  • the class data reference, or null if there is no class data (eg, marker interface)

public abstract List<? extends IDexField> getFields ()

Get the list of fields that are defined in this class (super fields are not returned).

Returns
  • a non-null list of fields

public abstract int[] getInterfaceTypeIndexes ()

Get the type indexes of the interfaces implemented by this class.

Returns
  • the type indexes

public abstract List<? extends IDexMethod> getMethods ()

Get the list of methods that are defined in this class (super methods are not returned).

Returns
  • a non-null list of methods

public abstract int getSourceStringIndex ()

Get the string index of the file name containing the original source for this class.

Note: This is a debug/metadata field and should be used with caution.

Returns
  • the string index, -1 if it is not set

public abstract List<? extends IDexValue> getStaticInitializers ()

Get the static initializers of the class.

Returns
  • the list of initial values for static fields

public abstract int getSuperTypeIndex ()

Get the type index for the superclass of this class.

Returns
  • the superclass type index, or -1 if none (ie, java.lang.Object)

public abstract boolean setName (String name)

Rename this class or type. 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