edu.umd.cs.findbugs.ba

Class JavaClassAndMethod

public class JavaClassAndMethod extends 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(JavaClass javaClass, Method method)
Constructor.
JavaClassAndMethod(XMethod method)
Constructor.
Method Summary
JavaClassgetJavaClass()
Get the JavaClass.
MethodgetMethod()
Get the Method.
MethodDescriptortoMethodDescriptor()
Get the MethodDescriptor that (hopefully) uniqely names this method.
XMethodtoXMethod()
Convert to an XMethod.

Constructor Detail

JavaClassAndMethod

public JavaClassAndMethod(JavaClass javaClass, Method method)
Constructor.

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

JavaClassAndMethod

public JavaClassAndMethod(XMethod method)
Constructor.

Parameters: method an XMethod specifying a specific method in a specific class

Throws: ClassNotFoundException

Method Detail

getJavaClass

public JavaClass getJavaClass()
Get the JavaClass.

getMethod

public Method getMethod()
Get the Method.

toMethodDescriptor

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

Returns: the MethodDescriptor uniquely naming this method

toXMethod

public XMethod toXMethod()
Convert to an XMethod.
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.