1 package com.quantum.sql.parser;
4 public static final char SEPARATOR = 'S';
5 public static final char SYMBOL = 'Y';
6 public static final char LITERAL = 'L';
7 public static final char IDENTIFIER = 'I';
8 public static final char COMMENT = 'C';
9 public static final char WHITESPACE = 'W';
10 public static final char NUMERIC = 'N';
11 public static final char END_OF_LINE = 'E';
17 public Token(char type, char value, int start) {
19 this.value = new Character(value).toString();
23 public Token(char type, String value, int start, int end) {
33 public int getStart() {
37 public int getType() {
41 public String getValue() {
45 public void setEnd(int end) {
49 public void setStart(int start) {
53 public void setType(char type) {
57 public void setValue(String value) {
60 public String toString() {
61 return type + " ->" + value + "<- [" + start + ", " + end + "]"; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$