org.python.compiler
Class ClassFile
- java.lang.Object
-
- org.python.compiler.ClassFile
-
public class ClassFile extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.Stringname
-
Constructor Summary
Constructors Constructor and Description ClassFile(java.lang.String name)ClassFile(java.lang.String name, java.lang.String superclass, int access)ClassFile(java.lang.String name, java.lang.String superclass, int access, long mtime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddClassAnnotation(ProxyCodeHelpers.AnnotationDescr annotationDescr)voidaddField(java.lang.String name, java.lang.String type, int access)voidaddField(java.lang.String name, java.lang.String type, int access, ProxyCodeHelpers.AnnotationDescr[] annotationDescrs)voidaddFinalStringLiteral(java.lang.String name, java.lang.String value)voidaddInterface(java.lang.String name)CodeaddMethod(java.lang.String name, java.lang.String type, int access)CodeaddMethod(java.lang.String name, java.lang.String type, int access, java.lang.String[] exceptions)CodeaddMethod(java.lang.String name, java.lang.String type, int access, java.lang.String[] exceptions, ProxyCodeHelpers.AnnotationDescr[] methodAnnotationDescrs, ProxyCodeHelpers.AnnotationDescr[][] parameterAnnotationDescrs)voidendClassAnnotations()voidendFields()voidendMethods()static java.lang.StringfixName(java.lang.String n)voidsetSource(java.lang.String name)static voidvisitAnnotation(org.objectweb.asm.AnnotationVisitor av, java.lang.String fieldName, java.lang.Object fieldValue)static voidvisitAnnotations(org.objectweb.asm.AnnotationVisitor av, java.util.Map<java.lang.String,java.lang.Object> fields)voidwrite(java.io.OutputStream stream)
-
-
-
Constructor Detail
-
ClassFile
public ClassFile(java.lang.String name)
-
ClassFile
public ClassFile(java.lang.String name, java.lang.String superclass, int access)
-
ClassFile
public ClassFile(java.lang.String name, java.lang.String superclass, int access, long mtime)
-
-
Method Detail
-
fixName
public static java.lang.String fixName(java.lang.String n)
-
visitAnnotations
public static void visitAnnotations(org.objectweb.asm.AnnotationVisitor av, java.util.Map<java.lang.String,java.lang.Object> fields)
-
visitAnnotation
public static void visitAnnotation(org.objectweb.asm.AnnotationVisitor av, java.lang.String fieldName, java.lang.Object fieldValue)
-
setSource
public void setSource(java.lang.String name)
-
addInterface
public void addInterface(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
addMethod
public Code addMethod(java.lang.String name, java.lang.String type, int access) throws java.io.IOException
- Throws:
java.io.IOException
-
addMethod
public Code addMethod(java.lang.String name, java.lang.String type, int access, java.lang.String[] exceptions) throws java.io.IOException
- Throws:
java.io.IOException
-
addMethod
public Code addMethod(java.lang.String name, java.lang.String type, int access, java.lang.String[] exceptions, ProxyCodeHelpers.AnnotationDescr[] methodAnnotationDescrs, ProxyCodeHelpers.AnnotationDescr[][] parameterAnnotationDescrs) throws java.io.IOException
- Throws:
java.io.IOException
-
addFinalStringLiteral
public void addFinalStringLiteral(java.lang.String name, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
addClassAnnotation
public void addClassAnnotation(ProxyCodeHelpers.AnnotationDescr annotationDescr)
-
addField
public void addField(java.lang.String name, java.lang.String type, int access) throws java.io.IOException- Throws:
java.io.IOException
-
addField
public void addField(java.lang.String name, java.lang.String type, int access, ProxyCodeHelpers.AnnotationDescr[] annotationDescrs) throws java.io.IOException- Throws:
java.io.IOException
-
endFields
public void endFields() throws java.io.IOException- Throws:
java.io.IOException
-
endMethods
public void endMethods() throws java.io.IOException- Throws:
java.io.IOException
-
endClassAnnotations
public void endClassAnnotations()
-
write
public void write(java.io.OutputStream stream) throws java.io.IOException- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG