AccessibleEntity, XClass, AnnotatedObject, java.lang.Comparable<ClassDescriptor>public class ClassInfo extends ClassNameAndSuperclassInfo implements XClass
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ClassInfo.Builder |
EMPTY_ARRAY| Modifier and Type | Method | Description |
|---|---|---|
void |
addAnnotation(AnnotationValue annotationValue) |
Destructively add an annotation to the object.
|
XField |
findField(java.lang.String name,
java.lang.String signature,
boolean isStatic) |
Find an XField matching given parameters.
|
XMethod |
findMatchingMethod(MethodDescriptor descriptor) |
Find XMethod matching the name and signature of the supplied method
MethodDescriptor.
|
XMethod |
findMethod(MethodDescriptor descriptor) |
Find XMethod matching given MethodDescriptor.
|
XMethod |
findMethod(java.lang.String methodName,
java.lang.String methodSig,
boolean isStatic) |
Find an XMethod matching given parameters.
|
AnnotationValue |
getAnnotation(ClassDescriptor desc) |
|
java.util.Collection<ClassDescriptor> |
getAnnotationDescriptors() |
|
java.util.Collection<AnnotationValue> |
getAnnotations() |
|
AnnotatedObject |
getContainingScope() |
|
AnnotatedObject |
getContainingScope0() |
|
java.lang.annotation.ElementType |
getElementType() |
|
ClassDescriptor |
getImmediateEnclosingClass() |
Get the ClassDescriptor of the immediate enclosing class, or null if this
XClass is not a nested or inner class.
|
java.lang.String |
getPackageName() |
Get the name of the package in dotted format.
|
java.lang.String |
getSlashedPackageName() |
|
java.lang.String |
getSource() |
|
java.lang.String |
getSourceSignature() |
|
java.util.List<? extends XField> |
getXFields() |
|
java.util.List<? extends XMethod> |
getXMethods() |
|
java.util.List<? extends XMethod> |
getXMethodsInCallOrder() |
|
boolean |
hasStubs() |
|
boolean |
usesConcurrency() |
getAccessFlags, getClassDescriptor, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, isSyntheticgetClassDescriptor, isSyntheticcompareTo, createClassDescriptor, createClassDescriptor, createClassDescriptor, createClassDescriptorFromDottedClassName, createClassDescriptorFromSignature, equals, fromFieldSignature, fromResourceName, getClassName, getDottedClassName, getSignature, getSimpleName, getXClass, hashCode, isAnonymousClass, isArray, isClassResource, matches, throwClassNotFoundException, toDottedClassName, toResourceName, toStringgetAccessFlags, getCalledClassDescriptors, getClassDescriptor, getCodeBaseEntry, getInterfaceDescriptorList, getMajorVersion, getMinorVersion, getSuperclassDescriptor, isAbstract, isAnnotation, isDeprecated, isFinal, isInterface, isPrivate, isProtected, isPublic, isStatic, isSyntheticclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCalledClassDescriptors, getInterfaceDescriptorList, getSuperclassDescriptor, isAbstract, isInterfacepublic java.util.List<? extends XField> getXFields()
getXFields in interface XClasspublic java.util.List<? extends XMethod> getXMethods()
getXMethods in interface XClasspublic java.util.List<? extends XMethod> getXMethodsInCallOrder()
public XMethod findMethod(java.lang.String methodName, java.lang.String methodSig, boolean isStatic)
XClassfindMethod in interface XClassmethodName - name of the methodmethodSig - signature of the methodisStatic - true if the method is static, false if notpublic XMethod findMethod(MethodDescriptor descriptor)
XClassfindMethod in interface XClassdescriptor - a MethodDescriptorpublic XMethod findMatchingMethod(MethodDescriptor descriptor)
XClassfindMatchingMethod in interface XClassdescriptor - a MethodDescriptorpublic XField findField(java.lang.String name, java.lang.String signature, boolean isStatic)
XClasspublic ClassDescriptor getImmediateEnclosingClass()
XClassgetImmediateEnclosingClass in interface XClasspublic java.lang.String getPackageName()
ClassDescriptorgetPackageName in class ClassDescriptorpublic java.lang.String getSlashedPackageName()
public java.util.Collection<ClassDescriptor> getAnnotationDescriptors()
getAnnotationDescriptors in interface AnnotatedObjectgetAnnotationDescriptors in interface XClasspublic java.util.Collection<AnnotationValue> getAnnotations()
getAnnotations in interface AnnotatedObjectpublic AnnotationValue getAnnotation(ClassDescriptor desc)
getAnnotation in interface AnnotatedObjectgetAnnotation in interface XClasspublic void addAnnotation(AnnotationValue annotationValue)
annotationValue - an AnnotationValue to add to the classpublic java.lang.annotation.ElementType getElementType()
getElementType in interface AnnotatedObject@CheckForNull public java.lang.String getSource()
@CheckForNull public AnnotatedObject getContainingScope()
getContainingScope in interface AnnotatedObject@CheckForNull public AnnotatedObject getContainingScope0()
public java.lang.String getSourceSignature()
getSourceSignature in interface XClasspublic boolean usesConcurrency()
usesConcurrency in interface XClassFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.