Class Info
- java.lang.Object
-
- org.apache.velocity.util.introspection.Info
-
- Direct Known Subclasses:
InvalidReferenceInfo
public class Info extends java.lang.Object
Little class to carry in info such as template name, line and column for information error reporting from the uberspector implementations- Version:
- $Id: Info.java 733416 2009-01-11 05:26:52Z byron $
-
-
Field Summary
Fields Modifier and Type Field Description private int
column
private int
line
private java.lang.String
templateName
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumn()
int
getLine()
java.lang.String
getTemplateName()
java.lang.String
toString()
Formats a textual representation of this object asSOURCE [line X, column Y]
.
-
-
-
Constructor Detail
-
Info
public Info(java.lang.String source, int line, int column)
- Parameters:
source
- Usually a template name.line
- The line number fromsource
.column
- The column number fromsource
.
-
Info
public Info(Node node)
-
Info
private Info()
Force callers to set the location information.
-
-
Method Detail
-
getTemplateName
public java.lang.String getTemplateName()
- Returns:
- The template name.
-
getLine
public int getLine()
- Returns:
- The line number.
-
getColumn
public int getColumn()
- Returns:
- The column number.
-
toString
public java.lang.String toString()
Formats a textual representation of this object asSOURCE [line X, column Y]
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- String representing this object.
- Since:
- 1.5
-
-