org.python.compiler
Class ClassFile
java.lang.Object
org.python.compiler.ClassFile
- public class ClassFile
- extends Object
name
public String name
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
PRIVATE
public static final int PRIVATE
- See Also:
- Constant Field Values
PROTECTED
public static final int PROTECTED
- See Also:
- Constant Field Values
STATIC
public static final int STATIC
- See Also:
- Constant Field Values
FINAL
public static final int FINAL
- See Also:
- Constant Field Values
SYNCHRONIZED
public static final int SYNCHRONIZED
- See Also:
- Constant Field Values
NATIVE
public static final int NATIVE
- See Also:
- Constant Field Values
ABSTRACT
public static final int ABSTRACT
- See Also:
- Constant Field Values
ClassFile
public ClassFile(String name)
ClassFile
public ClassFile(String name,
String superclass,
int access)
fixName
public static String fixName(String n)
addInterface
public void addInterface(String name)
throws IOException
- Throws:
IOException
addMethod
public Code addMethod(String name,
String type,
int access)
throws IOException
- Throws:
IOException
addField
public void addField(String name,
String type,
int access)
throws IOException
- Throws:
IOException
writeAttributes
public static void writeAttributes(DataOutputStream stream,
Attribute[] atts)
throws IOException
- Throws:
IOException
writeMethods
public void writeMethods(DataOutputStream stream,
Vector methods)
throws IOException
- Throws:
IOException
addAttribute
public void addAttribute(Attribute attr)
throws IOException
- Throws:
IOException
write
public void write(DataOutputStream stream)
throws IOException
- Throws:
IOException
write
public void write(OutputStream stream)
throws IOException
- Throws:
IOException