jvanzyl     01/01/06 14:14:05

  Modified:    src/java/org/apache/velocity/runtime/parser/node
                        AbstractExecutor.java GetExecutor.java
  Log:
  - adding some javadoc.
  
  Revision  Changes    Path
  1.4       +18 -0     
jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/AbstractExecutor.java
  
  Index: AbstractExecutor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/AbstractExecutor.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AbstractExecutor.java     2001/01/06 22:08:34     1.3
  +++ AbstractExecutor.java     2001/01/06 22:14:05     1.4
  @@ -58,12 +58,30 @@
   
   import org.apache.velocity.context.InternalContextAdapter;
   
  +/**
  + * Abstract class that is used to execute an arbitrary
  + * method that is in introspected. This is the superclass
  + * for the GetExecutor and PropertyExecutor.
  + *
  + * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  + * @version $Id: AbstractExecutor.java,v 1.4 2001/01/06 22:14:05 jvanzyl Exp $
  + */
   public abstract class AbstractExecutor
   {
  +    /**
  +     * Method to be executed.
  +     */
       protected Method method = null;
       
  +    /**
  +     * Execute method against context.
  +     */
       public abstract Object execute(Object o, InternalContextAdapter context);
   
  +    /**
  +     * Tell whether the executor is alive by looking
  +     * at the value of the method.
  +     */
       public boolean isAlive()
       {
           if (method != null)
  
  
  
  1.2       +17 -0     
jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/GetExecutor.java
  
  Index: GetExecutor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/GetExecutor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- GetExecutor.java  2001/01/06 22:08:34     1.1
  +++ GetExecutor.java  2001/01/06 22:14:05     1.2
  @@ -59,10 +59,27 @@
   import org.apache.velocity.context.InternalContextAdapter;
   import org.apache.velocity.util.introspection.Introspector;
   
  +/**
  + * Executor that simply tries to execute a get(key)
  + * operation. This will try to find a get(key) method
  + * for any type of object, not just objects that
  + * implement the Map interface as was previously
  + * the case.
  + *
  + * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  + * @version $Id: GetExecutor.java,v 1.2 2001/01/06 22:14:05 jvanzyl Exp $
  + */
   public class GetExecutor extends AbstractExecutor
   {
  +    /**
  +     * Container to hold the 'key' part of 
  +     * get(key).
  +     */
       private Object[] args = new Object[1];
       
  +    /**
  +     * Default constructor.
  +     */
       public GetExecutor(Class c, String key)
           throws Exception
       {
  
  
  

Reply via email to