1 package org.codehaus.groovy.syntax.lexer; 2 3 4 /** 5 * An interface for Lexers that delimit content from a larger source. 6 * 7 * @author Chris Poirier 8 */ 9 10 public interface Delimiter 11 { 12 13 14 /** 15 * Turns delimiting on or off. This should affect <code>la()</code> 16 * and <code>consume()</code>. However, once the delimiter has been 17 * reached, this routine should have no effect. 18 */ 19 20 public void delimit( boolean delimiter ); 21 22 23 24 /** 25 * Returns true if the lexer is applying its delimiter policy. 26 */ 27 28 public boolean isDelimited(); 29 30 31 32 /** 33 * Returns true if the lexer stream is dry. 34 */ 35 36 public boolean isFinished(); 37 38 } 39