com.vladium.jcd.parser
Class ClassDefParser.classParser

java.lang.Object
  extended by com.vladium.jcd.parser.ClassDefParser.classParser
Enclosing class:
ClassDefParser

private static final class ClassDefParser.classParser
extends java.lang.Object

All the parsing work is done by this class and its class_table method. The work that needs to be done is not complicated, but is rather monotonous -- see Chapter 4 of VM spec 1.0 for the class file format.


Field Summary
private static boolean DEBUG
           
private  UDataInputStream m_bytes
           
private  ClassDef m_table
           
private static java.lang.String s_line
           
 
Constructor Summary
ClassDefParser.classParser(UDataInputStream bytes)
           
 
Method Summary
(package private)  void access_flags()
           
(package private)  void attributes()
           
(package private)  ClassDef class_table()
           
(package private)  void constant_pool()
           
(package private)  void fields()
           
(package private)  void interfaces()
           
(package private)  void magic()
           
(package private)  void methods()
           
(package private)  void super_class()
           
(package private)  void this_class()
           
(package private)  void version()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_bytes

private final UDataInputStream m_bytes

m_table

private ClassDef m_table

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

s_line

private static final java.lang.String s_line
See Also:
Constant Field Values
Constructor Detail

ClassDefParser.classParser

ClassDefParser.classParser(UDataInputStream bytes)
Method Detail

class_table

ClassDef class_table()
               throws java.io.IOException
Throws:
java.io.IOException

magic

void magic()
     throws java.io.IOException
Throws:
java.io.IOException

version

void version()
       throws java.io.IOException
Throws:
java.io.IOException

constant_pool

void constant_pool()
             throws java.io.IOException
Throws:
java.io.IOException

access_flags

void access_flags()
            throws java.io.IOException
Throws:
java.io.IOException

this_class

void this_class()
          throws java.io.IOException
Throws:
java.io.IOException

super_class

void super_class()
           throws java.io.IOException
Throws:
java.io.IOException

interfaces

void interfaces()
          throws java.io.IOException
Throws:
java.io.IOException

fields

void fields()
      throws java.io.IOException
Throws:
java.io.IOException

methods

void methods()
       throws java.io.IOException
Throws:
java.io.IOException

attributes

void attributes()
          throws java.io.IOException
Throws:
java.io.IOException