org.globus.cog.karajan.parser
Class SimpleLexer
java.lang.Object
org.globus.cog.karajan.parser.SimpleLexer
- All Implemented Interfaces:
- Lexer
- public class SimpleLexer
- extends Object
- implements Lexer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleLexer
public SimpleLexer(String str)
nextToken
public String nextToken()
- Specified by:
nextToken in interface Lexer
peekToken
public String peekToken()
- Specified by:
peekToken in interface Lexer
peekChar
public final char peekChar()
- Specified by:
peekChar in interface Lexer
peekNextChar
public char peekNextChar()
- Specified by:
peekNextChar in interface Lexer
nextChar
public char nextChar()
- Specified by:
nextChar in interface Lexer
skipChar
public void skipChar()
- Specified by:
skipChar in interface Lexer
hasMoreChars
public final boolean hasMoreChars()
- Specified by:
hasMoreChars in interface Lexer
hasMoreTokens
public final boolean hasMoreTokens()
- Specified by:
hasMoreTokens in interface Lexer
getIndex
public int getIndex()
isWhitespace
public boolean isWhitespace()
- Specified by:
isWhitespace in interface Lexer
isDigits
public boolean isDigits()
- Specified by:
isDigits in interface Lexer
currentLine
public String currentLine()
- Specified by:
currentLine in interface Lexer
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber in interface Lexer
mark
public Object mark()
- Specified by:
mark in interface Lexer
reset
public void reset(Object mark)
- Specified by:
reset in interface Lexer