0N/A/*@bgen(jjtree) Generated By:JJTree: Do not edit this line. Parser.jj */
0N/A/*@egen*//*
0N/A * @(#)file Parser.jjt
0N/A * @(#)author Sun Microsystems, Inc.
0N/A *
2362N/A * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A *
0N/A */
0N/A
0N/Aoptions {
0N/A STATIC=false;
0N/A}
0N/A
0N/A
0N/APARSER_BEGIN(Parser)
0N/A
0N/Apackage com.sun.jmx.snmp.IPAcl;
0N/A
0N/Aimport java.io.*;
0N/A
0N/Apublic class Parser/*@bgen(jjtree)*/implements ParserTreeConstants/*@egen*/ {/*@bgen(jjtree)*/
0N/A protected JJTParserState jjtree = new JJTParserState();
0N/A
0N/A/*@egen*/
0N/A}
0N/A
0N/APARSER_END(Parser)
0N/A
0N/A
0N/ASKIP :
0N/A{
0N/A " "
0N/A| "\t"
0N/A| "\n"
0N/A| "\r"
0N/A| <"--" (~["\n","\r"])* ("\n"|"\r"|"\r\n")>
0N/A| <"#" (~["\n","\r"])* ("\n"|"\r"|"\r\n")>
0N/A
0N/A}
0N/A
0N/A
0N/A
0N/A/* RESERVED WORDS AND LITERALS */
0N/A
0N/ATOKEN :
0N/A{
0N/A <ACCESS: "access">
0N/A| <ACL: "acl">
0N/A| <ASSIGN: "=">
0N/A| <COMMUNITIES: "communities">
0N/A| <ENTERPRISE: "enterprise">
0N/A| <HOSTS: "hosts">
0N/A| <LBRACE: "{">
0N/A| <MANAGERS: "managers">
0N/A| <RANGE: "-">
0N/A| <RBRACE: "}">
0N/A| <RO: "read-only">
0N/A| <RW: "read-write">
0N/A| <TRAP: "trap">
0N/A| <INFORM: "inform">
0N/A| <TRAPCOMMUNITY: "trap-community">
0N/A| <INFORMCOMMUNITY: "inform-community">
0N/A| <TRAPNUM: "trap-num">
0N/A}
0N/A
0N/A
0N/A
0N/ATOKEN : /* LITERALS */
0N/A{
0N/A < INTEGER_LITERAL:
0N/A <DECIMAL_LITERAL> (["l","L"])?
0N/A | <HEX_LITERAL> (["l","L"])?
0N/A | <OCTAL_LITERAL> (["l","L"])?
0N/A >
0N/A|
0N/A < #DECIMAL_LITERAL: ["1"-"9"] (["0"-"9"])* >
0N/A|
0N/A < #HEX_LITERAL: "0" ["x","X"] (["0"-"9","a"-"f","A"-"F"])+ >
0N/A|
0N/A < #OCTAL_LITERAL: "0" (["0"-"7"])* >
0N/A}
0N/A
0N/ATOKEN : /* V6 LITERALS */
0N/A{
0N/A < V6_ADDRESS: ((( ( (<H> ":")+ (":")?) | "::" ) (<H> ":")* (<H> | (<D> "." <D> "." <D> "." <D>))) | ("::")) | ( (<H> ":")+ ":") >
0N/A|
0N/A <#H: (["0"-"9","a"-"f","A"-"F"])+ >
0N/A|
0N/A <#D: (["0"-"9"])+ >
0N/A}
0N/A
0N/ATOKEN : /* IDENTIFIERS */
0N/A{
0N/A < IDENTIFIER: ( (<DIGIT>|<LETTER>)+ (<SEPARATOR>|<LETTER>|<DIGIT>)* (<DIGIT>|<LETTER>)+ ) | (<DIGIT>|<LETTER>)+ >
0N/A|
0N/A < #LETTER: ["a"-"z","A"-"Z"] >
0N/A|
0N/A < #SEPARATOR: ["-", "_"] >
0N/A|
0N/A < #DIGIT: ["0"-"9"] >
0N/A|
0N/A <CSTRING: "\"" (~["\""])* "\"">
0N/A}
0N/A
0N/A
0N/A
0N/ATOKEN: /* SEPARATOR */
0N/A{
0N/A < COMMA: "," >
0N/A| < DOT: "." >
0N/A| < MARK: "!" >
0N/A| < MASK: "/">
0N/A}
0N/A
0N/A// A file can contain several acl definitions
0N/A//
0N/AJDMSecurityDefs SecurityDefs() : {/*@bgen(jjtree) SecurityDefs */
0N/A JDMSecurityDefs jjtn000 = new JDMSecurityDefs(JJTSECURITYDEFS);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/}
0N/A{/*@bgen(jjtree) SecurityDefs */
0N/A try {
0N/A/*@egen*/
0N/A [AclBlock()]
0N/A [TrapBlock()]
0N/A [InformBlock()]
0N/A <EOF>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/
0N/A { return jjtn000;}/*@bgen(jjtree)*/
0N/A } catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A } finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A }
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid AclBlock(): {/*@bgen(jjtree) AclBlock */
0N/A JDMAclBlock jjtn000 = new JDMAclBlock(JJTACLBLOCK);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/}
0N/A{/*@bgen(jjtree) AclBlock */
0N/Atry {
0N/A/*@egen*/
0N/A"acl" "=" "{" (AclItem())+ "}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid AclItem(): {/*@bgen(jjtree) AclItem */
0N/A JDMAclItem jjtn000 = new JDMAclItem(JJTACLITEM);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/}
0N/A{/*@bgen(jjtree) AclItem */
0N/Atry {
0N/A/*@egen*/
0N/A"{" jjtn000.com= Communities() jjtn000.access= Access() Managers() "}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/AJDMCommunities Communities(): {/*@bgen(jjtree) Communities */
0N/A JDMCommunities jjtn000 = new JDMCommunities(JJTCOMMUNITIES);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/}
0N/A{/*@bgen(jjtree) Communities */
0N/Atry {
0N/A/*@egen*/
0N/A"communities" "=" Community() ( "," Community())*/*@bgen(jjtree)*/
0N/A{
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A}
0N/A/*@egen*/
0N/A
0N/A{return jjtn000;}/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A
0N/A}
0N/A
0N/Avoid Community():
0N/A{/*@bgen(jjtree) Community */
0N/A JDMCommunity jjtn000 = new JDMCommunity(JJTCOMMUNITY);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) Community */
0N/Atry {
0N/A/*@egen*/
0N/At=<IDENTIFIER>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/ {jjtn000.communityString= t.image;}/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/AJDMAccess Access(): {/*@bgen(jjtree) Access */
0N/A JDMAccess jjtn000 = new JDMAccess(JJTACCESS);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/}
0N/A{/*@bgen(jjtree) Access */
0N/Atry {
0N/A/*@egen*/
0N/A"access" "=" ( <RO> {jjtn000.access= RO;}
0N/A |
0N/A <RW> {jjtn000.access= RW;}
0N/A )/*@bgen(jjtree)*/
0N/A{
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A}
0N/A/*@egen*/
0N/A{return jjtn000;}/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/A
0N/Avoid Managers() : {/*@bgen(jjtree) Managers */
0N/A JDMManagers jjtn000 = new JDMManagers(JJTMANAGERS);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) Managers */
0N/Atry {
0N/A/*@egen*/
0N/A"managers" "=" Host() ( "," Host())*/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid Host() :
0N/A{/*@bgen(jjtree) Host */
0N/A JDMHost jjtn000 = new JDMHost(JJTHOST);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) Host */
0N/Atry {
0N/A/*@egen*/
0N/AHostName()
0N/A|
0N/ALOOKAHEAD(<INTEGER_LITERAL> ( "." <INTEGER_LITERAL> )* "/" <INTEGER_LITERAL>)
0N/ANetMask()
0N/A|
0N/ALOOKAHEAD(<V6_ADDRESS> "/" <INTEGER_LITERAL>)
0N/ANetMaskV6()
0N/A|
0N/ALOOKAHEAD(<INTEGER_LITERAL> ".")
0N/AIpAddress()
0N/A|
0N/AIpV6Address()
0N/A|
0N/AIpMask()/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid HostName():
0N/A{/*@bgen(jjtree) HostName */
0N/A JDMHostName jjtn000 = new JDMHostName(JJTHOSTNAME);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) HostName */
0N/A try {
0N/A/*@egen*/
0N/A t=<IDENTIFIER> { jjtn000.name.append(t.image); }
0N/A(
0N/A"." t=<IDENTIFIER>
0N/A {jjtn000.name.append( "." + t.image); }
0N/A)*/*@bgen(jjtree)*/
0N/A } finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A }
0N/A/*@egen*/
0N/A
0N/A}
0N/A
0N/Avoid IpAddress():
0N/A{/*@bgen(jjtree) IpAddress */
0N/AJDMIpAddress jjtn000 = new JDMIpAddress(JJTIPADDRESS);
0N/Aboolean jjtc000 = true;
0N/Ajjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/AToken t;
0N/A}
0N/A{/*@bgen(jjtree) IpAddress */
0N/Atry {
0N/A/*@egen*/
0N/A
0N/At= <INTEGER_LITERAL>
0N/A {jjtn000.address.append(t.image); }
0N/A(
0N/A"." t= <INTEGER_LITERAL>
0N/A {jjtn000.address.append( "." + t.image); }
0N/A)*/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A
0N/A}
0N/A
0N/Avoid IpV6Address():
0N/A{/*@bgen(jjtree) IpV6Address */
0N/AJDMIpV6Address jjtn000 = new JDMIpV6Address(JJTIPV6ADDRESS);
0N/Aboolean jjtc000 = true;
0N/Ajjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/AToken t;
0N/A}
0N/A{/*@bgen(jjtree) IpV6Address */
0N/Atry {
0N/A/*@egen*/
0N/A
0N/At= <V6_ADDRESS>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/
0N/A {jjtn000.address.append(t.image); }/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid IpMask():
0N/A{/*@bgen(jjtree) IpMask */
0N/AJDMIpMask jjtn000 = new JDMIpMask(JJTIPMASK);
0N/Aboolean jjtc000 = true;
0N/Ajjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/AToken t;
0N/A}
0N/A{/*@bgen(jjtree) IpMask */
0N/Atry {
0N/A/*@egen*/
0N/A
0N/At= <INTEGER_LITERAL>
0N/A {jjtn000.address.append(t.image); }
0N/A(
0N/A"!" t= <INTEGER_LITERAL>
0N/A {jjtn000.address.append( "." + t.image); }
0N/A)*/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid NetMask():
0N/A{/*@bgen(jjtree) NetMask */
0N/AJDMNetMask jjtn000 = new JDMNetMask(JJTNETMASK);
0N/Aboolean jjtc000 = true;
0N/Ajjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/AToken t;
0N/A}
0N/A{/*@bgen(jjtree) NetMask */
0N/Atry {
0N/A/*@egen*/
0N/A
0N/At= <INTEGER_LITERAL>
0N/A {jjtn000.address.append(t.image); }
0N/A(
0N/A"." t= <INTEGER_LITERAL>
0N/A {jjtn000.address.append( "." + t.image); }
0N/A)* "/" t= <INTEGER_LITERAL>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/ {jjtn000.mask = t.image; }/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid NetMaskV6():
0N/A{/*@bgen(jjtree) NetMaskV6 */
0N/AJDMNetMaskV6 jjtn000 = new JDMNetMaskV6(JJTNETMASKV6);
0N/Aboolean jjtc000 = true;
0N/Ajjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/AToken t;
0N/A}
0N/A{/*@bgen(jjtree) NetMaskV6 */
0N/Atry {
0N/A/*@egen*/
0N/A
0N/At= <V6_ADDRESS>
0N/A {jjtn000.address.append(t.image); }
0N/A
0N/A"/" t= <INTEGER_LITERAL>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/ {jjtn000.mask = t.image; }/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid TrapBlock(): {/*@bgen(jjtree) TrapBlock */
0N/A JDMTrapBlock jjtn000 = new JDMTrapBlock(JJTTRAPBLOCK);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) TrapBlock */
0N/Atry {
0N/A/*@egen*/
0N/A"trap" "=" "{" (TrapItem())* "}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid TrapItem(): {/*@bgen(jjtree) TrapItem */
0N/A JDMTrapItem jjtn000 = new JDMTrapItem(JJTTRAPITEM);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) TrapItem */
0N/Atry {
0N/A/*@egen*/
0N/A"{" jjtn000.comm= TrapCommunity() TrapInterestedHost() (Enterprise())* "}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/AJDMTrapCommunity TrapCommunity():
0N/A{/*@bgen(jjtree) TrapCommunity */
0N/A JDMTrapCommunity jjtn000 = new JDMTrapCommunity(JJTTRAPCOMMUNITY);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) TrapCommunity */
0N/Atry {
0N/A/*@egen*/
0N/A"trap-community" "=" t=<IDENTIFIER>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/ { jjtn000.community= t.image; return jjtn000; }/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid TrapInterestedHost(): {/*@bgen(jjtree) TrapInterestedHost */
0N/A JDMTrapInterestedHost jjtn000 = new JDMTrapInterestedHost(JJTTRAPINTERESTEDHOST);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) TrapInterestedHost */
0N/Atry {
0N/A/*@egen*/
0N/A"hosts" "=" HostTrap() ("," HostTrap())*/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid HostTrap() :
0N/A{/*@bgen(jjtree) HostTrap */
0N/A JDMHostTrap jjtn000 = new JDMHostTrap(JJTHOSTTRAP);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) HostTrap */
0N/Atry {
0N/A/*@egen*/
0N/AHostName()
0N/A|
0N/AIpAddress()
0N/A|
0N/AIpV6Address()/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid Enterprise():
0N/A{/*@bgen(jjtree) Enterprise */
0N/A JDMEnterprise jjtn000 = new JDMEnterprise(JJTENTERPRISE);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) Enterprise */
0N/Atry {
0N/A/*@egen*/
0N/A"{"
0N/A"enterprise" "=" t=<CSTRING> {jjtn000.enterprise= t.image;}
0N/A
0N/A"trap-num" "=" TrapNum() ("," TrapNum())*
0N/A
0N/A"}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid TrapNum():
0N/A{/*@bgen(jjtree) TrapNum */
0N/A JDMTrapNum jjtn000 = new JDMTrapNum(JJTTRAPNUM);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) TrapNum */
0N/A try {
0N/A/*@egen*/
0N/A t=<INTEGER_LITERAL> {jjtn000.low= Integer.parseInt(t.image);}
0N/A[
0N/A "-" t=<INTEGER_LITERAL> {jjtn000.high= Integer.parseInt(t.image);}
0N/A]/*@bgen(jjtree)*/
0N/A } finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A }
0N/A/*@egen*/
0N/A}
0N/A
0N/A
0N/Avoid InformBlock(): {/*@bgen(jjtree) InformBlock */
0N/A JDMInformBlock jjtn000 = new JDMInformBlock(JJTINFORMBLOCK);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) InformBlock */
0N/Atry {
0N/A/*@egen*/
0N/A"inform" "=" "{" (InformItem())* "}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid InformItem(): {/*@bgen(jjtree) InformItem */
0N/A JDMInformItem jjtn000 = new JDMInformItem(JJTINFORMITEM);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) InformItem */
0N/Atry {
0N/A/*@egen*/
0N/A"{" jjtn000.comm= InformCommunity() InformInterestedHost() "}"/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/AJDMInformCommunity InformCommunity():
0N/A{/*@bgen(jjtree) InformCommunity */
0N/A JDMInformCommunity jjtn000 = new JDMInformCommunity(JJTINFORMCOMMUNITY);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) InformCommunity */
0N/Atry {
0N/A/*@egen*/
0N/A"inform-community" "=" t=<IDENTIFIER>/*@bgen(jjtree)*/
0N/A {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A jjtc000 = false;
0N/A }
0N/A/*@egen*/ { jjtn000.community= t.image; return jjtn000; }/*@bgen(jjtree)*/
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid InformInterestedHost(): {/*@bgen(jjtree) InformInterestedHost */
0N/A JDMInformInterestedHost jjtn000 = new JDMInformInterestedHost(JJTINFORMINTERESTEDHOST);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/ }
0N/A{/*@bgen(jjtree) InformInterestedHost */
0N/Atry {
0N/A/*@egen*/
0N/A"hosts" "=" HostInform() ("," HostInform())*/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A
0N/Avoid HostInform() :
0N/A{/*@bgen(jjtree) HostInform */
0N/A JDMHostInform jjtn000 = new JDMHostInform(JJTHOSTINFORM);
0N/A boolean jjtc000 = true;
0N/A jjtree.openNodeScope(jjtn000);
0N/A/*@egen*/
0N/A Token t;
0N/A}
0N/A{/*@bgen(jjtree) HostInform */
0N/Atry {
0N/A/*@egen*/
0N/AHostName()
0N/A|
0N/AIpAddress()
0N/A|
0N/AIpV6Address()/*@bgen(jjtree)*/
0N/A} catch (Throwable jjte000) {
0N/A if (jjtc000) {
0N/A jjtree.clearNodeScope(jjtn000);
0N/A jjtc000 = false;
0N/A } else {
0N/A jjtree.popNode();
0N/A }
0N/A if (jjte000 instanceof RuntimeException) {
0N/A throw (RuntimeException)jjte000;
0N/A }
0N/A if (jjte000 instanceof ParseException) {
0N/A throw (ParseException)jjte000;
0N/A }
0N/A throw (Error)jjte000;
0N/A} finally {
0N/A if (jjtc000) {
0N/A jjtree.closeNodeScope(jjtn000, true);
0N/A }
0N/A}
0N/A/*@egen*/
0N/A}
0N/A