public class ClassDataCollector extends Object
ClassDataCollectors!| Constructor and Description |
|---|
ClassDataCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addReference(Descriptors.TypeRef ref) |
void |
annotation(Annotation annotation) |
void |
annotationDefault(Clazz.MethodDef method) |
void |
annotationDefault(Clazz.MethodDef method,
Object value) |
void |
classBegin(int access,
Descriptors.TypeRef name) |
void |
classEnd() |
boolean |
classStart(Clazz c) |
boolean |
classStart(int access,
Descriptors.TypeRef className) |
void |
constant(Object object) |
void |
deprecated() |
void |
enclosingMethod(Descriptors.TypeRef cName,
String mName,
String mDescriptor)
The EnclosingMethod attribute
|
void |
extendsClass(Descriptors.TypeRef zuper) |
void |
field(Clazz.FieldDef field) |
void |
implementsInterfaces(Descriptors.TypeRef[] interfaces) |
void |
innerClass(Descriptors.TypeRef innerClass,
Descriptors.TypeRef outerClass,
String innerName,
int innerClassAccessFlags)
The InnerClass attribute
|
void |
memberEnd() |
void |
method(Clazz.MethodDef method) |
void |
methodParameters(Clazz.MethodDef method,
Clazz.MethodParameter[] parameters) |
void |
parameter(int p) |
void |
referenceMethod(int access,
Descriptors.TypeRef className,
String method,
String descriptor) |
void |
referTo(Descriptors.TypeRef typeRef,
int modifiers)
A reference to a type from method or field.
|
void |
signature(String signature) |
void |
typeuse(int target_type,
int target_index,
byte[] target_info,
byte[] type_path) |
void |
version(int minor,
int major) |
public void classBegin(int access,
Descriptors.TypeRef name)
public boolean classStart(int access,
Descriptors.TypeRef className)
public boolean classStart(Clazz c)
public void extendsClass(Descriptors.TypeRef zuper) throws Exception
Exceptionpublic void implementsInterfaces(Descriptors.TypeRef[] interfaces) throws Exception
Exceptionpublic void addReference(Descriptors.TypeRef ref)
public void annotation(Annotation annotation) throws Exception
Exceptionpublic void parameter(int p)
public void method(Clazz.MethodDef method)
public void field(Clazz.FieldDef field)
public void enclosingMethod(Descriptors.TypeRef cName, String mName, String mDescriptor)
cName - The name of the enclosing class, never null. Name is with
slashes.mName - The name of the enclosing method in the class with cName or
nullmDescriptor - The descriptor of this typepublic void innerClass(Descriptors.TypeRef innerClass, Descriptors.TypeRef outerClass, String innerName, int innerClassAccessFlags) throws Exception
innerClass - The name of the inner class (with slashes). Can be
null.outerClass - The name of the outer class (with slashes) Can be null.innerName - The name inside the outer class, can be null.innerClassAccessFlags - The access flagsExceptionpublic void signature(String signature)
public void constant(Object object)
public void memberEnd()
public void version(int minor,
int major)
public void referenceMethod(int access,
Descriptors.TypeRef className,
String method,
String descriptor)
public void referTo(Descriptors.TypeRef typeRef, int modifiers)
typeRef - modifiers - public void annotationDefault(Clazz.MethodDef method)
public void annotationDefault(Clazz.MethodDef method, Object value)
public void typeuse(int target_type,
int target_index,
byte[] target_info,
byte[] type_path)
public void methodParameters(Clazz.MethodDef method, Clazz.MethodParameter[] parameters)
Copyright © 2021. All rights reserved.