FindBugs™ 1.3.9

edu.umd.cs.findbugs.ba
Class JavaClassAndMethod

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.JavaClassAndMethod

public class JavaClassAndMethod
extends java.lang.Object

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
JavaClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass, org.apache.bcel.classfile.Method method)
          Constructor.
JavaClassAndMethod(XMethod method)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaClassAndMethod

public JavaClassAndMethod(org.apache.bcel.classfile.JavaClass javaClass,
                          org.apache.bcel.classfile.Method method)
Constructor.

Parameters:
javaClass - the JavaClass
method - a Method belonging to the JavaClass

JavaClassAndMethod

public JavaClassAndMethod(XMethod method)
                   throws java.lang.ClassNotFoundException
Constructor.

Parameters:
method - an XMethod specifying a specific method in a specific class
Throws:
java.lang.ClassNotFoundException
Method Detail

getJavaClass

public org.apache.bcel.classfile.JavaClass getJavaClass()
Get the JavaClass.


getMethod

public org.apache.bcel.classfile.Method getMethod()
Get the Method.


toXMethod

public XMethod toXMethod()
Convert to an XMethod.


toMethodDescriptor

public MethodDescriptor toMethodDescriptor()
Get the MethodDescriptor that (hopefully) uniqely names this method.

Returns:
the MethodDescriptor uniquely naming this method

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.