Package editor
Class GosuDocument.Scanner
java.lang.Object
editor.GosuDocument.Scanner
- Enclosing class:
- GosuDocument
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intThis fetches the ending location of the current token in the document.final intThis fetches the starting location of the current token in the document.intgetType()booleanisReservedWord(String strWord) voidvoidsetRange(int p0, int p1) Sets the range of the scanner.
-
Field Details
-
_p0
int _p0 -
_tokenizer
ISourceCodeTokenizer _tokenizer
-
-
Constructor Details
-
Scanner
Scanner(Reader reader, ITokenizerInstructor instructor)
-
-
Method Details
-
isReservedWord
-
setRange
Sets the range of the scanner. This should be called to reinitialize the scanner to the desired range of coverage.- Throws:
IOException
-
getStartOffset
public final int getStartOffset()This fetches the starting location of the current token in the document. -
getEndOffset
public final int getEndOffset()This fetches the ending location of the current token in the document. -
getType
public int getType() -
nextToken
- Throws:
IOException
-