1. /*
  2. * @(#)file JDMIpMask.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 4.8
  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. JDMIpMask.java */
  12. package com.sun.jmx.snmp.IPAcl;
  13. import java.lang.StringBuffer;
  14. import java.net.UnknownHostException;
  15. /**
  16. * @version 4.8 12/19/03
  17. * @author Sun Microsystems, Inc.
  18. */
  19. class JDMIpMask extends Host {
  20. protected StringBuffer address= new StringBuffer();
  21. JDMIpMask(int id) {
  22. super(id);
  23. }
  24. JDMIpMask(Parser p, int id) {
  25. super(p, id);
  26. }
  27. public static Node jjtCreate(int id) {
  28. return new JDMIpMask(id);
  29. }
  30. public static Node jjtCreate(Parser p, int id) {
  31. return new JDMIpMask(p, id);
  32. }
  33. protected String getHname() {
  34. return address.toString();
  35. }
  36. protected PrincipalImpl createAssociatedPrincipal()
  37. throws UnknownHostException {
  38. return new GroupImpl(address.toString());
  39. }
  40. }