com.google.caja.lexer
Class JsLexer.WordClassifier

java.lang.Object
  extended by com.google.caja.lexer.JsLexer.WordClassifier
All Implemented Interfaces:
TokenStream<JsTokenType>
Enclosing class:
JsLexer

static class JsLexer.WordClassifier
extends java.lang.Object
implements TokenStream<JsTokenType>


Field Summary
private  TokenStream<JsTokenType> stream
           
 
Constructor Summary
JsLexer.WordClassifier(TokenStream<JsTokenType> stream)
           
 
Method Summary
 boolean hasNext()
          True if TokenStream.next() is safe to call.
 Token<JsTokenType> next()
          Returns the next value, and moves the stream position forward.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stream

private TokenStream<JsTokenType> stream
Constructor Detail

JsLexer.WordClassifier

public JsLexer.WordClassifier(TokenStream<JsTokenType> stream)
Method Detail

hasNext

public boolean hasNext()
                throws ParseException
Description copied from interface: TokenStream
True if TokenStream.next() is safe to call.

Specified by:
hasNext in interface TokenStream<JsTokenType>
Throws:
ParseException

next

public Token<JsTokenType> next()
                        throws ParseException
Description copied from interface: TokenStream
Returns the next value, and moves the stream position forward.

Specified by:
next in interface TokenStream<JsTokenType>
Throws:
ParseException


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0