com.jeffpalm.ajp.impl
Class ClassFileStruct

java.lang.Object
  extended by com.jeffpalm.ajp.impl.ClassFileStruct
All Implemented Interfaces:
ClassFlags, Dumpable

public class ClassFileStruct
extends java.lang.Object
implements Dumpable


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jeffpalm.decompiler.Dumpable
Dumpable.Helper
 
Field Summary
 u2 access_flags
           
 attribute_info[] attributes
           
 u2 attributes_count
           
 cp_info[] constant_pool
           
 u2 constant_pool_count
           
 field_info[] fields
           
 u2 fields_count
           
 u2[] interfaces
           
 u2 interfaces_count
           
 u4 magic
           
 u2 major_version
           
 method_info[] methods
           
 u2 methods_count
           
 u2 minor_version
           
 u2 super_class
           
 u2 this_class
           
 
Fields inherited from interface com.jeffpalm.decompiler.Dumpable
HELPER
 
Fields inherited from interface com.jeffpalm.ajp.impl.ClassFlags
ACC_ABSTRACT, ACC_FINAL, ACC_INTERFACE, ACC_PUBLIC, ACC_SUPER
 
Constructor Summary
ClassFileStruct()
           
 
Method Summary
static java.lang.String access_flags(u2 flags)
           
 attribute_info attribute(ClassFile cf, java.lang.String name)
           
 attribute_info attributes(int i)
           
 cp_info constant_pool(int i)
           
 void dumpTo(java.lang.StringBuffer sb, ClassFile cf)
           
 field_info fields(int i)
           
 u2 interfaces(int i)
           
 method_info methods(int i)
           
 java.lang.String toString(ClassFile cf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

magic

public u4 magic

minor_version

public u2 minor_version

major_version

public u2 major_version

constant_pool_count

public u2 constant_pool_count

constant_pool

public cp_info[] constant_pool

access_flags

public u2 access_flags

this_class

public u2 this_class

super_class

public u2 super_class

interfaces_count

public u2 interfaces_count

interfaces

public u2[] interfaces

fields_count

public u2 fields_count

fields

public field_info[] fields

methods_count

public u2 methods_count

methods

public method_info[] methods

attributes_count

public u2 attributes_count

attributes

public attribute_info[] attributes
Constructor Detail

ClassFileStruct

public ClassFileStruct()
Method Detail

constant_pool

public cp_info constant_pool(int i)
                      throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException

interfaces

public u2 interfaces(int i)
              throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException

fields

public field_info fields(int i)
                  throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException

methods

public method_info methods(int i)
                    throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException

attributes

public attribute_info attributes(int i)
                          throws java.lang.ArrayIndexOutOfBoundsException
Throws:
java.lang.ArrayIndexOutOfBoundsException

attribute

public attribute_info attribute(ClassFile cf,
                                java.lang.String name)

toString

public java.lang.String toString(ClassFile cf)

dumpTo

public final void dumpTo(java.lang.StringBuffer sb,
                         ClassFile cf)
Specified by:
dumpTo in interface Dumpable

access_flags

public static java.lang.String access_flags(u2 flags)