org.ow2.asmdex.structureReader
Class ClassDefinitionItem

java.lang.Object
  extended by org.ow2.asmdex.structureReader.ClassDefinitionItem

public class ClassDefinitionItem
extends java.lang.Object

Simple class representing one class_def_item which data are read from a Dex file.

Author:
Julien Névo

Constructor Summary
ClassDefinitionItem(IDalvikValueReader reader, int classIndex, int classDefinitionOffset)
          Constructor of a ClassDefinitionItem.
 
Method Summary
 int getAccessFlags()
          Access flags coded as a bit field
 int getAnnotationsOffset()
          Offset of annotation definitions for the class
 int getClassDataOffset()
          Offset of class content
 int getClassIndex()
          Index of the class in the class pool
 int getInterfacesOffset()
          Position of interface definitions as an offset
 int getSourceFileIndex()
          Index of source file name in string pool
 int getStaticValuesOffset()
          Offset for declarations of static values.
 int getSuperclassIndex()
          Index of super class in the class pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDefinitionItem

public ClassDefinitionItem(IDalvikValueReader reader,
                           int classIndex,
                           int classDefinitionOffset)
Constructor of a ClassDefinitionItem.

Parameters:
reader - reader on the Dex file. Its position is saved.
classIndex - index of the class.
classDefinitionOffset - the offset of the class_def_item in bytes.
Method Detail

getClassIndex

public int getClassIndex()
Index of the class in the class pool

Returns:
index

getAccessFlags

public int getAccessFlags()
Access flags coded as a bit field

Returns:
access flags as in java/dalvik spec

getSuperclassIndex

public int getSuperclassIndex()
Index of super class in the class pool

Returns:
index

getInterfacesOffset

public int getInterfacesOffset()
Position of interface definitions as an offset

Returns:
absolute offset

getSourceFileIndex

public int getSourceFileIndex()
Index of source file name in string pool

Returns:
index

getAnnotationsOffset

public int getAnnotationsOffset()
Offset of annotation definitions for the class

Returns:
offset

getClassDataOffset

public int getClassDataOffset()
Offset of class content

Returns:
offset

getStaticValuesOffset

public int getStaticValuesOffset()
Offset for declarations of static values.

Returns:
offset