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