org.globus.cog.karajan.parser
Class SimpleLexer

java.lang.Object
  extended by org.globus.cog.karajan.parser.SimpleLexer
All Implemented Interfaces:
Lexer

public final class SimpleLexer
extends Object
implements Lexer


Constructor Summary
SimpleLexer(String str)
           
 
Method Summary
 String currentLine()
           
 int getIndex()
           
 int getLineNumber()
           
 boolean hasMoreChars()
           
 boolean hasMoreTokens()
           
 boolean isDigits()
           
 boolean isWhitespace()
           
 Object mark()
           
 char nextChar()
           
 String nextToken()
           
 char peekChar()
           
 char peekNextChar()
           
 String peekToken()
           
 void reset(Object mark)
           
 void skipChar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleLexer

public SimpleLexer(String str)
Method Detail

nextToken

public String nextToken()
Specified by:
nextToken in interface Lexer

peekToken

public String peekToken()
Specified by:
peekToken in interface Lexer

peekChar

public 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 boolean hasMoreChars()
Specified by:
hasMoreChars in interface Lexer

hasMoreTokens

public 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