1 2 package SOFA.SOFAnode.Made.CDL; 3 4 class CompProtNestedOperand extends CompProtOperand { 5 public CompProtOper nestOperand; 6 7 public CompProtNestedOperand(String operand, String ifacename, int mode, CompProtOper nestOper) { 8 super(operand, ifacename, mode); 9 type = CompProtKind.p_nestedoperand; 10 this.nestOperand = nestOper; 11 } 12 13 public String toText() { 14 StringBuffer sb = new StringBuffer (); 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 |