/** * Creates and returns a new manifest node to be inserted into the tree or * <code>null</code> if the node does not exist. * * <p> * Subclasses should override this method as required. * </p> * * @param parentNode parent node * @param element element the node is to be created for * @return new manifest node or <code>null</code> if none */ protected ManifestNode createNode(ManifestNode parentNode, IElementDescriptor element) { int vis = VISIBILITY_INHERITED; if (element.getElementType() == IElementDescriptor.PACKAGE) { vis = VisibilityModifiers.API; } if (ApiPlugin.DEBUG_API_DESCRIPTION) { StringBuilder buffer = new StringBuilder(); buffer.append("Creating new manifest node for element: "); //$NON-NLS-1$ buffer.append(element); buffer.append(" and adding it to parent node: "); //$NON-NLS-1$ buffer.append(parentNode); System.out.println(buffer.toString()); } return new ManifestNode(parentNode, element, vis, RestrictionModifiers.NO_RESTRICTIONS); }
/** * Constructs a new manifest node. * * @param parent * @param element * @param vis * @param res * @return */ ManifestNode newNode(ManifestNode parent, IElementDescriptor element, int vis, int res) { return new ManifestNode(parent, element, vis, res); }