org.python.compiler
Class ConstantPool

java.lang.Object
  extended byorg.python.compiler.ConstantPool

public class ConstantPool
extends Object


Constructor Summary
ConstantPool()
           
 
Method Summary
 int addConstant(int slots)
           
 int Class(String s)
           
 int Double(double d)
           
 int Fieldref(String c, String name, String type)
           
 int Float(float f)
           
 int Integer(int i)
           
 int InterfaceMethodref(String c, String name, String type)
           
 int Long(long l)
           
static void main(String[] args)
           
 int Methodref(String c, String name, String type)
           
 int NameAndType(String name, String type)
           
static int sigSize(String sig, boolean includeReturn)
           
 int String(String s)
           
 int UTF8(String s)
           
 void write(DataOutputStream stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantPool

public ConstantPool()
Method Detail

write

public void write(DataOutputStream stream)
           throws IOException
Throws:
IOException

addConstant

public int addConstant(int slots)
                throws IOException
Throws:
IOException

UTF8

public int UTF8(String s)
         throws IOException
Throws:
IOException

Class

public int Class(String s)
          throws IOException
Throws:
IOException

Fieldref

public int Fieldref(String c,
                    String name,
                    String type)
             throws IOException
Throws:
IOException

sigSize

public static int sigSize(String sig,
                          boolean includeReturn)

Methodref

public int Methodref(String c,
                     String name,
                     String type)
              throws IOException
Throws:
IOException

InterfaceMethodref

public int InterfaceMethodref(String c,
                              String name,
                              String type)
                       throws IOException
Throws:
IOException

String

public int String(String s)
           throws IOException
Throws:
IOException

Integer

public int Integer(int i)
            throws IOException
Throws:
IOException

Float

public int Float(float f)
          throws IOException
Throws:
IOException

Long

public int Long(long l)
         throws IOException
Throws:
IOException

Double

public int Double(double d)
           throws IOException
Throws:
IOException

NameAndType

public int NameAndType(String name,
                       String type)
                throws IOException
Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception