01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package org.terracotta.dso.views;
06:
07: public class DistributedMethodWrapper {
08: private DistributedMethodsWrapper m_parent;
09: private int m_index;
10:
11: DistributedMethodWrapper(DistributedMethodsWrapper parent, int index) {
12: m_parent = parent;
13: m_index = index;
14: }
15:
16: DistributedMethodsWrapper getParent() {
17: return m_parent;
18: }
19:
20: String getMethodName() {
21: return m_parent.getMethodExpressionArray(m_index);
22: }
23:
24: void remove() {
25: m_parent.removeMethodExpression(m_index);
26: }
27:
28: public String toString() {
29: return getMethodName();
30: }
31: }
|