Source Code Cross Referenced for JavadocParserTokenManager.java in  » Code-Analyzer » beautyJ » de » gulden » util » javasource » jjt » 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 » Code Analyzer » beautyJ » de.gulden.util.javasource.jjt 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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