fr.umlv.corosol.component
Interface JMethodLookup

All Superinterfaces:
JObject, JVMComponent
All Known Implementing Classes:
DefaultJMethodLookup

public interface JMethodLookup
extends JVMComponent

A JMethodLookup object processes the research of a method in a hierarchy of classes.

Author:
DELERAY Christophe

Method Summary
 JClassMethod lookup(JClass clazz, java.lang.String name, java.lang.String desc)
          Looks up the specified method or constructor from the specified class.
 JMethod superclassLookup(JClass clazz, java.lang.String name, java.lang.String desc)
          Looks up the specified method from the super class of the specified class.
 JMethod superInterfacesLookup(JClass clazz, java.lang.String name, java.lang.String desc)
          Looks up the specified method from the super interfaces of the specified class.
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
configure, getComponentClass, replace
 

Method Detail

lookup

JClassMethod lookup(JClass clazz,
                    java.lang.String name,
                    java.lang.String desc)
Looks up the specified method or constructor from the specified class. If the method was not found during the processing, null is returned.

Parameters:
clazz - the class from which the research starts
name - the name of the method to be looked up
desc - the descriptor method to be looked up
Returns:
the method, constructor or null if the method was not found

superclassLookup

JMethod superclassLookup(JClass clazz,
                         java.lang.String name,
                         java.lang.String desc)
Looks up the specified method from the super class of the specified class. If the method was not found during the processing, null is returned.

Parameters:
clazz - the class from which the research starts
name - the name of the method to be looked up
desc - the descriptor method to be looked up
Returns:
the method or null if the method was not found

superInterfacesLookup

JMethod superInterfacesLookup(JClass clazz,
                              java.lang.String name,
                              java.lang.String desc)
Looks up the specified method from the super interfaces of the specified class. If the method was not found during the processing, null is returned.

Parameters:
clazz - the class from which the research starts
name - the name of the method to be looked up
desc - the descriptor method to be looked up
Returns:
the method or null if the method was not found