private class ClassDataCollectors.Collectors extends ClassDataCollector
| Modifier and Type | Field and Description |
|---|---|
private Clazz |
clazz |
private java.util.List<ClassDataCollector> |
shortlist |
| Constructor and Description |
|---|
Collectors(Clazz clazz) |
| 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,
java.lang.Object value) |
void |
classBegin(int access,
Descriptors.TypeRef name) |
void |
classEnd() |
boolean |
classStart(Clazz clazz) |
boolean |
classStart(int access,
Descriptors.TypeRef className) |
void |
constant(java.lang.Object object) |
void |
deprecated() |
void |
enclosingMethod(Descriptors.TypeRef cName,
java.lang.String mName,
java.lang.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,
java.lang.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,
java.lang.String method,
java.lang.String descriptor) |
void |
referTo(Descriptors.TypeRef typeRef,
int modifiers)
A reference to a type from method or field.
|
void |
signature(java.lang.String signature) |
void |
typeuse(int target_type,
int target_index,
byte[] target_info,
byte[] type_path) |
void |
version(int minor,
int major) |
private final Clazz clazz
private final java.util.List<ClassDataCollector> shortlist
Collectors(Clazz clazz)
public void classBegin(int access,
Descriptors.TypeRef name)
classBegin in class ClassDataCollectorpublic boolean classStart(int access,
Descriptors.TypeRef className)
classStart in class ClassDataCollectorpublic boolean classStart(Clazz clazz)
classStart in class ClassDataCollectorpublic void extendsClass(Descriptors.TypeRef zuper) throws java.lang.Exception
extendsClass in class ClassDataCollectorjava.lang.Exceptionpublic void implementsInterfaces(Descriptors.TypeRef[] interfaces) throws java.lang.Exception
implementsInterfaces in class ClassDataCollectorjava.lang.Exceptionpublic void addReference(Descriptors.TypeRef ref)
addReference in class ClassDataCollectorpublic void annotation(Annotation annotation)
annotation in class ClassDataCollectorpublic void parameter(int p)
parameter in class ClassDataCollectorpublic void method(Clazz.MethodDef method)
method in class ClassDataCollectorpublic void field(Clazz.FieldDef field)
field in class ClassDataCollectorpublic void classEnd()
throws java.lang.Exception
classEnd in class ClassDataCollectorjava.lang.Exceptionpublic void deprecated()
throws java.lang.Exception
deprecated in class ClassDataCollectorjava.lang.Exceptionpublic void enclosingMethod(Descriptors.TypeRef cName, java.lang.String mName, java.lang.String mDescriptor)
ClassDataCollectorenclosingMethod in class ClassDataCollectorcName - 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, java.lang.String innerName, int innerClassAccessFlags) throws java.lang.Exception
ClassDataCollectorinnerClass in class ClassDataCollectorinnerClass - 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 flagsjava.lang.Exceptionpublic void signature(java.lang.String signature)
signature in class ClassDataCollectorpublic void constant(java.lang.Object object)
constant in class ClassDataCollectorpublic void memberEnd()
memberEnd in class ClassDataCollectorpublic void version(int minor,
int major)
version in class ClassDataCollectorpublic void referenceMethod(int access,
Descriptors.TypeRef className,
java.lang.String method,
java.lang.String descriptor)
referenceMethod in class ClassDataCollectorpublic void referTo(Descriptors.TypeRef typeRef, int modifiers)
ClassDataCollectorreferTo in class ClassDataCollectorpublic void annotationDefault(Clazz.MethodDef method)
annotationDefault in class ClassDataCollectorpublic void annotationDefault(Clazz.MethodDef method, java.lang.Object value)
annotationDefault in class ClassDataCollectorpublic void typeuse(int target_type,
int target_index,
byte[] target_info,
byte[] type_path)
typeuse in class ClassDataCollectorpublic void methodParameters(Clazz.MethodDef method, Clazz.MethodParameter[] parameters)
methodParameters in class ClassDataCollector