Top Description Fields Constructors Methods
org.apache.commons.jexl2

public Class DebugInfo

extends Object
implements JexlInfo
Class Inheritance
All Implemented Interfaces
org.apache.commons.jexl2.JexlInfo

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

Field Summary

Modifier and TypeField and Description
private final int
column

column number.

private final int
line

line number.

private final String
name

name.

Constructor Summary

AccessConstructor and Description
public
DebugInfo(String
template name
tn
,
int
line number
l
,
int
column
c
)

Create info.

Method Summary

Modifier and TypeMethod and Description
public DebugInfo
debugInfo()

Implements org.apache.commons.jexl2.JexlInfo.debugInfo.

Gets the underlying debugging information.
public String
debugString()

Implements org.apache.commons.jexl2.JexlInfo.debugString.

Formats this information for debugging purpose.
public int

Returns:

the column.
getColumn
()

Gets the column number.

public int

Returns:

line number.
getLine
()

Gets the line number.

public String

Returns:

template name
getName
()

Gets the file/script/url name.

public String

Returns:

the formatted info
toString
()

Overrides java.lang.Object.toString.

Formats this info in the form 'name@line:column'.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

columnback to summary
private final int column

column number.

lineback to summary
private final int line

line number.

nameback to summary
private final String name

name.

Constructor Detail

DebugInfoback to summary
public DebugInfo(String tn, int l, int c)

Create info.

Parameters
tn:String

template name

l:int

line number

c:int

column

Method Detail

debugInfoback to summary
public DebugInfo debugInfo()

Implements org.apache.commons.jexl2.JexlInfo.debugInfo.

Doc from org.apache.commons.jexl2.JexlInfo.debugInfo.

Gets the underlying debugging information.

Returns:DebugInfo

a debug info instance

Since
2.1
debugStringback to summary
public String debugString()

Implements org.apache.commons.jexl2.JexlInfo.debugString.

Doc from org.apache.commons.jexl2.JexlInfo.debugString.

Formats this information for debugging purpose.

Returns:String

a human readable string.

getColumnback to summary
public int getColumn()

Gets the column number.

Returns:int

the column.

getLineback to summary
public int getLine()

Gets the line number.

Returns:int

line number.

getNameback to summary
public String getName()

Gets the file/script/url name.

Returns:String

template name

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Formats this info in the form 'name@line:column'.

Returns:String

the formatted info

Annotations
@Override