01: /*
02: * JacORB - a free Java ORB
03: *
04: * Copyright (C) 1997-2004 Gerald Brose.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Library General Public
08: * License as published by the Free Software Foundation; either
09: * 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;
29: import java.io.Serializable;
30:
31: public interface Operation extends Serializable {
32: /**
33: * <code>name</code> gives the plain name of the operation
34: * @return a <code>String</code> value
35: */
36: public String name();
37:
38: /**
39: * <code>opName</code> gives the mangled name in case of attributes
40: * (_get_, _set_).
41: *
42: * @return a <code>String</code> value
43: */
44: public String opName();
45:
46: /**
47: * <code>printMethod</code> produces the method code for stubs.
48: *
49: * @param ps a <code>PrintWriter</code> value
50: * @param classname a <code>String</code> value
51: * @param is_local a <code>boolean</code> value
52: * @param is_abstract a <code>boolean</code> value used by Interface to
53: * denote an abstract.
54: */
55: public void printMethod(PrintWriter ps, String classname,
56: boolean is_local, boolean is_abstract);
57:
58: public void print_sendc_Method(PrintWriter ps, String classname);
59:
60: public String signature();
61:
62: /**
63: * @param printModifiers whether "public abstract" should be added
64: */
65: void printSignature(PrintWriter ps, boolean printModifiers);
66:
67: void printSignature(PrintWriter ps);
68:
69: /**
70: * Method code for skeletons
71: * @param ps a <code>PrintWriter</code> value
72: */
73:
74: void printDelegatedMethod(PrintWriter ps);
75:
76: void printInvocation(PrintWriter ps);
77:
78: void accept(IDLTreeVisitor visitor);
79:
80: }
|