View Javadoc

1   // jq_TypeVisitor.java, created Fri Jan 11 17:28:36 2002 by joewhaley
2   // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu>
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
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  }