KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > mirror > apt > RoundCompleteEvent


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
8 package com.sun.mirror.apt;
9
10 /**
11  * Event for the completion of a round of annotation processing.
12  *
13  * <p>While this class extends the serializable <tt>EventObject</tt>, it
14  * cannot meaningfully be serialized because all of the annotation
15  * processing tool's internal state would potentially be needed.
16  *
17  * @author Joseph D. Darcy
18  * @author Scott Seligman
19  * @version 1.2 04/07/19
20  * @since 1.5
21  */

22 public abstract class RoundCompleteEvent extends java.util.EventObject JavaDoc {
23     private RoundState rs;
24
25     /**
26      * The current <tt>AnnotationProcessorEnvironment</tt> is regarded
27      * as the source of events.
28      *
29      * @param source The source of events
30      * @param rs The state of the round
31      */

32     protected RoundCompleteEvent(AnnotationProcessorEnvironment source,
33                  RoundState rs) {
34     super(source);
35     this.rs = rs;
36     }
37     
38     /**
39      * Return round state.
40      */

41     public RoundState getRoundState() {
42     return rs;
43     }
44     
45     /**
46      * Return source.
47      */

48     public AnnotationProcessorEnvironment getSource() {
49     return (AnnotationProcessorEnvironment)super.getSource();
50     }
51 }
52
Popular Tags