Package org.apache.commons.jexl3
Class JexlInfo
java.lang.Object
org.apache.commons.jexl3.JexlInfo
- Direct Known Subclasses:
JexlNode.Info
Helper class to carry information such as a url/file name, line and column for
debugging information reporting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Describes errors more precisely. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat
(int l, int c) Creates info reusing the name.detach()
static JexlInfo
from
(JexlScript script) Gets the info from a script.final int
Gets the column number.final int
getLine()
Gets the line number.final String
getName()
Gets the file/script/url name.toString()
Formats this info in the form 'name@line:column'.
-
Field Details
-
line
private final int lineline number. -
column
private final int columncolumn number. -
name
name.
-
-
Constructor Details
-
JexlInfo
Create info.- Parameters:
source
- source namel
- line numberc
- column number
-
JexlInfo
public JexlInfo()Create an information structure for dynamic set/get/invoke/new.This gathers the class, method and line number of the first calling method outside of o.a.c.jexl3.
-
JexlInfo
The copy constructor.- Parameters:
copy
- the instance to copy
-
-
Method Details
-
getDetail
- Returns:
- the detailed information in case of an error
-
at
Creates info reusing the name.- Parameters:
l
- the linec
- the column- Returns:
- a new info instance
-
toString
Formats this info in the form 'name@line:column'. -
getName
Gets the file/script/url name.- Returns:
- template name
-
getLine
public final int getLine()Gets the line number.- Returns:
- line number.
-
getColumn
public final int getColumn()Gets the column number.- Returns:
- the column.
-
detach
- Returns:
- this instance or a copy without any decorations
-
from
Gets the info from a script.- Parameters:
script
- the script- Returns:
- the info
-