net.sourceforge.templat.expr
Class ExprLexer

java.lang.Object
  extended by net.sourceforge.templat.expr.ExprLexer

 class ExprLexer
extends Object

Splits a string into tokens.

Author:
Chris Mosher

Nested Class Summary
(package private) static class ExprLexer.Token
          Represents a token returned by the enclosing ExprLexer.
 
Constructor Summary
ExprLexer(String stringToLex)
          Initializes this ExprLexer to split the given string into tokens.
 
Method Summary
 ExprLexer.Token getNextToken()
          Gets the next token from the input string.
 String toString()
          Gets the string being lexed, as passed into the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExprLexer

public ExprLexer(String stringToLex)
Initializes this ExprLexer to split the given string into tokens.

Parameters:
stringToLex -
Method Detail

toString

public String toString()
Gets the string being lexed, as passed into the constructor.

Overrides:
toString in class Object
Returns:
the string being lexed

getNextToken

public ExprLexer.Token getNextToken()
                             throws ExprLexingException
Gets the next token from the input string.

Returns:
the next Token
Throws:
ExprLexingException