src/share/classes/com/sun/mirror/util/DeclarationVisitor.java

Print this page

        

@@ -35,15 +35,21 @@
  * compile time.  When a visitor is passed to a declaration's {@link
  * Declaration#accept accept} method, the most specific
  * <tt>visit<i>Xxx</i></tt> method applicable to that declaration is
  * invoked.
  *
+ * @deprecated All components of this API have been superseded by the
+ * standardized annotation processing API.  The replacement for the
+ * functionality of this interface is {@link
+ * javax.lang.model.element.ElementVisitor}.
+ *
  * @author Joseph D. Darcy
  * @author Scott Seligman
  * @since 1.5
  */
-
+@Deprecated
+@SuppressWarnings("deprecation")
 public interface DeclarationVisitor {
 
     /**
      * Visits a declaration.
      * @param d the declaration to visit