com.caucho.bytecode
Class ByteCodeParser

java.lang.Object
  extended by com.caucho.bytecode.ByteCodeParser

public class ByteCodeParser
extends java.lang.Object

Interface to the bytecode parser.


Constructor Summary
ByteCodeParser()
           
 
Method Summary
 ConstantPool getConstantPool()
          Returns the constant pool.
 java.lang.String getUTF8(int index)
          Returns a UTF8 String from the constant pool.
 JavaClass parse(java.io.InputStream is)
          Parses the .class file.
 void parseConstantPool()
          Parses the constant pool.
 void setClassLoader(JavaClassLoader loader)
          Sets the JClassLoader
 void setJavaClass(JavaClass javaClass)
          Sets the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCodeParser

public ByteCodeParser()
Method Detail

setClassLoader

public void setClassLoader(JavaClassLoader loader)
Sets the JClassLoader


setJavaClass

public void setJavaClass(JavaClass javaClass)
Sets the class.


parse

public JavaClass parse(java.io.InputStream is)
                throws java.io.IOException
Parses the .class file.

Throws:
java.io.IOException

getConstantPool

public ConstantPool getConstantPool()
Returns the constant pool.


getUTF8

public java.lang.String getUTF8(int index)
Returns a UTF8 String from the constant pool.


parseConstantPool

public void parseConstantPool()
                       throws java.io.IOException
Parses the constant pool.

Throws:
java.io.IOException