public class ClassStructure
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
access |
static int |
ALL
This flag indicates that all details about the class should be collected.
|
static int |
CLASS_ANNOTATIONS
This flag indicates the class annotations on the class should be collected.
|
protected java.util.Map<java.lang.String,AnnotationDetails> |
classAnnotations |
static int |
FIELDS
This flag indicates the fields of the class should be collected.
|
protected java.lang.String[] |
interfaces |
static int |
METHOD_ANNOTATIONS
This flag indicates the method annotations on all of the methods should be collected.
|
static int |
METHODS
This flag indicates the method names of the class should be collected.
|
protected java.lang.String |
superName |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccess() |
java.util.Map<java.lang.String,AnnotationDetails> |
getClassAnnotations()
Returns the annotations for the class (if the
CLASS_ANNOTATIONS flag was set). |
static ClassStructure |
getClassStructure(java.lang.Class<?> clazz) |
static ClassStructure |
getClassStructure(java.lang.Class<?> clazz,
int flags) |
static ClassStructure |
getClassStructure(org.objectweb.asm.ClassReader cr,
int flags) |
static ClassStructure |
getClassStructure(java.net.URL url) |
static ClassStructure |
getClassStructure(java.net.URL url,
int flags) |
java.util.Map<java.lang.String,org.objectweb.asm.tree.FieldNode> |
getFields() |
java.lang.String[] |
getInterfaces() |
java.util.Map<java.lang.String,AnnotationDetails> |
getMethodAnnotations(org.objectweb.asm.commons.Method method)
Returns the annotations for a method (if the
METHOD_ANNOTATIONS flag was set). |
java.util.Set<org.objectweb.asm.commons.Method> |
getMethods()
Returns the class' methods (if the
CLASS_ANNOTATIONS flag was set). |
java.lang.String |
getSuperName()
Returns the super class internal name, or null if there is no super class.
|
org.objectweb.asm.Type |
getType() |
java.lang.String |
toString() |
public static final int METHODS
public static final int FIELDS
public static final int CLASS_ANNOTATIONS
public static final int METHOD_ANNOTATIONS
METHODS flag.public static final int ALL
protected final int access
protected final java.lang.String superName
protected final java.lang.String[] interfaces
protected java.util.Map<java.lang.String,AnnotationDetails> classAnnotations
public int getAccess()
public java.lang.String getSuperName()
public org.objectweb.asm.Type getType()
public java.util.Set<org.objectweb.asm.commons.Method> getMethods()
CLASS_ANNOTATIONS flag was set).public java.util.Map<java.lang.String,org.objectweb.asm.tree.FieldNode> getFields()
public java.util.Map<java.lang.String,AnnotationDetails> getMethodAnnotations(org.objectweb.asm.commons.Method method)
METHOD_ANNOTATIONS flag was set). The key is the annotation
descriptor.Type.getDescriptor(Class)public java.lang.String[] getInterfaces()
public java.util.Map<java.lang.String,AnnotationDetails> getClassAnnotations()
CLASS_ANNOTATIONS flag was set). The key is the annotation
descriptor.Type.getDescriptor(Class)public java.lang.String toString()
toString in class java.lang.Objectpublic static ClassStructure getClassStructure(java.net.URL url) throws java.io.IOException
java.io.IOExceptionpublic static ClassStructure getClassStructure(java.net.URL url, int flags) throws java.io.IOException
java.io.IOExceptionpublic static ClassStructure getClassStructure(org.objectweb.asm.ClassReader cr, int flags) throws java.io.IOException
java.io.IOExceptionpublic static ClassStructure getClassStructure(java.lang.Class<?> clazz)
public static ClassStructure getClassStructure(java.lang.Class<?> clazz, int flags)