Source Code Cross Referenced for FormSpecParserTokenManager.java in  » Swing-Library » abeille-forms-designer » com » jeta » forms » gui » common » parsers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Swing Library » abeille forms designer » com.jeta.forms.gui.common.parsers 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* Generated By:JavaCC: Do not edit this line. FormSpecParserTokenManager.java */
002:        package com.jeta.forms.gui.common.parsers;
003:
004:        public class FormSpecParserTokenManager implements 
005:                FormSpecParserConstants {
006:            public java.io.PrintStream debugStream = System.out;
007:
008:            public void setDebugStream(java.io.PrintStream ds) {
009:                debugStream = ds;
010:            }
011:
012:            private final int jjStopStringLiteralDfa_0(int pos, long active0) {
013:                switch (pos) {
014:                default:
015:                    return -1;
016:                }
017:            }
018:
019:            private final int jjStartNfa_0(int pos, long active0) {
020:                return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0),
021:                        pos + 1);
022:            }
023:
024:            private final int jjStopAtPos(int pos, int kind) {
025:                jjmatchedKind = kind;
026:                jjmatchedPos = pos;
027:                return pos + 1;
028:            }
029:
030:            private final int jjStartNfaWithStates_0(int pos, int kind,
031:                    int state) {
032:                jjmatchedKind = kind;
033:                jjmatchedPos = pos;
034:                try {
035:                    curChar = input_stream.readChar();
036:                } catch (java.io.IOException e) {
037:                    return pos + 1;
038:                }
039:                return jjMoveNfa_0(state, pos + 1);
040:            }
041:
042:            private final int jjMoveStringLiteralDfa0_0() {
043:                switch (curChar) {
044:                case 10:
045:                    return jjStopAtPos(0, 4);
046:                case 40:
047:                    return jjStopAtPos(0, 46);
048:                case 41:
049:                    return jjStopAtPos(0, 41);
050:                case 58:
051:                    return jjStopAtPos(0, 12);
052:                case 59:
053:                    return jjStopAtPos(0, 11);
054:                case 66:
055:                case 98:
056:                    jjmatchedKind = 23;
057:                    return jjMoveStringLiteralDfa1_0(0x1000000L);
058:                case 67:
059:                case 99:
060:                    jjmatchedKind = 15;
061:                    return jjMoveStringLiteralDfa1_0(0x100010000L);
062:                case 68:
063:                case 100:
064:                    jjmatchedKind = 37;
065:                    return jjMoveStringLiteralDfa1_0(0x4038000000L);
066:                case 70:
067:                case 102:
068:                    jjmatchedKind = 19;
069:                    return jjMoveStringLiteralDfa1_0(0x100000L);
070:                case 71:
071:                case 103:
072:                    jjmatchedKind = 45;
073:                    return jjMoveStringLiteralDfa1_0(0x100000000000L);
074:                case 73:
075:                case 105:
076:                    return jjMoveStringLiteralDfa1_0(0x40000000L);
077:                case 76:
078:                case 108:
079:                    jjmatchedKind = 13;
080:                    return jjMoveStringLiteralDfa1_0(0x4000L);
081:                case 77:
082:                case 109:
083:                    jjmatchedKind = 33;
084:                    return jjMoveStringLiteralDfa1_0(0x18480000000L);
085:                case 78:
086:                case 110:
087:                    jjmatchedKind = 43;
088:                    return jjMoveStringLiteralDfa1_0(0x40000000000L);
089:                case 80:
090:                case 112:
091:                    jjmatchedKind = 35;
092:                    return jjMoveStringLiteralDfa1_0(0x1006000000L);
093:                case 82:
094:                case 114:
095:                    jjmatchedKind = 17;
096:                    return jjMoveStringLiteralDfa1_0(0x40000L);
097:                case 84:
098:                case 116:
099:                    jjmatchedKind = 21;
100:                    return jjMoveStringLiteralDfa1_0(0x400000L);
101:                default:
102:                    return jjMoveNfa_0(0, 0);
103:                }
104:            }
105:
106:            private final int jjMoveStringLiteralDfa1_0(long active0) {
107:                try {
108:                    curChar = input_stream.readChar();
109:                } catch (java.io.IOException e) {
110:                    jjStopStringLiteralDfa_0(0, active0);
111:                    return 1;
112:                }
113:                switch (curChar) {
114:                case 65:
115:                case 97:
116:                    return jjMoveStringLiteralDfa2_0(active0, 0x10000000000L);
117:                case 69:
118:                case 101:
119:                    return jjMoveStringLiteralDfa2_0(active0, 0x4000014000L);
120:                case 73:
121:                case 105:
122:                    return jjMoveStringLiteralDfa2_0(active0, 0x8400140000L);
123:                case 76:
124:                case 108:
125:                    return jjMoveStringLiteralDfa2_0(active0, 0x38000000L);
126:                case 77:
127:                case 109:
128:                    if ((active0 & 0x80000000L) != 0L)
129:                        return jjStopAtPos(1, 31);
130:                    else if ((active0 & 0x100000000L) != 0L)
131:                        return jjStopAtPos(1, 32);
132:                    break;
133:                case 78:
134:                case 110:
135:                    if ((active0 & 0x40000000L) != 0L)
136:                        return jjStopAtPos(1, 30);
137:                    break;
138:                case 79:
139:                case 111:
140:                    return jjMoveStringLiteralDfa2_0(active0, 0x40001400000L);
141:                case 82:
142:                case 114:
143:                    return jjMoveStringLiteralDfa2_0(active0, 0x101000000000L);
144:                case 84:
145:                case 116:
146:                    if ((active0 & 0x4000000L) != 0L)
147:                        return jjStopAtPos(1, 26);
148:                    break;
149:                case 88:
150:                case 120:
151:                    if ((active0 & 0x2000000L) != 0L)
152:                        return jjStopAtPos(1, 25);
153:                    break;
154:                default:
155:                    break;
156:                }
157:                return jjStartNfa_0(0, active0);
158:            }
159:
160:            private final int jjMoveStringLiteralDfa2_0(long old0, long active0) {
161:                if (((active0 &= old0)) == 0L)
162:                    return jjStartNfa_0(0, old0);
163:                try {
164:                    curChar = input_stream.readChar();
165:                } catch (java.io.IOException e) {
166:                    jjStopStringLiteralDfa_0(1, active0);
167:                    return 2;
168:                }
169:                switch (curChar) {
170:                case 69:
171:                case 101:
172:                    return jjMoveStringLiteralDfa3_0(active0, 0x1000000000L);
173:                case 70:
174:                case 102:
175:                    return jjMoveStringLiteralDfa3_0(active0, 0x4000004000L);
176:                case 71:
177:                case 103:
178:                    return jjMoveStringLiteralDfa3_0(active0, 0x40000040000L);
179:                case 76:
180:                case 108:
181:                    return jjMoveStringLiteralDfa3_0(active0, 0x100000L);
182:                case 78:
183:                case 110:
184:                    if ((active0 & 0x400000000L) != 0L) {
185:                        jjmatchedKind = 34;
186:                        jjmatchedPos = 2;
187:                    }
188:                    return jjMoveStringLiteralDfa3_0(active0, 0x8000010000L);
189:                case 79:
190:                case 111:
191:                    return jjMoveStringLiteralDfa3_0(active0, 0x100000000000L);
192:                case 80:
193:                case 112:
194:                    if ((active0 & 0x400000L) != 0L)
195:                        return jjStopAtPos(2, 22);
196:                    break;
197:                case 84:
198:                case 116:
199:                    return jjMoveStringLiteralDfa3_0(active0, 0x1000000L);
200:                case 85:
201:                case 117:
202:                    if ((active0 & 0x8000000L) != 0L) {
203:                        jjmatchedKind = 27;
204:                        jjmatchedPos = 2;
205:                    }
206:                    return jjMoveStringLiteralDfa3_0(active0, 0x30000000L);
207:                case 88:
208:                case 120:
209:                    return jjMoveStringLiteralDfa3_0(active0, 0x10000000000L);
210:                default:
211:                    break;
212:                }
213:                return jjStartNfa_0(1, active0);
214:            }
215:
216:            private final int jjMoveStringLiteralDfa3_0(long old0, long active0) {
217:                if (((active0 &= old0)) == 0L)
218:                    return jjStartNfa_0(1, old0);
219:                try {
220:                    curChar = input_stream.readChar();
221:                } catch (java.io.IOException e) {
222:                    jjStopStringLiteralDfa_0(2, active0);
223:                    return 3;
224:                }
225:                switch (curChar) {
226:                case 40:
227:                    if ((active0 & 0x8000000000L) != 0L)
228:                        return jjStopAtPos(3, 39);
229:                    else if ((active0 & 0x10000000000L) != 0L)
230:                        return jjStopAtPos(3, 40);
231:                    break;
232:                case 65:
233:                case 97:
234:                    return jjMoveStringLiteralDfa4_0(active0, 0x4000000000L);
235:                case 70:
236:                case 102:
237:                    if ((active0 & 0x1000000000L) != 0L)
238:                        return jjStopAtPos(3, 36);
239:                    break;
240:                case 72:
241:                case 104:
242:                    return jjMoveStringLiteralDfa4_0(active0, 0x40000L);
243:                case 76:
244:                case 108:
245:                    if ((active0 & 0x100000L) != 0L)
246:                        return jjStopAtPos(3, 20);
247:                    break;
248:                case 82:
249:                case 114:
250:                    return jjMoveStringLiteralDfa4_0(active0, 0x40000000000L);
251:                case 84:
252:                case 116:
253:                    if ((active0 & 0x4000L) != 0L)
254:                        return jjStopAtPos(3, 14);
255:                    return jjMoveStringLiteralDfa4_0(active0, 0x1010000L);
256:                case 87:
257:                case 119:
258:                    if ((active0 & 0x100000000000L) != 0L)
259:                        return jjStopAtPos(3, 44);
260:                    break;
261:                case 88:
262:                case 120:
263:                    if ((active0 & 0x10000000L) != 0L)
264:                        return jjStopAtPos(3, 28);
265:                    break;
266:                case 89:
267:                case 121:
268:                    if ((active0 & 0x20000000L) != 0L)
269:                        return jjStopAtPos(3, 29);
270:                    break;
271:                default:
272:                    break;
273:                }
274:                return jjStartNfa_0(2, active0);
275:            }
276:
277:            private final int jjMoveStringLiteralDfa4_0(long old0, long active0) {
278:                if (((active0 &= old0)) == 0L)
279:                    return jjStartNfa_0(2, old0);
280:                try {
281:                    curChar = input_stream.readChar();
282:                } catch (java.io.IOException e) {
283:                    jjStopStringLiteralDfa_0(3, active0);
284:                    return 4;
285:                }
286:                switch (curChar) {
287:                case 69:
288:                case 101:
289:                    return jjMoveStringLiteralDfa5_0(active0, 0x10000L);
290:                case 79:
291:                case 111:
292:                    return jjMoveStringLiteralDfa5_0(active0, 0x40001000000L);
293:                case 84:
294:                case 116:
295:                    if ((active0 & 0x40000L) != 0L)
296:                        return jjStopAtPos(4, 18);
297:                    break;
298:                case 85:
299:                case 117:
300:                    return jjMoveStringLiteralDfa5_0(active0, 0x4000000000L);
301:                default:
302:                    break;
303:                }
304:                return jjStartNfa_0(3, active0);
305:            }
306:
307:            private final int jjMoveStringLiteralDfa5_0(long old0, long active0) {
308:                if (((active0 &= old0)) == 0L)
309:                    return jjStartNfa_0(3, old0);
310:                try {
311:                    curChar = input_stream.readChar();
312:                } catch (java.io.IOException e) {
313:                    jjStopStringLiteralDfa_0(4, active0);
314:                    return 5;
315:                }
316:                switch (curChar) {
317:                case 76:
318:                case 108:
319:                    return jjMoveStringLiteralDfa6_0(active0, 0x4000000000L);
320:                case 77:
321:                case 109:
322:                    if ((active0 & 0x1000000L) != 0L)
323:                        return jjStopAtPos(5, 24);
324:                    break;
325:                case 82:
326:                case 114:
327:                    if ((active0 & 0x10000L) != 0L)
328:                        return jjStopAtPos(5, 16);
329:                    break;
330:                case 87:
331:                case 119:
332:                    if ((active0 & 0x40000000000L) != 0L)
333:                        return jjStopAtPos(5, 42);
334:                    break;
335:                default:
336:                    break;
337:                }
338:                return jjStartNfa_0(4, active0);
339:            }
340:
341:            private final int jjMoveStringLiteralDfa6_0(long old0, long active0) {
342:                if (((active0 &= old0)) == 0L)
343:                    return jjStartNfa_0(4, old0);
344:                try {
345:                    curChar = input_stream.readChar();
346:                } catch (java.io.IOException e) {
347:                    jjStopStringLiteralDfa_0(5, active0);
348:                    return 6;
349:                }
350:                switch (curChar) {
351:                case 84:
352:                case 116:
353:                    if ((active0 & 0x4000000000L) != 0L)
354:                        return jjStopAtPos(6, 38);
355:                    break;
356:                default:
357:                    break;
358:                }
359:                return jjStartNfa_0(5, active0);
360:            }
361:
362:            private final void jjCheckNAdd(int state) {
363:                if (jjrounds[state] != jjround) {
364:                    jjstateSet[jjnewStateCnt++] = state;
365:                    jjrounds[state] = jjround;
366:                }
367:            }
368:
369:            private final void jjAddStates(int start, int end) {
370:                do {
371:                    jjstateSet[jjnewStateCnt++] = jjnextStates[start];
372:                } while (start++ != end);
373:            }
374:
375:            private final void jjCheckNAddTwoStates(int state1, int state2) {
376:                jjCheckNAdd(state1);
377:                jjCheckNAdd(state2);
378:            }
379:
380:            private final void jjCheckNAddStates(int start, int end) {
381:                do {
382:                    jjCheckNAdd(jjnextStates[start]);
383:                } while (start++ != end);
384:            }
385:
386:            private final void jjCheckNAddStates(int start) {
387:                jjCheckNAdd(jjnextStates[start]);
388:                jjCheckNAdd(jjnextStates[start + 1]);
389:            }
390:
391:            static final long[] jjbitVec0 = { 0x0L, 0x0L, 0xffffffffffffffffL,
392:                    0xffffffffffffffffL };
393:
394:            private final int jjMoveNfa_0(int startState, int curPos) {
395:                int[] nextStates;
396:                int startsAt = 0;
397:                jjnewStateCnt = 27;
398:                int i = 1;
399:                jjstateSet[0] = startState;
400:                int j, kind = 0x7fffffff;
401:                for (;;) {
402:                    if (++jjround == 0x7fffffff)
403:                        ReInitRounds();
404:                    if (curChar < 64) {
405:                        long l = 1L << curChar;
406:                        MatchLoop: do {
407:                            switch (jjstateSet[--i]) {
408:                            case 0:
409:                                if ((0x3ff000000000000L & l) != 0L) {
410:                                    if (kind > 5)
411:                                        kind = 5;
412:                                    jjCheckNAddStates(0, 6);
413:                                } else if (curChar == 39)
414:                                    jjCheckNAddStates(7, 9);
415:                                else if (curChar == 46)
416:                                    jjCheckNAdd(1);
417:                                break;
418:                            case 1:
419:                                if ((0x3ff000000000000L & l) == 0L)
420:                                    break;
421:                                if (kind > 6)
422:                                    kind = 6;
423:                                jjCheckNAddTwoStates(1, 2);
424:                                break;
425:                            case 3:
426:                                if ((0x280000000000L & l) != 0L)
427:                                    jjCheckNAdd(4);
428:                                break;
429:                            case 4:
430:                                if ((0x3ff000000000000L & l) == 0L)
431:                                    break;
432:                                if (kind > 6)
433:                                    kind = 6;
434:                                jjCheckNAdd(4);
435:                                break;
436:                            case 5:
437:                                if (curChar == 39)
438:                                    jjCheckNAddStates(7, 9);
439:                                break;
440:                            case 6:
441:                                if ((0xffffff7fffffffffL & l) != 0L)
442:                                    jjCheckNAddStates(7, 9);
443:                                break;
444:                            case 7:
445:                                if (curChar == 39)
446:                                    jjCheckNAddStates(10, 12);
447:                                break;
448:                            case 8:
449:                                if (curChar == 39)
450:                                    jjstateSet[jjnewStateCnt++] = 7;
451:                                break;
452:                            case 9:
453:                                if ((0xffffff7fffffffffL & l) != 0L)
454:                                    jjCheckNAddStates(10, 12);
455:                                break;
456:                            case 10:
457:                                if (curChar == 39 && kind > 8)
458:                                    kind = 8;
459:                                break;
460:                            case 11:
461:                                if ((0x3ff000000000000L & l) == 0L)
462:                                    break;
463:                                if (kind > 5)
464:                                    kind = 5;
465:                                jjCheckNAddStates(0, 6);
466:                                break;
467:                            case 12:
468:                                if ((0x3ff000000000000L & l) == 0L)
469:                                    break;
470:                                if (kind > 5)
471:                                    kind = 5;
472:                                jjCheckNAdd(12);
473:                                break;
474:                            case 13:
475:                                if ((0x3ff000000000000L & l) != 0L)
476:                                    jjCheckNAddTwoStates(13, 14);
477:                                break;
478:                            case 14:
479:                                if (curChar == 46)
480:                                    jjCheckNAdd(15);
481:                                break;
482:                            case 15:
483:                                if ((0x3ff000000000000L & l) == 0L)
484:                                    break;
485:                                if (kind > 6)
486:                                    kind = 6;
487:                                jjCheckNAddTwoStates(15, 16);
488:                                break;
489:                            case 17:
490:                                if ((0x280000000000L & l) != 0L)
491:                                    jjCheckNAdd(18);
492:                                break;
493:                            case 18:
494:                                if ((0x3ff000000000000L & l) == 0L)
495:                                    break;
496:                                if (kind > 6)
497:                                    kind = 6;
498:                                jjCheckNAdd(18);
499:                                break;
500:                            case 19:
501:                                if ((0x3ff000000000000L & l) != 0L)
502:                                    jjCheckNAddTwoStates(19, 20);
503:                                break;
504:                            case 21:
505:                                if ((0x280000000000L & l) != 0L)
506:                                    jjCheckNAdd(22);
507:                                break;
508:                            case 22:
509:                                if ((0x3ff000000000000L & l) == 0L)
510:                                    break;
511:                                if (kind > 6)
512:                                    kind = 6;
513:                                jjCheckNAdd(22);
514:                                break;
515:                            case 23:
516:                                if ((0x3ff000000000000L & l) == 0L)
517:                                    break;
518:                                if (kind > 6)
519:                                    kind = 6;
520:                                jjCheckNAddTwoStates(23, 24);
521:                                break;
522:                            case 25:
523:                                if ((0x280000000000L & l) != 0L)
524:                                    jjCheckNAdd(26);
525:                                break;
526:                            case 26:
527:                                if ((0x3ff000000000000L & l) == 0L)
528:                                    break;
529:                                if (kind > 6)
530:                                    kind = 6;
531:                                jjCheckNAdd(26);
532:                                break;
533:                            default:
534:                                break;
535:                            }
536:                        } while (i != startsAt);
537:                    } else if (curChar < 128) {
538:                        long l = 1L << (curChar & 077);
539:                        MatchLoop: do {
540:                            switch (jjstateSet[--i]) {
541:                            case 2:
542:                                if ((0x2000000020L & l) != 0L)
543:                                    jjAddStates(13, 14);
544:                                break;
545:                            case 6:
546:                                jjCheckNAddStates(7, 9);
547:                                break;
548:                            case 9:
549:                                jjCheckNAddStates(10, 12);
550:                                break;
551:                            case 16:
552:                                if ((0x2000000020L & l) != 0L)
553:                                    jjAddStates(15, 16);
554:                                break;
555:                            case 20:
556:                                if ((0x2000000020L & l) != 0L)
557:                                    jjAddStates(17, 18);
558:                                break;
559:                            case 24:
560:                                if ((0x2000000020L & l) != 0L)
561:                                    jjAddStates(19, 20);
562:                                break;
563:                            default:
564:                                break;
565:                            }
566:                        } while (i != startsAt);
567:                    } else {
568:                        int i2 = (curChar & 0xff) >> 6;
569:                        long l2 = 1L << (curChar & 077);
570:                        MatchLoop: do {
571:                            switch (jjstateSet[--i]) {
572:                            case 6:
573:                                if ((jjbitVec0[i2] & l2) != 0L)
574:                                    jjCheckNAddStates(7, 9);
575:                                break;
576:                            case 9:
577:                                if ((jjbitVec0[i2] & l2) != 0L)
578:                                    jjCheckNAddStates(10, 12);
579:                                break;
580:                            default:
581:                                break;
582:                            }
583:                        } while (i != startsAt);
584:                    }
585:                    if (kind != 0x7fffffff) {
586:                        jjmatchedKind = kind;
587:                        jjmatchedPos = curPos;
588:                        kind = 0x7fffffff;
589:                    }
590:                    ++curPos;
591:                    if ((i = jjnewStateCnt) == (startsAt = 27 - (jjnewStateCnt = startsAt)))
592:                        return curPos;
593:                    try {
594:                        curChar = input_stream.readChar();
595:                    } catch (java.io.IOException e) {
596:                        return curPos;
597:                    }
598:                }
599:            }
600:
601:            static final int[] jjnextStates = { 12, 13, 14, 19, 20, 23, 24, 6,
602:                    8, 10, 8, 9, 10, 3, 4, 17, 18, 21, 22, 25, 26, };
603:            public static final String[] jjstrLiteralImages = { "", null, null,
604:                    null, "\12", null, null, null, null, null, null, "\73",
605:                    "\72", null, null, null, null, null, null, null, null,
606:                    null, null, null, null, null, null, null, null, null, null,
607:                    null, null, null, null, null, null, null, null, null, null,
608:                    "\51", null, null, null, null, "\50", };
609:            public static final String[] lexStateNames = { "DEFAULT", };
610:            static final long[] jjtoToken = { 0x7ffffffff971L, };
611:            static final long[] jjtoSkip = { 0xeL, };
612:            protected SimpleCharStream input_stream;
613:            private final int[] jjrounds = new int[27];
614:            private final int[] jjstateSet = new int[54];
615:            protected char curChar;
616:
617:            public FormSpecParserTokenManager(SimpleCharStream stream) {
618:                if (SimpleCharStream.staticFlag)
619:                    throw new Error(
620:                            "ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
621:                input_stream = stream;
622:            }
623:
624:            public FormSpecParserTokenManager(SimpleCharStream stream,
625:                    int lexState) {
626:                this (stream);
627:                SwitchTo(lexState);
628:            }
629:
630:            public void ReInit(SimpleCharStream stream) {
631:                jjmatchedPos = jjnewStateCnt = 0;
632:                curLexState = defaultLexState;
633:                input_stream = stream;
634:                ReInitRounds();
635:            }
636:
637:            private final void ReInitRounds() {
638:                int i;
639:                jjround = 0x80000001;
640:                for (i = 27; i-- > 0;)
641:                    jjrounds[i] = 0x80000000;
642:            }
643:
644:            public void ReInit(SimpleCharStream stream, int lexState) {
645:                ReInit(stream);
646:                SwitchTo(lexState);
647:            }
648:
649:            public void SwitchTo(int lexState) {
650:                if (lexState >= 1 || lexState < 0)
651:                    throw new TokenMgrError(
652:                            "Error: Ignoring invalid lexical state : "
653:                                    + lexState + ". State unchanged.",
654:                            TokenMgrError.INVALID_LEXICAL_STATE);
655:                else
656:                    curLexState = lexState;
657:            }
658:
659:            protected Token jjFillToken() {
660:                Token t = Token.newToken(jjmatchedKind);
661:                t.kind = jjmatchedKind;
662:                String im = jjstrLiteralImages[jjmatchedKind];
663:                t.image = (im == null) ? input_stream.GetImage() : im;
664:                t.beginLine = input_stream.getBeginLine();
665:                t.beginColumn = input_stream.getBeginColumn();
666:                t.endLine = input_stream.getEndLine();
667:                t.endColumn = input_stream.getEndColumn();
668:                return t;
669:            }
670:
671:            int curLexState = 0;
672:            int defaultLexState = 0;
673:            int jjnewStateCnt;
674:            int jjround;
675:            int jjmatchedPos;
676:            int jjmatchedKind;
677:
678:            public Token getNextToken() {
679:                int kind;
680:                Token specialToken = null;
681:                Token matchedToken;
682:                int curPos = 0;
683:
684:                EOFLoop: for (;;) {
685:                    try {
686:                        curChar = input_stream.BeginToken();
687:                    } catch (java.io.IOException e) {
688:                        jjmatchedKind = 0;
689:                        matchedToken = jjFillToken();
690:                        return matchedToken;
691:                    }
692:
693:                    try {
694:                        input_stream.backup(0);
695:                        while (curChar <= 32
696:                                && (0x100002200L & (1L << curChar)) != 0L)
697:                            curChar = input_stream.BeginToken();
698:                    } catch (java.io.IOException e1) {
699:                        continue EOFLoop;
700:                    }
701:                    jjmatchedKind = 0x7fffffff;
702:                    jjmatchedPos = 0;
703:                    curPos = jjMoveStringLiteralDfa0_0();
704:                    if (jjmatchedKind != 0x7fffffff) {
705:                        if (jjmatchedPos + 1 < curPos)
706:                            input_stream.backup(curPos - jjmatchedPos - 1);
707:                        if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {
708:                            matchedToken = jjFillToken();
709:                            return matchedToken;
710:                        } else {
711:                            continue EOFLoop;
712:                        }
713:                    }
714:                    int error_line = input_stream.getEndLine();
715:                    int error_column = input_stream.getEndColumn();
716:                    String error_after = null;
717:                    boolean EOFSeen = false;
718:                    try {
719:                        input_stream.readChar();
720:                        input_stream.backup(1);
721:                    } catch (java.io.IOException e1) {
722:                        EOFSeen = true;
723:                        error_after = curPos <= 1 ? "" : input_stream
724:                                .GetImage();
725:                        if (curChar == '\n' || curChar == '\r') {
726:                            error_line++;
727:                            error_column = 0;
728:                        } else
729:                            error_column++;
730:                    }
731:                    if (!EOFSeen) {
732:                        input_stream.backup(1);
733:                        error_after = curPos <= 1 ? "" : input_stream
734:                                .GetImage();
735:                    }
736:                    throw new TokenMgrError(EOFSeen, curLexState, error_line,
737:                            error_column, error_after, curChar,
738:                            TokenMgrError.LEXICAL_ERROR);
739:                }
740:            }
741:
742:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.