FileDocCategorySizeDatePackage
ClassFile.javaAPI DocAndroid 1.5 API3337Wed May 06 22:41:02 BST 2009com.android.dx.cf.iface

ClassFile

public interface ClassFile
Interface for things which purport to be class files or reasonable facsimiles thereof.

Note: The fields referred to in this documentation are of the ClassFile structure defined in vmspec-2 sec4.1.

Fields Summary
Constructors Summary
Methods Summary
public intgetAccessFlags()
Gets the field access_flags.

return
the value in question

public AttributeListgetAttributes()
Gets the field attributes (along with attributes_count).

return
non-null; the list of attributes

public com.android.dx.rop.cst.ConstantPoolgetConstantPool()
Gets the field constant_pool (along with constant_pool_count).

return
non-null; the constant pool

public FieldListgetFields()
Gets the field fields (along with fields_count).

return
non-null; the list of fields

public com.android.dx.rop.type.TypeListgetInterfaces()
Gets the field interfaces (along with interfaces_count).

return
non-null; the list of interfaces

public intgetMagic()
Gets the field magic.

return
the value in question

public intgetMajorVersion()
Gets the field major_version.

return
the value in question

public MethodListgetMethods()
Gets the field methods (along with methods_count).

return
non-null; the list of fields

public intgetMinorVersion()
Gets the field minor_version.

return
the value in question

public com.android.dx.rop.cst.CstUtf8getSourceFile()
Gets the name out of the SourceFile attribute of this file, if any. This is a convenient shorthand for scrounging around the class's attributes.

return
non-null; the constant pool

public com.android.dx.rop.cst.CstTypegetSuperclass()
Gets the field super_class, interpreted as a type constant if non-zero.

return
null-ok; the value in question

public com.android.dx.rop.cst.CstTypegetThisClass()
Gets the field this_class, interpreted as a type constant.

return
non-null; the value in question