1. /*
  2. * @(#)RoundCompleteEvent.java 1.2 04/07/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.mirror.apt;
  8. /**
  9. * Event for the completion of a round of annotation processing.
  10. *
  11. * <p>While this class extends the serializable <tt>EventObject</tt>, it
  12. * cannot meaningfully be serialized because all of the annotation
  13. * processing tool's internal state would potentially be needed.
  14. *
  15. * @author Joseph D. Darcy
  16. * @author Scott Seligman
  17. * @version 1.2 04/07/19
  18. * @since 1.5
  19. */
  20. public abstract class RoundCompleteEvent extends java.util.EventObject {
  21. private RoundState rs;
  22. /**
  23. * The current <tt>AnnotationProcessorEnvironment</tt> is regarded
  24. * as the source of events.
  25. *
  26. * @param source The source of events
  27. * @param rs The state of the round
  28. */
  29. protected RoundCompleteEvent(AnnotationProcessorEnvironment source,
  30. RoundState rs) {
  31. super(source);
  32. this.rs = rs;
  33. }
  34. /**
  35. * Return round state.
  36. */
  37. public RoundState getRoundState() {
  38. return rs;
  39. }
  40. /**
  41. * Return source.
  42. */
  43. public AnnotationProcessorEnvironment getSource() {
  44. return (AnnotationProcessorEnvironment)super.getSource();
  45. }
  46. }