public class JavaClassAndMethod
extends java.lang.Object
Constructor and Description |
---|
JavaClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass,
org.apache.bcel.classfile.Method method)
Constructor.
|
JavaClassAndMethod(XMethod method)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.apache.bcel.classfile.JavaClass |
getJavaClass()
Get the JavaClass.
|
org.apache.bcel.classfile.Method |
getMethod()
Get the Method.
|
int |
hashCode() |
MethodDescriptor |
toMethodDescriptor()
Get the MethodDescriptor that (hopefully) uniqely names this method.
|
java.lang.String |
toString() |
XMethod |
toXMethod()
Convert to an XMethod.
|
public JavaClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method)
javaClass
- the JavaClassmethod
- a Method belonging to the JavaClasspublic JavaClassAndMethod(XMethod method) throws java.lang.ClassNotFoundException
method
- an XMethod specifying a specific method in a specific classjava.lang.ClassNotFoundException
public org.apache.bcel.classfile.JavaClass getJavaClass()
public org.apache.bcel.classfile.Method getMethod()
public XMethod toXMethod()
public MethodDescriptor toMethodDescriptor()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.