|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.parser.TransformationCatalogTextScanner
public class TransformationCatalogTextScanner
Implements the scanner for reserved words and other tokens that are generated from the input stream for the Transformation Catalog.
| Field Summary | |
|---|---|
private LineNumberReader |
mInputReader
Stores the stream from which we are currently scanning. |
private int |
mLookAhead
Captures the look-ahead character. |
private Token |
mPreviousToken
Captures the previous token. |
| Constructor Summary | |
|---|---|
TransformationCatalogTextScanner(Reader reader)
Starts to scan the given stream. |
|
| Method Summary | |
|---|---|
int |
getLineNumber()
Obtains the current line number in the input stream from the outside. |
boolean |
hasMoreTokens()
Checks for the availability of more input. |
Token |
nextToken()
Obtains the next token from the input stream. |
private void |
skipWhitespace()
Skips any white space and comments in the input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private LineNumberReader mInputReader
private int mLookAhead
private Token mPreviousToken
| Constructor Detail |
|---|
public TransformationCatalogTextScanner(Reader reader)
throws IOException
reader - the reader stream from which we are reading the site catalog.
IOException| Method Detail |
|---|
public int getLineNumber()
private void skipWhitespace()
throws IOException
IOException
public boolean hasMoreTokens()
throws IOException
IOException
public Token nextToken()
throws IOException,
ScannerException
IOException - if something went wrong while reading
Exception - if a lexical error was encountered.
ScannerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||