fr.umlv.corosol.component.impl
Class DefaultJMethodLookup

java.lang.Object
  extended by fr.umlv.corosol.component.impl.AbstractJVMComponent
      extended by fr.umlv.corosol.component.impl.DefaultJMethodLookup
All Implemented Interfaces:
JMethodLookup, JObject, JVMComponent

public class DefaultJMethodLookup
extends AbstractJVMComponent
implements JMethodLookup

The default implementation of the JMethodLookup interface.

Author:
DELERAY Christophe

Constructor Summary
DefaultJMethodLookup()
          The default constructor.
 
Method Summary
 java.lang.Class getComponentClass()
          Returns the class object describing this component.
 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.
 java.lang.String toString()
          Returns a string representation of this method lookup.
 
Methods inherited from class fr.umlv.corosol.component.impl.AbstractJVMComponent
configure, replace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
configure, replace
 

Constructor Detail

DefaultJMethodLookup

public DefaultJMethodLookup()
The default constructor.

Method Detail

lookup

public 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.

Specified by:
lookup in interface JMethodLookup
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

public 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.

Specified by:
superclassLookup in interface JMethodLookup
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

public 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.

Specified by:
superInterfacesLookup in interface JMethodLookup
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

toString

public java.lang.String toString()
Returns a string representation of this method lookup.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this method lookup

getComponentClass

public java.lang.Class getComponentClass()
Returns the class object describing this component.

Specified by:
getComponentClass in interface JVMComponent