KickJava   Java API By Example, From Geeks To Geeks.

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


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

20
21 package org.jacorb.idl;
22
23 /**
24  * @author Gerald Brose
25  * @version $Id: Operation.java,v 1.15 2004/05/06 12:39:58 nicolas Exp $
26  */

27
28 import java.io.PrintWriter JavaDoc;
29 import java.io.Serializable JavaDoc;
30
31 public interface Operation
32     extends Serializable JavaDoc
33 {
34     /**
35      * <code>name</code> gives the plain name of the operation
36      * @return a <code>String</code> value
37      */

38     public String JavaDoc name();
39
40     /**
41      * <code>opName</code> gives the mangled name in case of attributes
42      * (_get_, _set_).
43      *
44      * @return a <code>String</code> value
45      */

46     public String JavaDoc opName();
47
48
49     /**
50      * <code>printMethod</code> produces the method code for stubs.
51      *
52      * @param ps a <code>PrintWriter</code> value
53      * @param classname a <code>String</code> value
54      * @param is_local a <code>boolean</code> value
55      * @param is_abstract a <code>boolean</code> value used by Interface to
56      * denote an abstract.
57      */

58     public void printMethod( PrintWriter JavaDoc ps, String JavaDoc classname, boolean is_local, boolean is_abstract );
59
60     public void print_sendc_Method( PrintWriter JavaDoc ps, String JavaDoc classname );
61
62     public String JavaDoc signature();
63
64
65     /**
66      * @param printModifiers whether "public abstract" should be added
67      */

68     void printSignature( PrintWriter JavaDoc ps, boolean printModifiers );
69
70     void printSignature( PrintWriter JavaDoc ps );
71
72     /**
73      * Method code for skeletons
74      * @param ps a <code>PrintWriter</code> value
75      */

76
77     void printDelegatedMethod( PrintWriter JavaDoc ps );
78
79     void printInvocation( PrintWriter JavaDoc ps );
80
81     void accept( IDLTreeVisitor visitor );
82
83 }
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Popular Tags