org.codehaus.groovy.syntax.lexer
Interface Delimiter

All Known Implementing Classes:
GroovyExpressionLexer, TextLexerBase

public interface Delimiter

An interface for Lexers that delimit content from a larger source.

Author:
Chris Poirier

Method Summary
 void delimit(boolean delimiter)
          Turns delimiting on or off.
 boolean isDelimited()
          Returns true if the lexer is applying its delimiter policy.
 boolean isFinished()
          Returns true if the lexer stream is dry.
 

Method Detail

delimit

public void delimit(boolean delimiter)
Turns delimiting on or off. This should affect la() and consume(). However, once the delimiter has been reached, this routine should have no effect.


isDelimited

public boolean isDelimited()
Returns true if the lexer is applying its delimiter policy.


isFinished

public boolean isFinished()
Returns true if the lexer stream is dry.



Copyright © 2003-2004 The Codehaus. All Rights Reserved.