blob: 360bb66caeb5b65cc9baef960ac269d84e04cf92 [file] [log] [blame]
package freemarker.debug;
import java.util.EventObject;
/**
* Event describing a suspension of an environment (ie because it hit a
* breakpoint).
* @author Attila Szegedi
*/
public class EnvironmentSuspendedEvent extends EventObject
{
private static final long serialVersionUID = 1L;
private final String name;
private final int line;
private final DebuggedEnvironment env;
public EnvironmentSuspendedEvent(Object source, String templateName, int line, DebuggedEnvironment env)
{
super(source);
this.name = templateName;
this.line = line;
this.env = env;
}
/**
* The name of the template where the execution of the environment
* was suspended
* @return String the template name
*/
public String getName()
{
return this.name;
}
/**
* The line number in the template where the execution of the environment
* was suspended.
* @return int the line number
*/
public int getLine()
{
return line;
}
/**
* The environment that was suspended
* @return DebuggedEnvironment
*/
public DebuggedEnvironment getEnvironment()
{
return env;
}
}