asnparsertokenmanager.java
来自「ASN.1工具源代码,包括编译源码生成工具和各种基本类型构造类型的编解码实现代码」· Java 代码 · 共 1,745 行 · 第 1/4 页
JAVA
1,745 行
/* Generated By:JJTree&JavaCC: Do not edit this line. AsnParserTokenManager.java *///Title: //Version: $Id: AsnParserTokenManager.java,v 1.1.1.1 2000/12/21 06:33:43 ianibbo Exp $//Copyright: Copyright (C) 1999,2000 Knowledge Integration Ltd (See the file LICENSE for details.)//Author: Ian Ibbotson//Company: Knowledge Integration Ltd//Description: //package com.k_int.codec.comp;import java.util.*;import java.io.File;import java.io.FileInputStream;public class AsnParserTokenManager implements AsnParserConstants{private final int jjStopStringLiteralDfa_0(int pos, long active0, long active1){ switch (pos) { case 0: if ((active0 & 0x21200000000L) != 0L || (active1 & 0x40L) != 0L) { jjmatchedKind = 82; return 15; } if ((active0 & 0xfffffdedf0000000L) != 0L || (active1 & 0x1ffbfL) != 0L) { jjmatchedKind = 82; return 35; } return -1; case 1: if ((active0 & 0x1000000000L) != 0L || (active1 & 0x8L) != 0L) return 35; if ((active0 & 0xffffffeff0000000L) != 0L || (active1 & 0x1ffb7L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 1; return 35; } if ((active1 & 0x40L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 1; return 14; } return -1; case 2: if ((active0 & 0xf3fbfecf70000000L) != 0L || (active1 & 0x1ff97L) != 0L) { if (jjmatchedPos != 2) { jjmatchedKind = 82; jjmatchedPos = 2; } return 35; } if ((active0 & 0xc04012080000000L) != 0L || (active1 & 0x20L) != 0L) return 35; if ((active1 & 0x40L) != 0L) { if (jjmatchedPos != 2) { jjmatchedKind = 82; jjmatchedPos = 2; } return 13; } return -1; case 3: if ((active0 & 0x7100800410000000L) != 0L) return 35; if ((active0 & 0x82fb7ecb60000000L) != 0L || (active1 & 0x1ffb7L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 3; return 35; } if ((active1 & 0x40L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 3; return 12; } return -1; case 4: if ((active1 & 0x10L) != 0L) { if (jjmatchedPos < 3) { jjmatchedKind = 82; jjmatchedPos = 3; } return 27; } if ((active0 & 0x3000200000000L) != 0L || (active1 & 0x11000L) != 0L) return 35; if ((active0 & 0x82f87ec960000000L) != 0L || (active1 & 0xefa7L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 4; return 35; } if ((active1 & 0x40L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 4; return 0; } return -1; case 5: if ((active1 & 0x40L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 5; return 1; } if ((active0 & 0x82f87e4860000000L) != 0L || (active1 & 0xcc15L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 5; return 35; } if ((active0 & 0x8100000000L) != 0L || (active1 & 0x2382L) != 0L) return 35; if ((active1 & 0x20L) != 0L) { if (jjmatchedPos < 4) { jjmatchedKind = 82; jjmatchedPos = 4; } return 27; } return -1; case 6: if ((active0 & 0xc0440060000000L) != 0L || (active1 & 0x5L) != 0L) return 35; if ((active0 & 0x82383a4800000000L) != 0L || (active1 & 0xcc30L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 6; return 35; } if ((active1 & 0x40L) != 0L) { if (jjmatchedPos < 5) { jjmatchedKind = 82; jjmatchedPos = 5; } return 27; } return -1; case 7: if ((active1 & 0xc000L) != 0L) { if (jjmatchedPos < 6) { jjmatchedKind = 82; jjmatchedPos = 6; } return 27; } if ((active0 & 0x8028380000000000L) != 0L || (active1 & 0xc70L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 7; return 35; } if ((active0 & 0x210024800000000L) != 0L) return 35; return -1; case 8: if ((active0 & 0x28200000000000L) != 0L || (active1 & 0xc470L) != 0L) { if (jjmatchedPos != 8) { jjmatchedKind = 82; jjmatchedPos = 8; } return 35; } if ((active0 & 0x8000180000000000L) != 0L || (active1 & 0x800L) != 0L) return 35; return -1; case 9: if ((active0 & 0x20080000000000L) != 0L) return 35; if ((active0 & 0x8200000000000L) != 0L || (active1 & 0xc470L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 9; return 35; } return -1; case 10: if ((active1 & 0xc030L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 10; return 35; } if ((active0 & 0x8200000000000L) != 0L || (active1 & 0x440L) != 0L) return 35; return -1; case 11: if ((active1 & 0x4000L) != 0L) return 35; if ((active1 & 0x8030L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 11; return 35; } return -1; case 12: if ((active1 & 0x10L) != 0L) return 35; if ((active1 & 0x8020L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 12; return 35; } return -1; case 13: if ((active1 & 0x20L) != 0L) return 35; if ((active1 & 0x8000L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 13; return 35; } return -1; case 14: if ((active1 & 0x8000L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 14; return 35; } return -1; case 15: if ((active1 & 0x8000L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 15; return 35; } return -1; case 16: if ((active1 & 0x8000L) != 0L) { jjmatchedKind = 82; jjmatchedPos = 16; return 35; } return -1; default : return -1; }}private final int jjStartNfa_0(int pos, long active0, long active1){ return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0, active1), pos + 1);}private final int jjStopAtPos(int pos, int kind){ jjmatchedKind = kind; jjmatchedPos = pos; return pos + 1;}private final int jjStartNfaWithStates_0(int pos, int kind, int state){ jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1);}private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 40: return jjStopAtPos(0, 18); case 41: return jjStopAtPos(0, 19); case 44: return jjStopAtPos(0, 15); case 45: jjmatchedKind = 23; return jjMoveStringLiteralDfa1_0(0x20L, 0x0L); case 46: return jjStopAtPos(0, 14); case 48: return jjStopAtPos(0, 13); case 58: jjmatchedKind = 27; return jjMoveStringLiteralDfa1_0(0x1000000L, 0x0L); case 59: return jjStopAtPos(0, 26); case 60: return jjStopAtPos(0, 22); case 65: return jjMoveStringLiteralDfa1_0(0x210000000000L, 0x102L); case 66: return jjMoveStringLiteralDfa1_0(0x20000a0000000L, 0x8L); case 67: return jjMoveStringLiteralDfa1_0(0x8000088000000000L, 0x0L); case 68: return jjMoveStringLiteralDfa1_0(0x8040000000000L, 0x6404L); case 69: return jjMoveStringLiteralDfa1_0(0x74000000000000L, 0x0L); case 70: return jjMoveStringLiteralDfa1_0(0x2001000000000000L, 0x0L); case 73: return jjMoveStringLiteralDfa1_0(0x280004040000000L, 0x1000L); case 77: return jjMoveStringLiteralDfa1_0(0xc00000000000000L, 0x10020L); case 78: return jjMoveStringLiteralDfa1_0(0x400000000L, 0x0L); case 79: return jjMoveStringLiteralDfa1_0(0x21200000000L, 0x40L); case 80: return jjMoveStringLiteralDfa1_0(0x400000000000L, 0x11L); case 82: return jjMoveStringLiteralDfa1_0(0x100000000000000L, 0x800L); case 83: return jjMoveStringLiteralDfa1_0(0x1000002900000000L, 0x280L); case 84: return jjMoveStringLiteralDfa1_0(0x800010000000L, 0x8000L); case 85: return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x0L); case 87: return jjMoveStringLiteralDfa1_0(0x4000000000000000L, 0x0L); case 91: return jjStopAtPos(0, 20); case 93: return jjStopAtPos(0, 21); case 123: return jjStopAtPos(0, 16); case 124: return jjStopAtPos(0, 25); case 125: return jjStopAtPos(0, 17); default : return jjMoveNfa_0(16, 0); }}private final int jjMoveStringLiteralDfa1_0(long active0, long active1){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1); return 1; } switch(curChar) { case 45: if ((active0 & 0x20L) != 0L) return jjStopAtPos(1, 5); break; case 58: return jjMoveStringLiteralDfa2_0(active0, 0x1000000L, active1, 0L); case 65: return jjMoveStringLiteralDfa2_0(active0, 0x801000010000000L, active1, 0x10000L); case 66: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x42L); case 67: return jjMoveStringLiteralDfa2_0(active0, 0x200000000L, active1, 0x100L); case 69: return jjMoveStringLiteralDfa2_0(active0, 0x10a042800000000L, active1, 0xac04L); case 70: if ((active0 & 0x1000000000L) != 0L) return jjStartNfaWithStates_0(1, 36, 35); break; case 72: return jjMoveStringLiteralDfa2_0(active0, 0x8000000000L, active1, 0L); case 73: return jjMoveStringLiteralDfa2_0(active0, 0x5400000080000000L, active1, 0x4020L); case 76: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x10L); case 77: return jjMoveStringLiteralDfa2_0(active0, 0x80004000000000L, active1, 0L); case 78: return jjMoveStringLiteralDfa2_0(active0, 0x224110040000000L, active1, 0x1000L); case 79: return jjMoveStringLiteralDfa2_0(active0, 0x8000080020000000L, active1, 0L); case 80: return jjMoveStringLiteralDfa2_0(active0, 0x220000000000L, active1, 0L); case 82: return jjMoveStringLiteralDfa2_0(active0, 0x2000c00000000000L, active1, 0x1L); case 84: return jjMoveStringLiteralDfa2_0(active0, 0x100000000L, active1, 0x200L); case 85: return jjMoveStringLiteralDfa2_0(active0, 0x400000000L, active1, 0L); case 88: return jjMoveStringLiteralDfa2_0(active0, 0x50000000000000L, active1, 0L); case 89: if ((active1 & 0x8L) != 0L) return jjStartNfaWithStates_0(1, 67, 35); return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80L); default : break; } return jjStartNfa_0(0, active0, active1);}private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1){ if (((active0 &= old0) | (active1 &= old1)) == 0L) return jjStartNfa_0(0, old0, old1); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(1, active0, active1); return 2; } switch(curChar) { case 61: if ((active0 & 0x1000000L) != 0L) return jjStopAtPos(2, 24); break; case 65: return jjMoveStringLiteralDfa3_0(active0, 0x100000000000000L, active1, 0x200L); case 67: return jjMoveStringLiteralDfa3_0(active0, 0x200000000000000L, active1, 0x10100L); case 68: if ((active0 & 0x4000000000000L) != 0L) return jjStartNfaWithStates_0(2, 50, 35); return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000L); case 69: return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1L); case 70:
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?