org.apache.velocity.util.introspection
Class Info

java.lang.Object
  extended by org.apache.velocity.util.introspection.Info

public class Info
extends 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 191743 2005-06-21 23:22:20Z dlr $
Author:
Geir Magnusson Jr.

Constructor Summary
Info(String source, int line, int column)
           
 
Method Summary
 int getColumn()
           
 int getLine()
           
 String getTemplateName()
           
 String toString()
          Formats a textual representation of this object as SOURCE [line X, column Y].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Info

public Info(String source,
            int line,
            int column)
Parameters:
source - Usually a template name.
line - The line number from source.
column - The column number from source.
Method Detail

getTemplateName

public String getTemplateName()

getLine

public int getLine()

getColumn

public int getColumn()

toString

public String toString()
Formats a textual representation of this object as SOURCE [line X, column Y].

Overrides:
toString in class Object


Copyright © 2002 Apache Software Foundation. All Rights Reserved.