uk.ac.bham.gloss
Interface Locator

All Known Subinterfaces:
Tokenizer
All Known Implementing Classes:
DocumentLocator, Gloss, Glosser, GlossException, StreamTokenizer, Token, TokenTokenizer

public interface Locator

Interface for an object that can identify the document and/or position where an error or other event has occurred. Copyright Richard Kaye 2007-8 for GLOSS, http://gloss.bham.ac.uk Usage permitted according to the GPL. No waranty.


Method Summary
 int col()
          column number, starting at 0; returns -1 if this data is not available.
 java.lang.String doc()
          document, file or URI name; returns null if this data is not available.
 int line()
          line number, starting at 1; returns -1 if this data is not available.
 

Method Detail

line

int line()
line number, starting at 1; returns -1 if this data is not available.


col

int col()
column number, starting at 0; returns -1 if this data is not available.


doc

java.lang.String doc()
document, file or URI name; returns null if this data is not available.