public final class InputInfo extends Object
Constructor and Description |
---|
InputInfo(InputParser parser)
Constructor.
|
InputInfo(String path,
int line,
int col)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check()
Returns the check flag (invoked by
QueryError.get(InputInfo, Object...) ). |
void |
check(boolean value)
Sets the check flag (invoked e.g. by
Castable.optimize(org.basex.query.QueryContext, org.basex.query.var.VarScope) ). |
int |
column()
Returns the column position.
|
boolean |
equals(Object object) |
int |
hashCode() |
int |
line()
Returns the line position.
|
String |
path()
Returns the input reference.
|
String |
toString() |
public InputInfo(InputParser parser)
parser
- input parser, containing information on the current parsing statepublic InputInfo(String path, int line, int col)
path
- input pathline
- linecol
- columnpublic String path()
public int line()
public int column()
public boolean check()
QueryError.get(InputInfo, Object...)
).public void check(boolean value)
Castable.optimize(org.basex.query.QueryContext, org.basex.query.var.VarScope)
).value
- value to setCopyright © 2005–2015 BaseX Team. All rights reserved.