org.python.compiler
Class ConstantPool
java.lang.Object
org.python.compiler.ConstantPool
- public class ConstantPool
- extends Object
ConstantPool
public ConstantPool()
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