01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package org.terracotta.dso.views;
05:
06: public class IncludesWrapper {
07: InstrumentedClassesWrapper m_instrumentedClasses;
08: IncludeWrapper[] children;
09:
10: IncludesWrapper(InstrumentedClassesWrapper instrumentedClasses) {
11: m_instrumentedClasses = instrumentedClasses;
12: }
13:
14: IncludeWrapper[] createIncludeWrappers() {
15: int count = m_instrumentedClasses.sizeOfIncludeArray();
16: children = new IncludeWrapper[count];
17:
18: for (int i = 0; i < count; i++) {
19: children[i] = new IncludeWrapper(m_instrumentedClasses, i);
20: }
21:
22: return children;
23: }
24:
25: IncludeWrapper[] getChildren() {
26: return children;
27: }
28:
29: IncludeWrapper getChildAt(int index) {
30: return children != null ? children[index] : null;
31: }
32:
33: int sizeOfIncludeArray() {
34: return m_instrumentedClasses.sizeOfIncludeArray();
35: }
36:
37: public String toString() {
38: return "Includes";
39: }
40: }
|