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

public class MethodDescriptor extends FieldOrMethodDescriptor implements ComparableMethod
Descriptor uniquely identifying a method in a class.
Author:
David Hovemeyer
  • 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 method
      methodSignature - signature of the method
      isStatic - 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

      public int compareTo(ComparableMethod o)
      Specified by:
      compareTo in interface Comparable<ComparableMethod>
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isAccessMethod

      public boolean isAccessMethod()
      Access methods are generated by the compiler for inner classes accessing the outer class
      Returns:
      true if the method name starts with "access$"