|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.InputInfo
public final class InputInfo
This class contains the original query, its file reference, and line/column information.
Constructor Summary | |
---|---|
InputInfo(InputParser parser)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
file()
Returns the input reference. |
int |
hashCode()
|
int[] |
lineCol()
Returns an array with the line and column position of the associated expression. |
static int[] |
lineCol(java.lang.String query,
int pos)
Calculates the column and line number of a given offset in the string. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InputInfo(InputParser parser)
parser
- input parser, containing information on the current parsing stateMethod Detail |
---|
public java.lang.String file()
public int[] lineCol()
public static int[] lineCol(java.lang.String query, int pos)
query
- query stringpos
- query position
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |