1. /*
  2. * @(#)file JDMCommunities.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 4.7
  5. * @(#)date 04/09/15
  6. *
  7. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  8. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  9. *
  10. */
  11. /* Generated By:JJTree: Do not edit this line. JDMCommunities.java */
  12. package com.sun.jmx.snmp.IPAcl;
  13. /**
  14. * @version 4.7 12/19/03
  15. * @author Sun Microsystems, Inc.
  16. */
  17. class JDMCommunities extends SimpleNode {
  18. JDMCommunities(int id) {
  19. super(id);
  20. }
  21. JDMCommunities(Parser p, int id) {
  22. super(p, id);
  23. }
  24. public static Node jjtCreate(int id) {
  25. return new JDMCommunities(id);
  26. }
  27. public static Node jjtCreate(Parser p, int id) {
  28. return new JDMCommunities(p, id);
  29. }
  30. public void buildCommunities(AclEntryImpl entry){
  31. for (int i =0 ; i < children.length ; i++)
  32. entry.addCommunity(((JDMCommunity)children[i]).getCommunity());
  33. }
  34. }