| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.aethersanctum.curlyml.Scanner
public class Scanner
scanner does nothing but pull tokens from the stream. Don't use this directly, use a Parser instead.
Parser| Nested Class Summary | |
|---|---|
static class | 
Scanner.Token
types of tokens we are interested in.  | 
| Constructor Summary | |
|---|---|
Scanner(java.io.InputStream is)
 | 
|
Scanner(java.io.Reader r)
 | 
|
| Method Summary | |
|---|---|
 int | 
getColumnNumber()
 | 
 Scanner.Token | 
getCurrentToken()
gets the current token  | 
 int | 
getLineNumber()
 | 
 java.lang.String | 
getString()
get body of last-gotten text token  | 
 Scanner.Token | 
getToken()
collect the next new token, assigns it to the current one  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Scanner(java.io.Reader r)
public Scanner(java.io.InputStream is)
| Method Detail | 
|---|
public int getLineNumber()
public int getColumnNumber()
public Scanner.Token getToken()
                       throws java.io.IOException,
                              SyntaxException
java.io.IOException
SyntaxExceptionpublic java.lang.String getString()
public Scanner.Token getCurrentToken()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||