/* 115: */ /* 116: */ void addConstructor(CtMember cons) /* 117: */ { /* 118: 79 */ cons.next = this.consTail.next; /* 119: 80 */ this.consTail.next = cons; /* 120: 81 */ if (this.consTail == this.fieldTail) { /* 121: 82 */ this.fieldTail = cons; /* 122: */ } /* 123: 84 */ this.consTail = cons; /* 124: */ }
/* 101: */ /* 102: */ void addMethod(CtMember method) /* 103: */ { /* 104: 65 */ method.next = this.methodTail.next; /* 105: 66 */ this.methodTail.next = method; /* 106: 67 */ if (this.methodTail == this.consTail) /* 107: */ { /* 108: 68 */ this.consTail = method; /* 109: 69 */ if (this.methodTail == this.fieldTail) { /* 110: 70 */ this.fieldTail = method; /* 111: */ } /* 112: */ } /* 113: 73 */ this.methodTail = method; /* 114: */ }
/* 143: */ /* 144: */ void remove(CtMember mem) /* 145: */ { /* 146:104 */ CtMember m = this; /* 147: */ CtMember node; /* 148:106 */ while ((node = m.next) != this) /* 149: */ { /* 150:107 */ if (node == mem) /* 151: */ { /* 152:108 */ m.next = node.next; /* 153:109 */ if (node == this.methodTail) { /* 154:110 */ this.methodTail = m; /* 155: */ } /* 156:112 */ if (node == this.consTail) { /* 157:113 */ this.consTail = m; /* 158: */ } /* 159:115 */ if (node != this.fieldTail) { /* 160: */ break; /* 161: */ } /* 162:116 */ this.fieldTail = m; break; /* 163: */ } /* 164:121 */ m = m.next; /* 165: */ } /* 166: */ }
/* 125: */ /* 126: */ void addField(CtMember field) /* 127: */ { /* 128: 88 */ field.next = this; /* 129: 89 */ this.fieldTail.next = field; /* 130: 90 */ this.fieldTail = field; /* 131: */ }