|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.classfile.ClassDescriptor
edu.umd.cs.findbugs.classfile.analysis.ClassNameAndSuperclassInfo
edu.umd.cs.findbugs.classfile.analysis.ClassInfo
public class ClassInfo
ClassInfo represents important metadata about a loaded class, such as its superclass, access flags, codebase entry, etc.
| Nested Class Summary | |
|---|---|
static class |
ClassInfo.Builder
|
| Field Summary |
|---|
| Fields inherited from class edu.umd.cs.findbugs.classfile.ClassDescriptor |
|---|
EMPTY_ARRAY |
| Method Summary | |
|---|---|
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()
|
boolean |
hasStubs()
|
boolean |
usesConcurrency()
|
| Methods inherited from class edu.umd.cs.findbugs.classfile.analysis.ClassNameAndSuperclassInfo |
|---|
getAccessFlags, getCalledClassDescriptorList, getClassDescriptor, getCodeBaseEntry, getInterfaceDescriptorList, getMajorVersion, getMinorVersion, getSuperclassDescriptor, isAbstract, isAnnotation, isDeprecated, isFinal, isInterface, isPrivate, isProtected, isPublic, isStatic, isSynthetic |
| Methods inherited from class edu.umd.cs.findbugs.classfile.ClassDescriptor |
|---|
compareTo, createClassDescriptor, createClassDescriptor, createClassDescriptor, createClassDescriptorFromDottedClassName, createClassDescriptorFromSignature, equals, fromFieldSignature, fromResourceName, getClassName, getDottedClassName, getSimpleName, hashCode, isAnonymousClass, isClassResource, throwClassNotFoundException, toDottedClassName, toResourceName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.umd.cs.findbugs.ba.XClass |
|---|
getInterfaceDescriptorList, getSuperclassDescriptor, isAbstract, isInterface |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface edu.umd.cs.findbugs.ba.AccessibleEntity |
|---|
getAccessFlags, getClassDescriptor, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynthetic |
| Methods inherited from interface edu.umd.cs.findbugs.classfile.analysis.AnnotatedObject |
|---|
getClassDescriptor, isSynthetic |
| Method Detail |
|---|
public java.util.List<? extends XField> getXFields()
getXFields in interface XClasspublic java.util.List<? extends XMethod> getXMethods()
getXMethods in interface XClass
public XMethod findMethod(java.lang.String methodName,
java.lang.String methodSig,
boolean isStatic)
XClass
findMethod in interface XClassmethodName - name of the methodmethodSig - signature of the methodisStatic - true if the method is static, false if not
public XMethod findMethod(MethodDescriptor descriptor)
XClass
findMethod in interface XClassdescriptor - a MethodDescriptor
public XMethod findMatchingMethod(MethodDescriptor descriptor)
XClass
findMatchingMethod in interface XClassdescriptor - a MethodDescriptor
public XField findField(java.lang.String name,
java.lang.String signature,
boolean isStatic)
XClass
findField in interface XClassname - name of the fieldsignature - signature of the fieldisStatic - true if field is static, false if not
public ClassDescriptor getImmediateEnclosingClass()
XClass
getImmediateEnclosingClass in interface XClasspublic java.lang.String getPackageName()
ClassDescriptor
getPackageName in class ClassDescriptorpublic java.lang.String getSlashedPackageName()
public java.util.Collection<ClassDescriptor> getAnnotationDescriptors()
getAnnotationDescriptors in interface XClassgetAnnotationDescriptors in interface AnnotatedObjectpublic java.util.Collection<AnnotationValue> getAnnotations()
getAnnotations in interface AnnotatedObjectpublic AnnotationValue getAnnotation(ClassDescriptor desc)
getAnnotation in interface XClassgetAnnotation in interface AnnotatedObjectpublic 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()
getSource in interface XClass@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 XClasspublic boolean hasStubs()
hasStubs in interface XClass
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||