| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final List | |
| private byte[] | |
| private final ClassFactory | |
| private final ClassLoader | |
| private final ConstPool | |
| private final Set | |
| private final List | |
| private final Set | |
| private final String | |
| private final AnnotationsAttribute | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | ClassFile(String name, int accessFlags, String superclass, ClassLoader classLoader, String... interfaces)
Deprecated
|
| public | ClassFile(String name, int accessFlags, String superclass, int version, ClassLoader classLoader, String... interfaces)
Deprecated
|
| public | ClassFile(String name, String superclass, ClassLoader classLoader, ClassFactory classFactory, String... interfaces)
|
| public | ClassFile(String name, int accessFlags, String superclass, ClassLoader classLoader, ClassFactory classFactory, String... interfaces)
|
| public | ClassFile(String name, int accessFlags, String superclass, int version, ClassLoader classLoader, ClassFactory classFactory, String... interfaces)
|
| Modifier and Type | Method and Description |
|---|---|
| public ClassMethod | addConstructor(Constructor<?> method)
Adds a constructor with the same signiture as the given constrcutor, including exception types Todo annotations and signiture attribute |
| public ClassField | |
| public ClassField | |
| public ClassField | |
| public ClassField | |
| public ClassField | |
| public void | |
| public ClassMethod | |
| public ClassMethod | |
| public Class | |
| public Class | |
| public Class | |
| public Class | define(ClassLoader loader, ProtectionDomain domain)
Deprecated
Definines the class using the given ClassLoader and ProtectionDomain
|
| private Class | |
| public ClassLoader | |
| public ConstPool | |
| public String | |
| public Set | |
| public List | |
| public Set | |
| public String | |
| public AnnotationsAttribute | |
| public String | |
| public byte[] | |
| public void |
| accessFlags | back to summary |
|---|---|
| private final int accessFlags | |
| attributes | back to summary |
|---|---|
| private final List<Attribute> attributes | |
| bytecode | back to summary |
|---|---|
| private byte[] bytecode | |
| classFactory | back to summary |
|---|---|
| private final ClassFactory classFactory | |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| constPool | back to summary |
|---|---|
| private final ConstPool constPool | |
| fields | back to summary |
|---|---|
| private final Set<ClassField> fields | |
| interfaces | back to summary |
|---|---|
| private final List<String> interfaces | |
| methods | back to summary |
|---|---|
| private final Set<ClassMethod> methods | |
| name | back to summary |
|---|---|
| private final String name | |
| runtimeVisibleAnnotationsAttribute | back to summary |
|---|---|
| private final AnnotationsAttribute runtimeVisibleAnnotationsAttribute | |
| superclass | back to summary |
|---|---|
| private final String superclass | |
| version | back to summary |
|---|---|
| private final int version | |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, String superclass, String... interfaces)
Deprecated
| |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, int accessFlags, String superclass, String... interfaces)
Deprecated
| |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, String superclass, ClassLoader classLoader, String... interfaces)
Deprecated
| |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, int accessFlags, String superclass, ClassLoader classLoader, String... interfaces)
Deprecated
| |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, int accessFlags, String superclass, int version, ClassLoader classLoader, String... interfaces)
Deprecated
| |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, String superclass, ClassLoader classLoader, ClassFactory classFactory, String... interfaces) | |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, int accessFlags, String superclass, ClassLoader classLoader, ClassFactory classFactory, String... interfaces) | |
| ClassFile | back to summary |
|---|---|
| public ClassFile(String name, int accessFlags, String superclass, int version, ClassLoader classLoader, ClassFactory classFactory, String... interfaces) | |
| addConstructor | back to summary |
|---|---|
| public ClassMethod addConstructor(Constructor<?> method) Adds a constructor with the same signiture as the given constrcutor, including exception types Todo annotations and signiture attribute | |
| addField | back to summary |
|---|---|
| public ClassField addField(int accessFlags, String name, String descriptor) Adds a field with the given name and descriptor. | |
| addField | back to summary |
|---|---|
| public ClassField addField(int accessFlags, String name, String descriptor, String signature) | |
| addField | back to summary |
|---|---|
| public ClassField addField(int accessFlags, String name, Class<?> type) | |
| addField | back to summary |
|---|---|
| public ClassField addField(int accessFlags, String name, Class<?> type, String genericSignature) | |
| addField | back to summary |
|---|---|
| public ClassField addField(Field field) | |
| addInterface | back to summary |
|---|---|
| public void addInterface(String iface) | |
| addMethod | back to summary |
|---|---|
| public ClassMethod addMethod(int accessFlags, String name, String returnType, String... parameters) | |
| addMethod | back to summary |
|---|---|
| public ClassMethod addMethod(Method method) Adds a method with the same signiture as the given method, including exception types The new method will have the same modifier as the original method, except that the abstract and native flags will be stripped. Todo annotations and signiture attribute | |
| define | back to summary |
|---|---|
| public Class | |
| define | back to summary |
|---|---|
| public Class Deprecated
| |
| define | back to summary |
|---|---|
| public Class | |
| define | back to summary |
|---|---|
| public Class Deprecated
Definines the class using the given ClassLoader and ProtectionDomain
| |
| defineInternal | back to summary |
|---|---|
| private Class | |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() | |
| getConstPool | back to summary |
|---|---|
| public ConstPool getConstPool() | |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() returns the type descriptor for the class | |
| getFields | back to summary |
|---|---|
public Set
| |
| getInterfaces | back to summary |
|---|---|
| public List | |
| getMethods | back to summary |
|---|---|
public Set
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the generated class name
| |
| getRuntimeVisibleAnnotationsAttribute | back to summary |
|---|---|
| public AnnotationsAttribute getRuntimeVisibleAnnotationsAttribute() | |
| getSuperclass | back to summary |
|---|---|
public String getSuperclass()
| |
| toBytecode | back to summary |
|---|---|
| public byte[] toBytecode() | |
| write | back to summary |
|---|---|
| public void write(ByteArrayDataOutputStream stream) throws IOException Implements org. | |