1
2
3
4 package joeq.Class;
5
6 /***
7 * Visitor interface for jq_Type and its various subclasses.
8 *
9 * @author John Whaley <jwhaley@alum.mit.edu>
10 * @version $Id: jq_TypeVisitor.java 2212 2005-03-14 20:40:36Z joewhaley $
11 */
12 public interface jq_TypeVisitor {
13
14 void visitClass(jq_Class m);
15 void visitArray(jq_Array m);
16 void visitPrimitive(jq_Primitive m);
17 void visitType(jq_Type m);
18
19 /***
20 * Empty jq_TypeVisitor for convenient subclassing.
21 *
22 * @author jwhaley
23 * @version $Id: jq_TypeVisitor.java 2212 2005-03-14 20:40:36Z joewhaley $
24 */
25 class EmptyVisitor implements jq_TypeVisitor {
26 public void visitClass(jq_Class m) {}
27 public void visitArray(jq_Array m) {}
28 public void visitPrimitive(jq_Primitive m) {}
29 public void visitType(jq_Type m) {}
30 }
31
32 }