Package edu.umd.cs.findbugs.classfile
Class MethodDescriptor
java.lang.Object
edu.umd.cs.findbugs.classfile.FieldOrMethodDescriptor
edu.umd.cs.findbugs.classfile.MethodDescriptor
- All Implemented Interfaces:
ComparableMethod
,FieldOrMethodName
,Comparable<ComparableMethod>
- Direct Known Subclasses:
MethodInfo
Descriptor uniquely identifying a method in a class.
- Author:
- David Hovemeyer
-
Constructor Summary
ConstructorDescriptionMethodDescriptor
(String className, String methodName, String methodSignature) MethodDescriptor
(String className, String methodName, String methodSignature, boolean isStatic) Constructor.MethodDescriptor
(org.apache.bcel.generic.InvokeInstruction iins, org.apache.bcel.generic.ConstantPoolGen cpg) -
Method Summary
Modifier and TypeMethodDescriptionint
final boolean
Methods inherited from class edu.umd.cs.findbugs.classfile.FieldOrMethodDescriptor
compareTo, compareTo, getClassDescriptor, getName, getNameSigHashCode, getNameSigHashCode, getSignature, getSlashedClassName, hashCode, haveEqualFields, isStatic, toString
-
Constructor Details
-
MethodDescriptor
public MethodDescriptor(@SlashedClassName String className, String methodName, String methodSignature, boolean isStatic) Constructor.- Parameters:
className
- name of the class containing the method, in VM format (e.g., "java/lang/String")methodName
- name of the methodmethodSignature
- signature of the methodisStatic
- true if method is static, false otherwise
-
MethodDescriptor
public MethodDescriptor(@SlashedClassName String className, String methodName, String methodSignature) -
MethodDescriptor
public MethodDescriptor(org.apache.bcel.generic.InvokeInstruction iins, org.apache.bcel.generic.ConstantPoolGen cpg)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ComparableMethod>
-
equals
-