public class ClassInfo extends ClassNameAndSuperclassInfo implements XClass
Modifier and Type | Class and Description |
---|---|
static class |
ClassInfo.Builder |
EMPTY_ARRAY
Modifier and Type | Method and 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, getCalledClassDescriptors, getClassDescriptor, getCodeBaseEntry, getInterfaceDescriptorList, getMajorVersion, getMinorVersion, getSuperclassDescriptor, isAbstract, isAnnotation, isDeprecated, isFinal, isInterface, isPrivate, isProtected, isPublic, isStatic, isSynthetic
compareTo, createClassDescriptor, createClassDescriptor, createClassDescriptor, createClassDescriptorFromDottedClassName, createClassDescriptorFromSignature, equals, fromFieldSignature, fromResourceName, getClassName, getDottedClassName, getSignature, getSimpleName, getXClass, hashCode, isAnonymousClass, isArray, isClassResource, matches, throwClassNotFoundException, toDottedClassName, toResourceName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCalledClassDescriptors, getInterfaceDescriptorList, getSuperclassDescriptor, isAbstract, isInterface
getAccessFlags, getClassDescriptor, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynthetic
getClassDescriptor, isSynthetic
public java.util.List<? extends XField> getXFields()
getXFields
in interface XClass
public java.util.List<? extends XMethod> getXMethods()
getXMethods
in interface XClass
public java.util.List<? extends XMethod> getXMethodsInCallOrder()
public XMethod findMethod(java.lang.String methodName, java.lang.String methodSig, boolean isStatic)
XClass
findMethod
in interface XClass
methodName
- name of the methodmethodSig
- signature of the methodisStatic
- true if the method is static, false if notpublic XMethod findMethod(MethodDescriptor descriptor)
XClass
findMethod
in interface XClass
descriptor
- a MethodDescriptorpublic XMethod findMatchingMethod(MethodDescriptor descriptor)
XClass
findMatchingMethod
in interface XClass
descriptor
- a MethodDescriptorpublic XField findField(java.lang.String name, java.lang.String signature, boolean isStatic)
XClass
public ClassDescriptor getImmediateEnclosingClass()
XClass
getImmediateEnclosingClass
in interface XClass
public java.lang.String getPackageName()
ClassDescriptor
getPackageName
in class ClassDescriptor
public java.lang.String getSlashedPackageName()
public java.util.Collection<ClassDescriptor> getAnnotationDescriptors()
getAnnotationDescriptors
in interface XClass
getAnnotationDescriptors
in interface AnnotatedObject
public java.util.Collection<AnnotationValue> getAnnotations()
getAnnotations
in interface AnnotatedObject
public AnnotationValue getAnnotation(ClassDescriptor desc)
getAnnotation
in interface XClass
getAnnotation
in interface AnnotatedObject
public 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 XClass
public boolean usesConcurrency()
usesConcurrency
in interface XClass
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.