public class ClassDataCollector extends Object
Constructor and Description |
---|
ClassDataCollector() |
Modifier and Type | Method and Description |
---|---|
void |
addReference(Descriptors.TypeRef ref) |
void |
annotation(Annotation annotation) |
void |
annotationDefault(Clazz.MethodDef last) |
void |
annotationDefault(Clazz.MethodDef last,
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 defined) |
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 defined) |
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 |
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
Exception
public void implementsInterfaces(Descriptors.TypeRef[] interfaces) throws Exception
Exception
public void addReference(Descriptors.TypeRef ref)
public void annotation(Annotation annotation) throws Exception
Exception
public void parameter(int p)
public void method(Clazz.MethodDef defined)
public void field(Clazz.FieldDef defined)
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 flagsException
public 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 last)
public void annotationDefault(Clazz.MethodDef last, Object value)
Copyright © 2021 aQute SARL. All rights reserved.