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.type.*;
30
31
32 /**
33 * A simple visitor for types.
34 *
35 * <p> The implementations of the methods of this class do nothing but
36 * delegate up the type hierarchy. A subclass should override the
37 * methods that correspond to the kinds of types on which it will
38 * operate.
39 *
40 * @author Joseph D. Darcy
41 * @author Scott Seligman
42 * @since 1.5
43 */
44
45 public class SimpleTypeVisitor implements TypeVisitor {
46
47 /**
48 * Creates a new <tt>SimpleTypeVisitor</tt>.
49 */
50 public SimpleTypeVisitor() {}
51
52 /**
53 * Visits a type mirror.
54 * The implementation does nothing.
55 * @param t the type to visit
56 */
57 public void visitTypeMirror(TypeMirror t) {
58 }
59
60 /**
61 * Visits a primitive type.
62 * The implementation simply invokes
63 * {@link #visitTypeMirror visitTypeMirror}.
64 * @param t the type 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.type.*;
30
31
32 /**
33 * A simple visitor for types.
34 *
35 * <p> The implementations of the methods of this class do nothing but
36 * delegate up the type hierarchy. A subclass should override the
37 * methods that correspond to the kinds of types on which it will
38 * 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.SimpleTypeVisitor6}.
44 *
45 * @author Joseph D. Darcy
46 * @author Scott Seligman
47 * @since 1.5
48 */
49 @Deprecated
50 @SuppressWarnings("deprecation")
51 public class SimpleTypeVisitor implements TypeVisitor {
52
53 /**
54 * Creates a new <tt>SimpleTypeVisitor</tt>.
55 */
56 public SimpleTypeVisitor() {}
57
58 /**
59 * Visits a type mirror.
60 * The implementation does nothing.
61 * @param t the type to visit
62 */
63 public void visitTypeMirror(TypeMirror t) {
64 }
65
66 /**
67 * Visits a primitive type.
68 * The implementation simply invokes
69 * {@link #visitTypeMirror visitTypeMirror}.
70 * @param t the type to visit
|