(name)
| 10492 | this._methods.push(method); |
| 10493 | } |
| 10494 | findMethod(name) { |
| 10495 | for (const method of this._methods) { |
| 10496 | if (name === method.name()) { |
| 10497 | return method; |
| 10498 | } |
| 10499 | } |
| 10500 | return null; |
| 10501 | } |
| 10502 | getMethod(name) { |
| 10503 | const method = this.findMethod(name); |
| 10504 | if (!method) { |