|
||||||||||
| 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 p)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
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 qu,
int qp)
Calculates the column and line number of a given offset in the string. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InputInfo(InputParser p)
p - input parser, containing information on the current parsing state| Method Detail |
|---|
public java.lang.String file()
public int[] lineCol()
public static int[] lineCol(java.lang.String qu,
int qp)
qu - query stringqp - offset
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||