Package org.basex.util
Class InputInfo
java.lang.Object
org.basex.util.InputInfo
This class contains information on the original query, which will be evaluated for
error feedback and debugging purposes.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the column position.booleaninthashCode()booleaninternal()Returns the check flag (invoked byQueryError.get(InputInfo, Object...)).voidinternal(boolean value) Activates light-weight error handling (invoked e.g.intline()Returns the line position.path()Returns the input reference.toString()
-
Constructor Details
-
InputInfo
Constructor.- Parameters:
parser- input parser, containing information on the current parsing state
-
InputInfo
Constructor.- Parameters:
path- input pathline- linecol- column
-
-
Method Details
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-