org.apache.velocity.util.introspection
Class MethodMap

java.lang.Object
  |
  +--org.apache.velocity.util.introspection.MethodMap

public class MethodMap
extends java.lang.Object

Version:
$Id: MethodMap.java,v 1.10 2001/08/11 19:04:21 geirm Exp $
Author:
Jason van Zyl, Bob McWhirter, Christoph Reck, Geir Magnusson Jr.

Field Summary
(package private)  java.util.Map methodByNameMap
          Keep track of all methods with the same name.
 
Constructor Summary
MethodMap()
           
 
Method Summary
 void add(java.lang.reflect.Method method)
          Add a method to a list of methods by name.
 java.lang.reflect.Method find(java.lang.String methodName, java.lang.Object[] params)
          Find a method.
 java.util.List get(java.lang.String key)
          Return a list of methods with the same name.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

methodByNameMap

java.util.Map methodByNameMap
Keep track of all methods with the same name.
Constructor Detail

MethodMap

public MethodMap()
Method Detail

add

public void add(java.lang.reflect.Method 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.

get

public java.util.List get(java.lang.String key)
Return a list of methods with the same name.
Parameters:
String - key
Returns:
List list of methods

find

public java.lang.reflect.Method find(java.lang.String methodName,
                                     java.lang.Object[] params)
Find a method.
Parameters:
String - name of method
Object[] - params
Returns:
Method


Copyright © 2001 Apache Software Foundation. All Rights Reserved.