1 package org.codehaus.groovy.syntax.lexer; 2 3 import org.codehaus.groovy.syntax.ReadException; 4 import org.codehaus.groovy.syntax.Token; 5 6 14 15 public interface Lexer 16 { 17 18 19 23 24 public Lexer getDelegate(); 25 26 27 28 31 32 public Lexer getSource(); 33 34 35 36 40 41 public Token nextToken() throws ReadException, LexerException; 42 43 44 45 46 49 50 53 54 public void reset(); 55 56 57 58 61 62 public void delegate( Lexer to ); 63 64 65 66 69 70 public void undelegate(); 71 72 73 74 77 78 public boolean isDelegated(); 79 80 81 82 85 86 public void setSource( Lexer source ); 87 88 89 90 93 94 public void unsetSource( ); 95 96 97 98 101 102 public boolean isExternallySourced(); 103 104 105 106 107 110 111 114 115 public int getLine(); 116 117 118 119 122 123 public int getColumn(); 124 125 126 127 128 131 132 public char la() throws LexerException, ReadException; 133 134 135 136 139 140 public char la(int k) throws LexerException, ReadException; 141 142 143 144 147 148 public char consume() throws LexerException, ReadException; 149 150 151 } 152 | Popular Tags |