sjm.parse.tokens
Class SlashState

java.lang.Object
  |
  +--sjm.parse.tokens.TokenizerState
        |
        +--sjm.parse.tokens.SlashState

public class SlashState
extends TokenizerState

This state will either delegate to a comment-handling state, or return a token with just a slash in it.

Version:
1.0
Author:
Steven J. Metsker

Field Summary
protected  SlashSlashState slashSlashState
           
protected  SlashStarState slashStarState
           
 
Constructor Summary
SlashState()
           
 
Method Summary
 Token nextToken(java.io.PushbackReader r, int theSlash, Tokenizer t)
          Either delegate to a comment-handling state, or return a token with just a slash in it.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

slashStarState

protected SlashStarState slashStarState

slashSlashState

protected SlashSlashState slashSlashState
Constructor Detail

SlashState

public SlashState()
Method Detail

nextToken

public Token nextToken(java.io.PushbackReader r,
                       int theSlash,
                       Tokenizer t)
                throws java.io.IOException
Either delegate to a comment-handling state, or return a token with just a slash in it.
Overrides:
nextToken in class TokenizerState
Returns:
either just a slash token, or the results of delegating to a comment-handling state