Package edu.umd.cs.findbugs.ba
Class JavaClassAndMethod
java.lang.Object
edu.umd.cs.findbugs.ba.JavaClassAndMethod
A JavaClass and a Method belonging to the class. This is useful for answering
a method lookup query which must concretely identify both the class and the
method.
- Author:
- David Hovemeyer
-
Constructor Summary
ConstructorsConstructorDescriptionJavaClassAndMethod
(XMethod method) Constructor.JavaClassAndMethod
(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Constructor. -
Method Summary
-
Constructor Details
-
JavaClassAndMethod
public JavaClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method) Constructor.- Parameters:
javaClass
- the JavaClassmethod
- a Method belonging to the JavaClass
-
JavaClassAndMethod
Constructor.- Parameters:
method
- an XMethod specifying a specific method in a specific class- Throws:
ClassNotFoundException
-
-
Method Details
-
getJavaClass
public org.apache.bcel.classfile.JavaClass getJavaClass()Get the JavaClass. -
getMethod
public org.apache.bcel.classfile.Method getMethod()Get the Method. -
toXMethod
Convert to an XMethod. -
toMethodDescriptor
Get the MethodDescriptor that (hopefully) uniqely names this method.- Returns:
- the MethodDescriptor uniquely naming this method
-
hashCode
public int hashCode() -
equals
-
toString
-