Home » freemarker-2.3.13 » freemarker.debug » [javadoc | source]

    1   package freemarker.debug;
    2   
    3   import java.util.EventObject;
    4   
    5   /**
    6    * Event describing a suspension of an environment (ie because it hit a
    7    * breakpoint).
    8    * @author Attila Szegedi
    9    * @version $Id: EnvironmentSuspendedEvent.java,v 1.1.2.1 2006/11/27 07:54:19 szegedia Exp $
   10    */
   11   public class EnvironmentSuspendedEvent extends EventObject
   12   {
   13       private static final long serialVersionUID = 1L;
   14   
   15       private final int line;
   16       private final DebuggedEnvironment env;
   17   
   18       public EnvironmentSuspendedEvent(Object source, int line, DebuggedEnvironment env)
   19       {
   20           super(source);
   21           this.line = line;
   22           this.env = env;
   23       }
   24   
   25       /**
   26        * The line number in the template where the execution of the environment
   27        * was suspended.
   28        * @return int the line number
   29        */
   30       public int getLine()
   31       {
   32           return line;
   33       }
   34   
   35       /**
   36        * The environment that was suspended
   37        * @return DebuggedEnvironment
   38        */
   39       public DebuggedEnvironment getEnvironment()
   40       {
   41           return env;
   42       }
   43   }

Home » freemarker-2.3.13 » freemarker.debug » [javadoc | source]