commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r398459 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/ClassMap.java
Date Sun, 30 Apr 2006 23:14:33 GMT
Author: dion
Date: Sun Apr 30 16:14:30 2006
New Revision: 398459

URL: http://svn.apache.org/viewcvs?rev=398459&view=rev
Log:
Checkstyle

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/ClassMap.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/ClassMap.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/ClassMap.java?rev=398459&r1=398458&r2=398459&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/ClassMap.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/introspection/ClassMap.java
Sun Apr 30 16:14:30 2006
@@ -36,11 +36,14 @@
  * @version $Id$
  */
 public class ClassMap {
+    /** represents a miss on the cached data. */
     private static final class CacheMiss {
     }
 
+    /** constant for a miss on the cached data. */
     private static final CacheMiss CACHE_MISS = new CacheMiss();
 
+    /** represents null or missing arguments. */
     private static final Object OBJECT = new Object();
 
     /**
@@ -56,19 +59,18 @@
      */
     private final Map methodCache = new Hashtable();
 
+    /** map from method name and args to a {@link Method}. */
     private final MethodMap methodMap = new MethodMap();
 
     /**
      * Standard constructor.
+     * @param aClass the class to deconstruct. 
      */
-    public ClassMap(Class clazz) {
-        this.clazz = clazz;
+    public ClassMap(Class aClass) {
+        clazz = aClass;
         populateMethodCache();
     }
 
-    private ClassMap() {
-    }
-
     /**
      * @return the class object whose methods are cached by this map.
      */
@@ -85,6 +87,11 @@
      * 
      * If nothing is found, then we must actually go and introspect the method
      * from the MethodMap.
+     * 
+     * @param name method name
+     * @param params method parameters
+     * @return CACHE_MISS or a {@link Method}
+     * @throws MethodMap.AmbiguousException if the method and parameters are ambiguous.
      */
     public Method findMethod(String name, Object[] params) throws MethodMap.AmbiguousException
{
         String methodKey = makeMethodKey(name, params);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message