|
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 XClass
public 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 XClass
methodName
- 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 XClass
descriptor
- a MethodDescriptor
public XMethod findMatchingMethod(MethodDescriptor descriptor)
XClass
findMatchingMethod
in interface XClass
descriptor
- a MethodDescriptor
public XField findField(java.lang.String name, java.lang.String signature, boolean isStatic)
XClass
findField
in interface XClass
name
- name of the fieldsignature
- signature of the fieldisStatic
- true if field is static, false if not
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()
getSource
in interface XClass
@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
public 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 |