Package org.basex.util
Class InputInfo
- java.lang.Object
-
- org.basex.util.InputInfo
-
public final class InputInfo extends Object
This class contains information on the original query, which will be evaluated for error feedback and debugging purposes.- Author:
- BaseX Team 2005-23, BSD License, Christian Gruen
-
-
Constructor Summary
Constructors Constructor Description InputInfo(String path, int line, int col)
Constructor.InputInfo(InputParser parser)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
column()
Returns the column position.boolean
equals(Object object)
int
hashCode()
boolean
internal()
Returns the check flag (invoked byQueryError.get(InputInfo, Object...)
).void
internal(boolean value)
Activates light-weight error handling (invoked e.g.int
line()
Returns the line position.String
path()
Returns the input reference.String
toString()
-
-
-
Constructor Detail
-
InputInfo
public InputInfo(InputParser parser)
Constructor.- Parameters:
parser
- input parser, containing information on the current parsing state
-
InputInfo
public InputInfo(String path, int line, int col)
Constructor.- Parameters:
path
- input pathline
- linecol
- column
-
-
Method Detail
-
path
public String path()
Returns the input reference.- Returns:
- input reference
-
line
public int line()
Returns the line position.- Returns:
- line position
-
column
public int column()
Returns the column position.- Returns:
- column position
-
internal
public boolean internal()
Returns the check flag (invoked byQueryError.get(InputInfo, Object...)
).- Returns:
- check flag
-
internal
public void internal(boolean value)
Activates light-weight error handling (invoked e.g. bySeqType.cast( org.basex.query.value.Value, boolean, QueryContext, StaticContext, InputInfo)
).- Parameters:
value
- value to set
-
-