Example usage for Java org.eclipse.jdt.core.compiler IScanner fields, constructors, methods, implement or subclass
The text is from its open source code.
int | getCurrentTokenEndPosition() Answers the ending position of the current token inside the original source. |
char[] | getCurrentTokenSource() Answers the current identifier source, after unicode escape sequences have been translated into unicode characters. |
int | getCurrentTokenStartPosition() Answers the starting position of the current token inside the original source. |
int | getLineEnd(int lineNumber) Answers the ending position of a given line number. |
int | getLineNumber(int charPosition) Answers a 1-based line number using the lines which have been encountered so far. |
int | getLineStart(int lineNumber) Answers the starting position of a given line number. |
int | getNextToken() Read the next token in the source, and answers its ID as specified by ITerminalSymbols . |
char[] | getSource() Answers the original source being processed (not a copy of it). |
void | resetTo(int startPosition, int endPosition) Reposition the scanner on some portion of the original source. |
void | setSource(char[] source) Set the scanner source to process. |