/** * Returns a collection of (immediate) children of this node of the * specified type. * * @param type - one of the JEM_* constants defined by JavaElement */ public ArrayList getChildrenOfType(int type) throws JavaModelException { IJavaElement[] children = getChildren(); int size = children.length; ArrayList list = new ArrayList(size); for (int i = 0; i < size; ++i) { JavaElement elt = (JavaElement)children[i]; if (elt.getElementType() == type) { list.add(elt); } } return list; } /**
/** * Returns a collection of (immediate) children of this node of the * specified type. * * @param type - one of the JEM_* constants defined by JavaElement */ public ArrayList getChildrenOfType(int type) throws JavaModelException { IJavaElement[] children = getChildren(); int size = children.length; ArrayList list = new ArrayList(size); for (int i = 0; i < size; ++i) { JavaElement elt = (JavaElement)children[i]; if (elt.getElementType() == type) { list.add(elt); } } return list; } /**
/** * Returns a collection of (immediate) children of this node of the * specified type. * * @param type - one of the JEM_* constants defined by JavaElement */ public ArrayList getChildrenOfType(int type) throws JavaModelException { IJavaElement[] children = getChildren(); int size = children.length; ArrayList list = new ArrayList(size); for (int i = 0; i < size; ++i) { JavaElement elt = (JavaElement)children[i]; if (elt.getElementType() == type) { list.add(elt); } } return list; } /**
/** * Returns a collection of (immediate) children of this node of the * specified type. * * @param type - one of the JEM_* constants defined by JavaElement */ public ArrayList getChildrenOfType(int type) throws JavaModelException { IJavaElement[] children = getChildren(); int size = children.length; ArrayList list = new ArrayList(size); for (int i = 0; i < size; ++i) { JavaElement elt = (JavaElement)children[i]; if (elt.getElementType() == type) { list.add(elt); } } return list; } /**
/** * Returns a collection of (immediate) children of this node of the * specified type. * * @param type - one of the JEM_* constants defined by JavaElement */ public ArrayList getChildrenOfType(int type) throws JavaModelException { IJavaElement[] children = getChildren(); int size = children.length; ArrayList list = new ArrayList(size); for (int i = 0; i < size; ++i) { JavaElement elt = (JavaElement)children[i]; if (elt.getElementType() == type) { list.add(elt); } } return list; } /**
/** * Returns a collection of (immediate) children of this node of the * specified type. * * @param type - one of the JEM_* constants defined by JavaElement */ public ArrayList getChildrenOfType(int type) throws JavaModelException { IJavaElement[] children = getChildren(); int size = children.length; ArrayList list = new ArrayList(size); for (int i = 0; i < size; ++i) { JavaElement elt = (JavaElement)children[i]; if (elt.getElementType() == type) { list.add(elt); } } return list; } /**
IJavaElement[] children = getChildren(); for (int i = children.length-1; i >= 0; i--) { IJavaElement aChild = children[i];
IJavaElement[] children = getChildren(); for (int i = children.length-1; i >= 0; i--) { IJavaElement aChild = children[i];
IJavaElement[] children = getChildren(); for (int i = children.length-1; i >= 0; i--) { IJavaElement aChild = children[i];
IJavaElement[] children = getChildren(); for (int i = children.length-1; i >= 0; i--) { IJavaElement aChild = children[i];
IJavaElement[] children = getChildren(); for (int i = children.length-1; i >= 0; i--) { IJavaElement aChild = children[i];
IJavaElement[] children = getChildren(); for (int i = children.length-1; i >= 0; i--) { IJavaElement aChild = children[i];