Java org.eclipse.jdt.core.compiler IScanner fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.compiler IScanner fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.compiler IScanner.

The text is from its open source code.

Method

intgetCurrentTokenEndPosition()
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.
intgetCurrentTokenStartPosition()
Answers the starting position of the current token inside the original source.
intgetLineEnd(int lineNumber)
Answers the ending position of a given line number.
intgetLineNumber(int charPosition)
Answers a 1-based line number using the lines which have been encountered so far.
intgetLineStart(int lineNumber)
Answers the starting position of a given line number.
intgetNextToken()
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).
voidresetTo(int startPosition, int endPosition)
Reposition the scanner on some portion of the original source.
voidsetSource(char[] source)
Set the scanner source to process.