NVelocity.Util.Introspection
Class MethodMap

Constructor Summary
MethodMap()
        Initializes a new instance of the MethodMap class.

Method Summary
void add(System.Reflection.MethodInfo method)
         Add a method to a list of methods by name. For a particular class we are keeping track of all the methods with the same name.
System.Reflection.MethodInfo find(string methodName, object[] params_Renamed)
         Find a method. Attempts to find the most appropriate method using the sense of 'specificity'. This turns out to be a relatively rare case where this is needed - however, functionality like this is needed. This may not be the optimum approach, but it works.
System.Collections.IList get(string key)
         Return a list of methods with the same name.

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

MethodMap

public MethodMap()

Initializes a new instance of the MethodMap class.

Method Detail

add

public void add(System.Reflection.MethodInfo method)

Add a method to a list of methods by name. For a particular class we are keeping track of all the methods with the same name.


find

public System.Reflection.MethodInfo find(string methodName,
                                         object[] params_Renamed)

Find a method. Attempts to find the most appropriate method using the sense of 'specificity'. This turns out to be a relatively rare case where this is needed - however, functionality like this is needed. This may not be the optimum approach, but it works.

Parameters:
String - name of method
Object[] - params
Returns:
Method

get

public System.Collections.IList get(string key)

Return a list of methods with the same name.

Parameters:
String - key
Returns:
List list of methods