org.apache.velocity.util.introspection
Class Info
java.lang.Object
org.apache.velocity.util.introspection.Info
- 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 75960 2004-03-20 03:35:51Z dlr $
- Author:
- Geir Magnusson Jr.
Constructor Summary |
private |
Info()
Force callers to set the location information. |
|
Info(java.lang.String source,
int line,
int column)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
line
private int line
column
private int column
templateName
private java.lang.String templateName
Info
public Info(java.lang.String source,
int line,
int column)
- Parameters:
source
- Usually a template name.line
- The line number from source
.column
- The column number from source
.
Info
private Info()
- Force callers to set the location information.
getTemplateName
public java.lang.String getTemplateName()
getLine
public int getLine()
getColumn
public int getColumn()
toString
public java.lang.String toString()
- Formats a textual representation of this object as
SOURCE
[line X, column Y]
.
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.