org.apache.commons.jexl3
Class JexlInfo

java.lang.Object
  extended by org.apache.commons.jexl3.JexlInfo

public class JexlInfo
extends Object

Helper class to carry in info such as a url/file name, line and column for debugging information reporting.


Nested Class Summary
static interface JexlInfo.Handle
          Denotes objects that can expose a JexlInfo instance.
 
Field Summary
protected  int column
          column number.
protected  int line
          line number.
protected  String name
          name.
 
Constructor Summary
JexlInfo(String tn, int l, int c)
          Create info.
 
Method Summary
 int getColumn()
          Gets the column number.
 int getLine()
          Gets the line number.
 String getName()
          Gets the file/script/url name.
 String toString()
          Formats this info in the form 'name@line:column'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

line

protected final int line
line number.


column

protected final int column
column number.


name

protected final String name
name.

Constructor Detail

JexlInfo

public JexlInfo(String tn,
                int l,
                int c)
Create info.

Parameters:
tn - template name
l - line number
c - column
Method Detail

toString

public String toString()
Formats this info in the form 'name@line:column'.

Overrides:
toString in class Object
Returns:
the formatted info

getName

public String getName()
Gets the file/script/url name.

Returns:
template name

getLine

public int getLine()
Gets the line number.

Returns:
line number.

getColumn

public int getColumn()
Gets the column number.

Returns:
the column.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.