public class ClassFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
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) |
Modifier and Type | Method and Description |
---|---|
void |
addClassAnnotation(ProxyCodeHelpers.AnnotationDescr annotationDescr) |
void |
addField(java.lang.String name,
java.lang.String type,
int access) |
void |
addField(java.lang.String name,
java.lang.String type,
int access,
ProxyCodeHelpers.AnnotationDescr[] annotationDescrs) |
void |
addFinalStringLiteral(java.lang.String name,
java.lang.String value) |
void |
addInterface(java.lang.String name) |
Code |
addMethod(java.lang.String name,
java.lang.String type,
int access) |
Code |
addMethod(java.lang.String name,
java.lang.String type,
int access,
java.lang.String[] exceptions) |
Code |
addMethod(java.lang.String name,
java.lang.String type,
int access,
java.lang.String[] exceptions,
ProxyCodeHelpers.AnnotationDescr[] methodAnnotationDescrs,
ProxyCodeHelpers.AnnotationDescr[][] parameterAnnotationDescrs) |
void |
endClassAnnotations() |
void |
endFields() |
void |
endMethods() |
static java.lang.String |
fixName(java.lang.String n) |
void |
setSource(java.lang.String name) |
static void |
visitAnnotation(org.objectweb.asm.AnnotationVisitor av,
java.lang.String fieldName,
java.lang.Object fieldValue) |
static void |
visitAnnotations(org.objectweb.asm.AnnotationVisitor av,
java.util.Map<java.lang.String,java.lang.Object> fields) |
void |
write(java.io.OutputStream stream) |
public ClassFile(java.lang.String name)
public ClassFile(java.lang.String name, java.lang.String superclass, int access)
public ClassFile(java.lang.String name, java.lang.String superclass, int access, long mtime)
public static java.lang.String fixName(java.lang.String n)
public static void visitAnnotations(org.objectweb.asm.AnnotationVisitor av, java.util.Map<java.lang.String,java.lang.Object> fields)
public static void visitAnnotation(org.objectweb.asm.AnnotationVisitor av, java.lang.String fieldName, java.lang.Object fieldValue)
public void setSource(java.lang.String name)
public void addInterface(java.lang.String name) throws java.io.IOException
java.io.IOException
public Code addMethod(java.lang.String name, java.lang.String type, int access) throws java.io.IOException
java.io.IOException
public Code addMethod(java.lang.String name, java.lang.String type, int access, java.lang.String[] exceptions) throws java.io.IOException
java.io.IOException
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
java.io.IOException
public void addFinalStringLiteral(java.lang.String name, java.lang.String value) throws java.io.IOException
java.io.IOException
public void addClassAnnotation(ProxyCodeHelpers.AnnotationDescr annotationDescr)
public void addField(java.lang.String name, java.lang.String type, int access) throws java.io.IOException
java.io.IOException
public void addField(java.lang.String name, java.lang.String type, int access, ProxyCodeHelpers.AnnotationDescr[] annotationDescrs) throws java.io.IOException
java.io.IOException
public void endFields() throws java.io.IOException
java.io.IOException
public void endMethods() throws java.io.IOException
java.io.IOException
public void endClassAnnotations()
public void write(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException