public class ReflectionClassDef extends BaseTypeReference implements ClassDef
Reference.InvalidReferenceException| Constructor and Description |
|---|
ReflectionClassDef(java.lang.Class cls) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this class.
|
java.util.Set<? extends Annotation> |
getAnnotations()
Gets a set of the annotations that are applied to this class.
|
java.lang.Iterable<? extends Method> |
getDirectMethods()
Gets the direct methods that are defined by this class.
|
java.util.Set<? extends Field> |
getFields()
Gets all the fields that are defined by this class.
|
java.lang.Iterable<? extends Field> |
getInstanceFields()
Gets the instance fields that are defined by this class.
|
java.util.List<java.lang.String> |
getInterfaces()
Gets a list of the interfaces that this class implements.
|
java.util.Set<? extends Method> |
getMethods()
Gets all the methods that are defined by this class.
|
java.lang.String |
getSourceFile()
Gets the name of the primary source file that this class is defined in, if available.
|
java.lang.Iterable<? extends Field> |
getStaticFields()
Gets the static fields that are defined by this class.
|
java.lang.String |
getSuperclass()
Gets the superclass of this class.
|
java.lang.String |
getType()
Gets the class type.
|
java.lang.Iterable<? extends Method> |
getVirtualMethods()
Gets the virtual methods that are defined by this class.
|
charAt, compareTo, equals, hashCode, length, subSequence, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReferencepublic int getAccessFlags()
ClassDefgetAccessFlags in interface ClassDef@Nullable public java.lang.String getSuperclass()
ClassDefgetSuperclass in interface ClassDef@Nonnull public java.util.List<java.lang.String> getInterfaces()
ClassDefgetInterfaces in interface ClassDef@Nullable public java.lang.String getSourceFile()
ClassDefgetSourceFile in interface ClassDef@Nonnull public java.util.Set<? extends Annotation> getAnnotations()
ClassDefgetAnnotations in interface AnnotatablegetAnnotations in interface ClassDef@Nonnull public java.lang.Iterable<? extends Field> getStaticFields()
ClassDefgetStaticFields in interface ClassDef@Nonnull public java.lang.Iterable<? extends Field> getInstanceFields()
ClassDefgetInstanceFields in interface ClassDef@Nonnull public java.util.Set<? extends Field> getFields()
ClassDef@Nonnull public java.lang.Iterable<? extends Method> getDirectMethods()
ClassDefgetDirectMethods in interface ClassDef@Nonnull public java.lang.Iterable<? extends Method> getVirtualMethods()
ClassDefgetVirtualMethods in interface ClassDef@Nonnull public java.util.Set<? extends Method> getMethods()
ClassDefgetMethods in interface ClassDef@Nonnull public java.lang.String getType()
ClassDefgetType in interface ClassDefgetType in interface TypeReference