freemarker.debug
Class Breakpoint

java.lang.Object
  extended by freemarker.debug.Breakpoint
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Breakpoint
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Represents a breakpoint location consisting of a template name and a line number.

Version:
$Id: Breakpoint.java,v 1.1.2.1 2006/11/27 07:54:19 szegedia Exp $
Author:
Attila Szegedi
See Also:
Serialized Form

Constructor Summary
Breakpoint(java.lang.String templateName, int line)
          Creates a new breakpoint.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 int getLine()
          Returns the line number of the breakpoint
 java.lang.String getLocationString()
          Returns the template name and the line number separated with a colon
 java.lang.String getTemplateName()
          Returns the template name of the breakpoint
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Breakpoint

public Breakpoint(java.lang.String templateName,
                  int line)
Creates a new breakpoint.

Parameters:
templateName - the name of the template
line - the line number in the template where to put the breakpoint
Method Detail

getLine

public int getLine()
Returns the line number of the breakpoint


getTemplateName

public java.lang.String getTemplateName()
Returns the template name of the breakpoint


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getLocationString

public java.lang.String getLocationString()
Returns the template name and the line number separated with a colon