NVelocity.Util.Introspection
Class ClassMap

A cache of introspection information for a specific class instance. Keys {@link java.lang.Method} objects by a concatenation of the method name and the names of classes that make up the parameters.

Constructor Summary
ClassMap(System.Type clazz)
         Standard constructor
ClassMap()
        Initializes a new instance of the ClassMap class.

Method Summary
System.Reflection.MethodInfo findMethod(string name, object[] params_Renamed)
         Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.
System.Reflection.PropertyInfo findProperty(string name)
         Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.
System.Reflection.MethodInfo getPublicMethod(System.Reflection.MethodInfo method)
         For a given method, retrieves its publicly accessible counterpart. This method will look for a method with same name and signature declared in a public superclass or implemented interface of this method's declaring class. This counterpart method is publicly callable.
System.Reflection.PropertyInfo getPublicProperty(System.Reflection.PropertyInfo property)

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


Constructor Detail

ClassMap

public ClassMap(System.Type clazz)

Standard constructor


ClassMap

public ClassMap()

Initializes a new instance of the ClassMap class.

Method Detail

findMethod

public System.Reflection.MethodInfo findMethod(string name,
                                               object[] params_Renamed)

Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.


findProperty

public System.Reflection.PropertyInfo findProperty(string name)

Find a Method using the methodKey provided. Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it. If nothing is found, then we must actually go and introspect the method from the MethodMap.


getPublicMethod

public System.Reflection.MethodInfo getPublicMethod(System.Reflection.MethodInfo method)

For a given method, retrieves its publicly accessible counterpart. This method will look for a method with same name and signature declared in a public superclass or implemented interface of this method's declaring class. This counterpart method is publicly callable.

Parameters:
method - a method whose publicly callable counterpart is requested.
Returns:
the publicly callable counterpart method. Note that if the parameter method is itself declared by a public class, this method is an identity function.

getPublicProperty

public System.Reflection.PropertyInfo getPublicProperty(System.Reflection.PropertyInfo property)