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.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodDescriptor(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 TypeMethodDescriptionintfinal booleanbooleanAccess methods are generated by the compiler for inner classes accessing the outer classMethods inherited from class 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:
compareToin interfaceComparable<ComparableMethod>
-
equals
-
isAccessMethod
public boolean isAccessMethod()Access methods are generated by the compiler for inner classes accessing the outer class- Returns:
trueif the method name starts with "access$"
-