KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > idl > IDLTreeVisitor


1 package org.jacorb.idl;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23
24 import java.io.PrintWriter JavaDoc;
25 import java.util.*;
26
27 import org.apache.log.*;
28
29
30 /**
31  * Generic API used by the IDL compiler to call backend code
32  * generators. Extend this interface for your own code
33  * generator backends. To plug into the compiler, use the
34  * IDL compiler option "-backend <classname>"
35  *
36  * @author Gerald Brose, XTRADYNE Technologies.
37  * @version $Id: IDLTreeVisitor.java,v 1.5 2004/10/18 11:07:31 simon.mcqueen Exp $
38  */

39
40 public interface IDLTreeVisitor
41 {
42     /**
43      * Visit an IDL specification. This method is the top-level entry point
44      * called by the IDL compiler for a single compiler run.
45      *
46      * @param spec The spec node from the compiler's AST
47      */

48
49     void visitSpec( Spec spec );
50
51     /**
52      * Visit a module
53      *
54      * @param spec The module node from the compiler's AST
55      */

56
57     void visitModule( Module mod );
58
59
60     void visitInterface( Interface intf );
61
62     void visitInterfaceBody( InterfaceBody body );
63
64     void visitDefinitions( Definitions defs );
65
66     void visitDefinition( Definition def );
67
68     void visitDeclaration( Declaration decl );
69
70     void visitOpDecl( OpDecl decl );
71
72     void visitMethod( Method m );
73
74     void visitParamDecl( ParamDecl param );
75
76     void visitStruct( StructType struct );
77
78     void visitUnion( UnionType union );
79
80     void visitEnum( EnumType enumType );
81
82
83     void visitNative( NativeType _native );
84
85     void visitTypeDef( TypeDef typedef );
86
87     void visitAlias( AliasTypeSpec alias );
88
89     void visitValue( Value value );
90
91     void visitTypeDeclaration( TypeDeclaration typeDecl );
92
93     void visitConstrTypeSpec( ConstrTypeSpec typeDecl );
94
95 }
96
97
Popular Tags