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
,java.lang.Comparable<ComparableMethod>
- Direct Known Subclasses:
MethodInfo
public class MethodDescriptor extends FieldOrMethodDescriptor implements ComparableMethod
Descriptor uniquely identifying a method in a class.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description MethodDescriptor(java.lang.String className, java.lang.String methodName, java.lang.String methodSignature)
MethodDescriptor(java.lang.String className, java.lang.String methodName, java.lang.String methodSignature, boolean isStatic)
Constructor.MethodDescriptor(org.apache.bcel.generic.InvokeInstruction iins, org.apache.bcel.generic.ConstantPoolGen cpg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ComparableMethod o)
boolean
equals(java.lang.Object obj)
-
Methods inherited from class edu.umd.cs.findbugs.classfile.FieldOrMethodDescriptor
compareTo, compareTo, getClassDescriptor, getName, getNameSigHashCode, getNameSigHashCode, getSignature, getSlashedClassName, hashCode, haveEqualFields, isStatic, toString
-
-
-
-
Constructor Detail
-
MethodDescriptor
public MethodDescriptor(@SlashedClassName java.lang.String className, java.lang.String methodName, java.lang.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 java.lang.String className, java.lang.String methodName, java.lang.String methodSignature)
-
MethodDescriptor
public MethodDescriptor(org.apache.bcel.generic.InvokeInstruction iins, org.apache.bcel.generic.ConstantPoolGen cpg)
-
-
Method Detail
-
compareTo
public int compareTo(ComparableMethod o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ComparableMethod>
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-