Package freemarker.debug
Class Breakpoint
- java.lang.Object
-
- freemarker.debug.Breakpoint
-
- All Implemented Interfaces:
Serializable,Comparable
public class Breakpoint extends Object implements Serializable, Comparable
Represents a breakpoint location consisting of a template name and a line number.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Breakpoint(String templateName, int line)Creates a new breakpoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)booleanequals(Object o)intgetLine()Returns the line number of the breakpointStringgetLocationString()Returns the template name and the line number separated with a colonStringgetTemplateName()Returns the template name of the breakpointinthashCode()
-
-
-
Constructor Detail
-
Breakpoint
public Breakpoint(String templateName, int line)
Creates a new breakpoint.- Parameters:
templateName- the name of the templateline- 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 String getTemplateName()
Returns the template name of the breakpoint
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable
-
getLocationString
public String getLocationString()
Returns the template name and the line number separated with a colon
-
-