001: /*
002: * Portions Copyright 2000-2007 Sun Microsystems, Inc. All Rights
003: * Reserved. Use is subject to license terms.
004: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
005: *
006: * This program is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU General Public License version
008: * 2 only, as published by the Free Software Foundation.
009: *
010: * This program is distributed in the hope that it will be useful, but
011: * WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * General Public License version 2 for more details (a copy is
014: * included at /legal/license.txt).
015: *
016: * You should have received a copy of the GNU General Public License
017: * version 2 along with this work; if not, write to the Free Software
018: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
019: * 02110-1301 USA
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
022: * Clara, CA 95054 or visit www.sun.com if you need additional
023: * information or have any questions.
024: */
025: package gov.nist.siplite.parser;
026:
027: import gov.nist.core.*;
028:
029: /**
030: * Token types.
031: */
032: public interface TokenTypes {
033: /** Start token type. */
034: public static final int START = LexerCore.START;
035: // Everything under this is reserved
036: /** End token type. */
037: public static final int END = LexerCore.END;
038: // End markder.
039: /** SIP protocol scheme token type. */
040: public static final int SIP = START + 3;
041: /** Registration method token type. */
042: public static final int REGISTER = START + 4;
043: /** Invitation method token type. */
044: public static final int INVITE = START + 5;
045: /** Acknowledgement response token type. */
046: public static final int ACK = START + 6;
047: /** Termination response token type. */
048: public static final int BYE = START + 7;
049: /** Options request token type. */
050: public static final int OPTIONS = START + 8;
051: /** Cancelation response token type. */
052: public static final int CANCEL = START + 9;
053: /** Error information response token type. */
054: public static final int ERROR_INFO = START + 10;
055: /** Reply message response token type. */
056: public static final int IN_REPLY_TO = START + 11;
057: /** MIME message version token type. */
058: public static final int MIME_VERSION = START + 12;
059: /** Alert information token type. */
060: public static final int ALERT_INFO = START + 13;
061: /** From message header token type. */
062: public static final int FROM = START + 14;
063: /** To message header token type. */
064: public static final int TO = START + 15;
065: /** Via message header token type. */
066: public static final int VIA = START + 16;
067: /** User agent message header token type. */
068: public static final int USER_AGENT = START + 17;
069: /** Server message header token type. */
070: public static final int SERVER = START + 18;
071: /** Accept encoding message header token type. */
072: public static final int ACCEPT_ENCODING = START + 19;
073: /** Accept types message header token type. */
074: public static final int ACCEPT = START + 20;
075: /** Allow message header token type. */
076: public static final int ALLOW = START + 21;
077: /** Message route header token type. */
078: public static final int ROUTE = START + 22;
079: /** Authorization header token type. */
080: public static final int AUTHORIZATION = START + 23;
081: /** Proxy authorization header token type. */
082: public static final int PROXY_AUTHORIZATION = START + 24;
083: /** Retry transmission header token type. */
084: public static final int RETRY_AFTER = START + 25;
085: /** Proxy required response token type. */
086: public static final int PROXY_REQUIRE = START + 26;
087: /** Content language header token type. */
088: public static final int CONTENT_LANGUAGE = START + 27;
089: /** Unsupported message token type. */
090: public static final int UNSUPPORTED = START + 28;
091: /** Supported message token type. */
092: public static final int SUPPORTED = START + 29;
093: /** Warning message token type. */
094: public static final int WARNING = START + 30;
095: /** Maximum forwards header token type. */
096: public static final int MAX_FORWARDS = START + 31;
097: /** Date header token type. */
098: public static final int DATE = START + 32;
099: /** Priority header token type. */
100: public static final int PRIORITY = START + 33;
101: /** Proxy authenticate header token type. */
102: public static final int PROXY_AUTHENTICATE = START + 34;
103: /** Content encoding header token type. */
104: public static final int CONTENT_ENCODING = START + 35;
105: /** Content length header token type. */
106: public static final int CONTENT_LENGTH = START + 36;
107: /** Subject header token type. */
108: public static final int SUBJECT = START + 37;
109: /** Content type header token type. */
110: public static final int CONTENT_TYPE = START + 38;
111: /** Contact header token type. */
112: public static final int CONTACT = START + 39;
113: /** Caller identification header token type. */
114: public static final int CALL_ID = START + 40;
115: /** Required header token type. */
116: public static final int REQUIRE = START + 41;
117: /** Expires header token type. */
118: public static final int EXPIRES = START + 42;
119: /** Encryption header token type. */
120: public static final int ENCRYPTION = START + 43;
121: /** Record routing header token type. */
122: public static final int RECORD_ROUTE = START + 44;
123: /** Organization header token type. */
124: public static final int ORGANIZATION = START + 45;
125: /** C-Sequence header token type. */
126: public static final int CSEQ = START + 46;
127: /** Accept language header token type. */
128: public static final int ACCEPT_LANGUAGE = START + 47;
129: /** WWW Authenticate header token type. */
130: public static final int WWW_AUTHENTICATE = START + 48;
131: /** Response key header token type. */
132: public static final int RESPONSE_KEY = START + 49;
133: /** Hide header token type. */
134: public static final int HIDE = START + 50;
135: /** Caller information header token type. */
136: public static final int CALL_INFO = START + 51;
137: /** Content disposition header token type. */
138: public static final int CONTENT_DISPOSITION = START + 52;
139: /** Subscription method token type. */
140: public static final int SUBSCRIBE = START + 53;
141: /** Notification method token type. */
142: public static final int NOTIFY = START + 54;
143: /** Timestamp header token type. */
144: public static final int TIMESTAMP = START + 55;
145: /** Subscription state header token type. */
146: public static final int SUBSCRIPTION_STATE = START + 56;
147: /** Telephone protocol scheme token type. */
148: public static final int TEL = START + 57;
149: /** Reply to message header token type. */
150: public static final int REPLY_TO = START + 58;
151: /** Reason header token type. */
152: public static final int REASON = START + 59;
153: /** R-sequence header token type. */
154: public static final int RSEQ = START + 60;
155: /** R-acknowledgement header token type. */
156: public static final int RACK = START + 61;
157: /** Minutes til expiration header token type. */
158: public static final int MIN_EXPIRES = START + 62;
159: /** Event header token type. */
160: public static final int EVENT = START + 63;
161: /** Authentication information token type. */
162: public static final int AUTHENTICATION_INFO = START + 64;
163: /** Allow events token type. */
164: public static final int ALLOW_EVENTS = START + 65;
165: /** Refer-To token type. */
166: public static final int REFER_TO = START + 66;
167: /** SIPS protocol scheme token type. */
168: public static final int SIPS = START + 67;
169: /** MESSAGE method token type. */
170: public static final int MESSAGE = START + 68;
171: /** REFER method token type. */
172: public static final int REFER = START + 69;
173: /** PRACK method token type. */
174: public static final int PRACK = START + 70;
175: /** INFO method token type. */
176: public static final int INFO = START + 71;
177: /** UPDATE method token type. */
178: public static final int UPDATE = START + 72;
179: /** PUBLISH method token type. */
180: public static final int PUBLISH = START + 73;
181: /** ACCEPT_CONTACT method token type. */
182: public static final int ACCEPT_CONTACT = START + 74;
183: /** Alphabetic token type. */
184: public static final int ALPHA = LexerCore.ALPHA;
185: /** Decimal digit token type. */
186: public static final int DIGIT = LexerCore.DIGIT;
187: /** Identifier token type. */
188: public static final int ID = LexerCore.ID;
189: /** Whitespace token type. */
190: public static final int WHITESPACE = LexerCore.WHITESPACE;
191: /** Escaped character (backslash) token type. */
192: public static final int BACKSLASH = LexerCore.BACKSLASH;
193: /** Quote character token type. */
194: public static final int QUOTE = LexerCore.QUOTE;
195: /** At sign token type. */
196: public static final int AT = LexerCore.AT;
197: /** Space character (' ') token type. */
198: public static final int SP = LexerCore.SP;
199: /** Horizontal tab token type. */
200: public static final int HT = LexerCore.HT;
201: /** Colon character token type. */
202: public static final int COLON = LexerCore.COLON;
203: /** Asterisk character token type. */
204: public static final int STAR = LexerCore.STAR;
205: /** Dollar sign character token type. */
206: public static final int DOLLAR = LexerCore.DOLLAR;
207: /** Plus sign character token type. */
208: public static final int PLUS = LexerCore.PLUS;
209: /** Hash mark character token type. */
210: public static final int POUND = LexerCore.POUND;
211: /** Minus sign character token type. */
212: public static final int MINUS = LexerCore.MINUS;
213: /** Double quote character token type. */
214: public static final int DOUBLEQUOTE = LexerCore.DOUBLEQUOTE;
215: /** Tilde character token type. */
216: public static final int TILDE = LexerCore.TILDE;
217: /** Back quote character token type. */
218: public static final int BACK_QUOTE = LexerCore.BACK_QUOTE;
219: /** Null token type. */
220: public static final int NULL = LexerCore.NULL;
221: /** Equals sign character token type. */
222: public static final int EQUALS = (int) '=';
223: /** Semicolon character token type. */
224: public static final int SEMICOLON = (int) ';';
225: /** Forward slash character token type. */
226: public static final int SLASH = (int) '/';
227: /** Left square bracket character token type. */
228: public static final int L_SQUARE_BRACKET = (int) '[';
229: /** Right square bracket character token type. */
230: public static final int R_SQUARE_BRACKET = (int) ']';
231: /** Right curly bracket character token type. */
232: public static final int R_CURLY = (int) '}';
233: /** Left curly bracket character token type. */
234: public static final int L_CURLY = (int) '{';
235: /** Carret character token type. */
236: public static final int HAT = (int) '^';
237: /** Vertical bar character token type. */
238: public static final int BAR = (int) '|';
239: /** Period character token type. */
240: public static final int DOT = (int) '.';
241: /** Exclamation character token type. */
242: public static final int EXCLAMATION = (int) '!';
243: /** Left paren character token type. */
244: public static final int LPAREN = (int) '(';
245: /** Right paren character token type. */
246: public static final int RPAREN = (int) ')';
247: /** Right angle bracket character token type. */
248: public static final int GREATER_THAN = (int) '>';
249: /** Left angle bracket character token type. */
250: public static final int LESS_THAN = (int) '<';
251: /** Percentage character token type. */
252: public static final int PERCENT = (int) '%';
253: /** Question mark character token type. */
254: public static final int QUESTION = (int) '?';
255: /** Ampersand character token type. */
256: public static final int AND = (int) '&';
257: /** Underscore character token type. */
258: public static final int UNDERSCORE = (int) '_';
259:
260: }
|