org.owasp.orizon.twilight.parser
Class TwilightLexer

java.lang.Object
  extended by org.owasp.orizon.twilight.parser.TwilightLexer
All Implemented Interfaces:
TwilightConstants

public class TwilightLexer
extends java.lang.Object
implements TwilightConstants

Token Manager


Field Summary
 
Fields inherited from interface org.owasp.orizon.twilight.parser.TwilightConstants
COMMAND, CRAWL, CRAWLCOMMAND, DEFAULT, EOF, FILENAME, nodeNames, QUIT, QUITCOMMAND, STRING_LITERAL, tokenImage, VERSION
 
Constructor Summary
TwilightLexer(JavaCharStream stream)
          Constructor.
TwilightLexer(JavaCharStream stream, int lexState)
          Constructor.
 
Method Summary
 java.lang.String getInputSource()
           
 Token getNextToken()
          Get the next Token.
 void setDebugStream(java.io.PrintStream ds)
          Set debug output.
 void setInputSource(java.lang.String inputSource)
           
 void SwitchTo(int lexState)
          Switch to specified lex state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwilightLexer

public TwilightLexer(JavaCharStream stream)
Constructor.


TwilightLexer

public TwilightLexer(JavaCharStream stream,
                     int lexState)
Constructor.

Method Detail

setDebugStream

public void setDebugStream(java.io.PrintStream ds)
Set debug output.


getInputSource

public java.lang.String getInputSource()

setInputSource

public void setInputSource(java.lang.String inputSource)

SwitchTo

public void SwitchTo(int lexState)
Switch to specified lex state.


getNextToken

public Token getNextToken()
Get the next Token.