/** * Get the children of this node. */ public List getChildren() { if(children==null) { children = new ArrayList(); Iterator it = fields.iterator(); while(it.hasNext()) { Field f = (Field) it.next(); try { children.add(new ObjectInspectorAttributeNode(this, f, null)); } catch (IllegalAccessException e) { // Field not accessible - ignore for children ? children.add("-ERROR- Exception occurred: " +e); } } } return children; }