
public class CollectClassData extends EmptyVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectClassData.AnnotationEnum
Holds the descriptor and value for an Enum-valued annotation.
|
static class |
CollectClassData.ClassType
Type of this class.
|
av, fv, mv| Constructor and Description |
|---|
CollectClassData()
Construct a visitor that will collect data about a class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAccess() |
List<CollectAnnotationData> |
getAnnotations() |
CollectClassData.ClassType |
getClassType() |
String |
getEnclosingInternalName() |
String |
getEnclosingMethodDesc() |
String |
getEnclosingMethodName() |
List<CollectFieldData> |
getFields() |
String[] |
getInterfaceInternalNames() |
String |
getInternalName() |
List<CollectMethodData> |
getMethods() |
String |
getNestedSourceName() |
String |
getSignature() |
String |
getSource() |
String |
getSuperInternalName() |
boolean |
hasNoExternalName() |
boolean |
isAnonymous() |
String |
toString() |
void |
visit(int version,
int access,
String internalName,
String signature,
String superInternalName,
String[] interfaces)
Called at the beginning of visiting the class.
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
void |
visitEnd() |
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value)
Called for each field.
|
void |
visitInnerClass(String internalName,
String enclosingInternalName,
String innerName,
int access)
Called once for every inner class of this class.
|
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
void |
visitOuterClass(String enclosingInternalName,
String enclosingMethodName,
String enclosingMethodDesc) |
void |
visitSource(String source,
String debug)
If compiled with debug, visit the source information.
|
public CollectClassData()
public int getAccess()
public List<CollectAnnotationData> getAnnotations()
public CollectClassData.ClassType getClassType()
public String getEnclosingInternalName()
public String getEnclosingMethodDesc()
public String getEnclosingMethodName()
public List<CollectFieldData> getFields()
public String[] getInterfaceInternalNames()
public String getInternalName()
public List<CollectMethodData> getMethods()
public String getNestedSourceName()
public String getSignature()
public String getSource()
public String getSuperInternalName()
public boolean hasNoExternalName()
public boolean isAnonymous()
public void visit(int version,
int access,
String internalName,
String signature,
String superInternalName,
String[] interfaces)
visit in class org.objectweb.asm.ClassVisitorversion - classfile version (ie, Opcodes.V1_5 etc)access - access flags (ie, bitwise or of Opcodes.ACC_*)signature - generic signature or nullinterfaces - array of internal names of implemented interfacesinternalName - internal name of this class (ie, com/google/Foo)superInternalName - internal name of superclass (ie, java/lang/Object)public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation in class EmptyVisitorpublic void visitEnd()
visitEnd in class org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
visitField in class EmptyVisitoraccess - access flags for fieldname - field namedesc - type descriptor (ie, Ljava/lang/String;)signature - generic signature (null if not generic)value - initialized value if constantpublic void visitInnerClass(String internalName, String enclosingInternalName, String innerName, int access)
visitInnerClass in class org.objectweb.asm.ClassVisitorinternalName - internal name of inner class (ie, com/google/Foo$1)enclosingInternalName - internal name of enclosing class (null if not a member
class or anonymous)innerName - simple name of the inner class (null if anonymous)access - access flags (bitwise or of Opcodes.ACC_*) as declared in the
enclosing classpublic org.objectweb.asm.MethodVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
visitMethod in class EmptyVisitorpublic void visitOuterClass(String enclosingInternalName, String enclosingMethodName, String enclosingMethodDesc)
visitOuterClass in class org.objectweb.asm.ClassVisitorpublic void visitSource(String source, String debug)
visitSource in class org.objectweb.asm.ClassVisitorsource - unqualified filename containing source (ie, Foo.java)debug - additional debug information (may be null)Copyright © 2018. All rights reserved.