01: package antlr;
02:
03: /* ANTLR Translator Generator
04: * Project led by Terence Parr at http://www.cs.usfca.edu
05: * Software rights: http://www.antlr.org/license.html
06: */
07:
08: /** A token is minimally a token type. Subclasses can add the text matched
09: * for the token and line info.
10: */
11: public interface Token extends Cloneable {
12: // constants
13: int MIN_USER_TYPE = 4;
14: int NULL_TREE_LOOKAHEAD = 3;
15: int INVALID_TYPE = 0;
16: int EOF_TYPE = 1;
17: int SKIP = -1;
18:
19: public int getColumn();
20:
21: public void setColumn(int c);
22:
23: public int getLine();
24:
25: public void setLine(int l);
26:
27: public String getFilename();
28:
29: public void setFilename(String name);
30:
31: public String getText();
32:
33: public void setText(String t);
34:
35: public int getType();
36:
37: public void setType(int t);
38: }
|