📄 parser.java
字号:
t = jj_consume_token(INTEGER_LITERAL); jjtn000.address.append(t.image); label_6: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case MARK: ; break; default: jj_la1[11] = jj_gen; break label_6; } jj_consume_token(MARK); t = jj_consume_token(INTEGER_LITERAL); jjtn000.address.append( "." + t.image); } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void NetMask() throws ParseException { /*@bgen(jjtree) NetMask */JDMNetMask jjtn000 = new JDMNetMask(JJTNETMASK);boolean jjtc000 = true;jjtree.openNodeScope(jjtn000);Token t; try { t = jj_consume_token(INTEGER_LITERAL); jjtn000.address.append(t.image); label_7: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: ; break; default: jj_la1[12] = jj_gen; break label_7; } jj_consume_token(DOT); t = jj_consume_token(INTEGER_LITERAL); jjtn000.address.append( "." + t.image); } jj_consume_token(MASK); t = jj_consume_token(INTEGER_LITERAL); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.mask = t.image; } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void NetMaskV6() throws ParseException { /*@bgen(jjtree) NetMaskV6 */JDMNetMaskV6 jjtn000 = new JDMNetMaskV6(JJTNETMASKV6);boolean jjtc000 = true;jjtree.openNodeScope(jjtn000);Token t; try { t = jj_consume_token(V6_ADDRESS); jjtn000.address.append(t.image); jj_consume_token(MASK); t = jj_consume_token(INTEGER_LITERAL); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.mask = t.image; } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void TrapBlock() throws ParseException { /*@bgen(jjtree) TrapBlock */ JDMTrapBlock jjtn000 = new JDMTrapBlock(JJTTRAPBLOCK); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(TRAP); jj_consume_token(ASSIGN); jj_consume_token(LBRACE); label_8: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: ; break; default: jj_la1[13] = jj_gen; break label_8; } TrapItem(); } jj_consume_token(RBRACE); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void TrapItem() throws ParseException { /*@bgen(jjtree) TrapItem */ JDMTrapItem jjtn000 = new JDMTrapItem(JJTTRAPITEM); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LBRACE); jjtn000.comm = TrapCommunity(); TrapInterestedHost(); label_9: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: ; break; default: jj_la1[14] = jj_gen; break label_9; } Enterprise(); } jj_consume_token(RBRACE); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public JDMTrapCommunity TrapCommunity() throws ParseException { /*@bgen(jjtree) TrapCommunity */ JDMTrapCommunity jjtn000 = new JDMTrapCommunity(JJTTRAPCOMMUNITY); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { jj_consume_token(TRAPCOMMUNITY); jj_consume_token(ASSIGN); t = jj_consume_token(IDENTIFIER); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.community= t.image; {if (true) return jjtn000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } throw new Error("Missing return statement in function"); } final public void TrapInterestedHost() throws ParseException { /*@bgen(jjtree) TrapInterestedHost */ JDMTrapInterestedHost jjtn000 = new JDMTrapInterestedHost(JJTTRAPINTERESTEDHOST); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(HOSTS); jj_consume_token(ASSIGN); HostTrap(); label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[15] = jj_gen; break label_10; } jj_consume_token(COMMA); HostTrap(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void HostTrap() throws ParseException { /*@bgen(jjtree) HostTrap */ JDMHostTrap jjtn000 = new JDMHostTrap(JJTHOSTTRAP); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: HostName(); break; case INTEGER_LITERAL: IpAddress(); break; case V6_ADDRESS: IpV6Address(); break; default: jj_la1[16] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void Enterprise() throws ParseException { /*@bgen(jjtree) Enterprise */ JDMEnterprise jjtn000 = new JDMEnterprise(JJTENTERPRISE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { jj_consume_token(LBRACE); jj_consume_token(ENTERPRISE); jj_consume_token(ASSIGN); t = jj_consume_token(CSTRING); jjtn000.enterprise= t.image; jj_consume_token(TRAPNUM); jj_consume_token(ASSIGN); TrapNum(); label_11: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMMA: ; break; default: jj_la1[17] = jj_gen; break label_11; } jj_consume_token(COMMA); TrapNum(); } jj_consume_token(RBRACE); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void TrapNum() throws ParseException { /*@bgen(jjtree) TrapNum */ JDMTrapNum jjtn000 = new JDMTrapNum(JJTTRAPNUM); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { t = jj_consume_token(INTEGER_LITERAL); jjtn000.low= Integer.parseInt(t.image); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case RANGE: jj_consume_token(RANGE); t = jj_consume_token(INTEGER_LITERAL); jjtn000.high= Integer.parseInt(t.image); break; default: jj_la1[18] = jj_gen; ; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void InformBlock() throws ParseException { /*@bgen(jjtree) InformBlock */ JDMInformBlock jjtn000 = new JDMInformBlock(JJTINFORMBLOCK); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(INFORM); jj_consume_token(ASSIGN); jj_consume_token(LBRACE); label_12: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: ; break; default: jj_la1[19] = jj_gen; break label_12; } InformItem(); } jj_consume_token(RBRACE); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public void InformItem() throws ParseException { /*@bgen(jjtree) InformItem */ JDMInformItem jjtn000 = new JDMInformItem(JJTINFORMITEM); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LBRACE); jjtn000.comm = InformCommunity(); InformInterestedHost(); jj_consume_token(RBRACE); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } final public JDMInformCommunity InformCommunity() throws ParseException { /*@bgen(jjtree) InformCommunity */ JDMInformCommunity jjtn000 = new JDMInformCommunity(JJTINFORMCOMMUNITY); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { jj_consume_token(INFORMCOMMUNITY);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -