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

Print this page




  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.mirror.util;
  27 
  28 
  29 import com.sun.mirror.declaration.*;
  30 
  31 
  32 /**
  33  * A simple visitor for declarations.
  34  *
  35  * <p> The implementations of the methods of this class do nothing but
  36  * delegate up the declaration hierarchy.  A subclass should override the
  37  * methods that correspond to the kinds of declarations on which it
  38  * will operate.
  39  *





  40  * @author Joseph D. Darcy
  41  * @author Scott Seligman
  42  * @since 1.5
  43  */
  44 

  45 public class SimpleDeclarationVisitor implements DeclarationVisitor {
  46 
  47     /**
  48      * Creates a new <tt>SimpleDeclarationVisitor</tt>.
  49      */
  50     public SimpleDeclarationVisitor(){}
  51 
  52     /**
  53      * Visits a declaration.
  54      * The implementation does nothing.
  55      * @param d the declaration to visit
  56      */
  57     public void visitDeclaration(Declaration d) {
  58     }
  59 
  60     /**
  61      * Visits a package declaration.
  62      * The implementation simply invokes
  63      * {@link #visitDeclaration visitDeclaration}.
  64      * @param d the declaration to visit




  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.mirror.util;
  27 
  28 
  29 import com.sun.mirror.declaration.*;
  30 
  31 
  32 /**
  33  * A simple visitor for declarations.
  34  *
  35  * <p> The implementations of the methods of this class do nothing but
  36  * delegate up the declaration hierarchy.  A subclass should override the
  37  * methods that correspond to the kinds of declarations on which it
  38  * will operate.
  39  *
  40  * @deprecated All components of this API have been superseded by the
  41  * standardized annotation processing API.  The replacement for the
  42  * functionality of this class is {@link
  43  * javax.lang.model.util.SimpleElementVisitor6}.
  44  *
  45  * @author Joseph D. Darcy
  46  * @author Scott Seligman
  47  * @since 1.5
  48  */
  49 @Deprecated
  50 @SuppressWarnings("deprecation")
  51 public class SimpleDeclarationVisitor implements DeclarationVisitor {
  52 
  53     /**
  54      * Creates a new <tt>SimpleDeclarationVisitor</tt>.
  55      */
  56     public SimpleDeclarationVisitor(){}
  57 
  58     /**
  59      * Visits a declaration.
  60      * The implementation does nothing.
  61      * @param d the declaration to visit
  62      */
  63     public void visitDeclaration(Declaration d) {
  64     }
  65 
  66     /**
  67      * Visits a package declaration.
  68      * The implementation simply invokes
  69      * {@link #visitDeclaration visitDeclaration}.
  70      * @param d the declaration to visit