FileDocCategorySizeDatePackage
ClassFile.javaAPI DocAndroid 5.1 API3342Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.iface

ClassFile

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

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

Fields Summary
Constructors Summary
Methods Summary
public intgetAccessFlags()
Gets the field {@code access_flags}.

return
the value in question

public AttributeListgetAttributes()
Gets the field {@code attributes} (along with {@code attributes_count}).

return
{@code non-null;} the list of attributes

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

return
{@code non-null;} the constant pool

public FieldListgetFields()
Gets the field {@code fields} (along with {@code fields_count}).

return
{@code non-null;} the list of fields

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

return
{@code non-null;} the list of interfaces

public intgetMagic()
Gets the field {@code magic}.

return
the value in question

public intgetMajorVersion()
Gets the field {@code major_version}.

return
the value in question

public MethodListgetMethods()
Gets the field {@code methods} (along with {@code methods_count}).

return
{@code non-null;} the list of fields

public intgetMinorVersion()
Gets the field {@code minor_version}.

return
the value in question

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

return
{@code non-null;} the constant pool

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

return
{@code null-ok;} the value in question

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

return
{@code non-null;} the value in question