public interface XMethod extends ClassMember, AnnotatedObject
If the resolved() method returns true, then any information queried from this object can be assumed to be accurate. If the resolved() method returns false, then FindBugs can't find the method and any information other than name/signature/etc. cannot be trusted.
Modifier and Type | Method and Description |
---|---|
AnnotationValue |
getAnnotation(ClassDescriptor desc)
Get the AnnotationValue of annotation applied directly to the method.
|
java.util.Collection<ClassDescriptor> |
getAnnotationDescriptors()
Get ClassDescriptors (annotation classes) of annotations applied
directly to this method.
|
java.util.Collection<AnnotationValue> |
getAnnotations()
Get collection of all AnnotationValues applied directly
to the method.
|
java.lang.String |
getBridgeSignature() |
MethodDescriptor |
getMethodDescriptor() |
int |
getNumParams() |
AnnotationValue |
getParameterAnnotation(int param,
ClassDescriptor desc)
Get the AnnotationValue of annotation applied directly to given parameter.
|
java.util.Collection<ClassDescriptor> |
getParameterAnnotationDescriptors(int param)
Get ClassDescriptors (annotation classes) of annotations applied
directly to this method's parameters.
|
java.util.Collection<AnnotationValue> |
getParameterAnnotations(int param)
Get collection of all AnnotationValues applied directly
to given parameter.
|
java.lang.String[] |
getThrownExceptions() |
boolean |
isAbstract() |
boolean |
isBridged() |
boolean |
isNative() |
boolean |
isReturnTypeReferenceType() |
boolean |
isStub() |
boolean |
isSynchronized() |
boolean |
isUnconditionalThrower() |
boolean |
isUnsupported() |
boolean |
isVarArgs() |
boolean |
usesConcurrency() |
getClassName, getName, getPackageName, getSignature, getSourceSignature, isResolved
getAccessFlags, getClassDescriptor, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynthetic
getClassDescriptor, isStatic
getClassDescriptor, getContainingScope, getElementType, isSynthetic
boolean isNative()
boolean isAbstract()
boolean isSynchronized()
int getNumParams()
MethodDescriptor getMethodDescriptor()
java.lang.String[] getThrownExceptions()
boolean isUnconditionalThrower()
boolean usesConcurrency()
boolean isStub()
boolean isBridged()
java.lang.String getBridgeSignature()
boolean isUnsupported()
boolean isVarArgs()
boolean isReturnTypeReferenceType()
java.util.Collection<ClassDescriptor> getParameterAnnotationDescriptors(int param)
param
- parameter number (0 for first parameter)@CheckForNull AnnotationValue getParameterAnnotation(int param, ClassDescriptor desc)
param
- parameter number (0 for first parameter)desc
- ClassDescriptor of the annotation classjava.util.Collection<AnnotationValue> getParameterAnnotations(int param)
param
- parameter number (0 for first parameter)java.util.Collection<ClassDescriptor> getAnnotationDescriptors()
getAnnotationDescriptors
in interface AnnotatedObject
AnnotationValue getAnnotation(ClassDescriptor desc)
getAnnotation
in interface AnnotatedObject
desc
- ClassDescriptor of the annotation classjava.util.Collection<AnnotationValue> getAnnotations()
getAnnotations
in interface AnnotatedObject
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.