KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnode > Made > CDL > CompProtNestedOperand


1 /* $Id: CompProtNestedOperand.java,v 1.1.1.1 2003/02/11 16:19:40 bures Exp $ */
2 package SOFA.SOFAnode.Made.CDL;
3
4 class CompProtNestedOperand extends CompProtOperand {
5   public CompProtOper nestOperand;
6
7   public CompProtNestedOperand(String JavaDoc operand, String JavaDoc ifacename, int mode, CompProtOper nestOper) {
8     super(operand, ifacename, mode);
9     type = CompProtKind.p_nestedoperand;
10     this.nestOperand = nestOper;
11   }
12
13   public String JavaDoc toText() {
14     StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
15     if (mode == CompProtMode.pm_in)
16       sb.append("?");
17     else
18       sb.append("!");
19     sb.append(ifacename);
20     sb.append(".");
21     sb.append(operand);
22     sb.append("{");
23     sb.append(nestOperand.toText());
24     sb.append("}");
25     return sb.toString();
26   }
27 }
28
Popular Tags