KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > freemarker > debug > EnvironmentSuspendedEvent


1 package freemarker.debug;
2
3 import java.util.EventObject JavaDoc;
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 2003/05/02 15:55:48 szegedia Exp $
10  */

11 public class EnvironmentSuspendedEvent extends EventObject JavaDoc
12 {
13     private final int line;
14     private final DebuggedEnvironment env;
15
16     public EnvironmentSuspendedEvent(Object JavaDoc source, int line, DebuggedEnvironment env)
17     {
18         super(source);
19         this.line = line;
20         this.env = env;
21     }
22
23     /**
24      * The line number in the template where the execution of the environment
25      * was suspended.
26      * @return int the line number
27      */

28     public int getLine()
29     {
30         return line;
31     }
32
33     /**
34      * The environment that was suspended
35      * @return DebuggedEnvironment
36      */

37     public DebuggedEnvironment getEnvironment()
38     {
39         return env;
40     }
41 }
42
Popular Tags