void appendText(FormatJavadocText text) { text.immutable = this.immutable; if (this.depth == text.depth) { addSeparator(text); this.sourceEnd = text.sourceEnd; if (text.isClosingHtmlTag()) { // close the tag this.htmlTagIndex = text.htmlTagIndex; } } else { appendNode(text); } if (text.isHtmlTag()) { switch (text.htmlTagIndex & JAVADOC_TAGS_ID_MASK) { case JAVADOC_CODE_TAGS_ID: text.linesBefore = this.htmlNodesPtr == -1 ? 0 : 2; break; case JAVADOC_SEPARATOR_TAGS_ID: text.linesBefore = 1; break; case JAVADOC_SINGLE_BREAK_TAG_ID: if (!text.isClosingHtmlTag()) text.linesBefore = 1; break; case JAVADOC_BREAK_TAGS_ID: if (!text.isClosingHtmlTag()) text.linesBefore = 1; } } } void appendNode(FormatJavadocNode node) {
void appendText(FormatJavadocText text) { text.immutable = this.immutable; if (this.depth == text.depth) { addSeparator(text); this.sourceEnd = text.sourceEnd; if (text.isClosingHtmlTag()) { // close the tag this.htmlTagIndex = text.htmlTagIndex; } } else { appendNode(text); } if (text.isHtmlTag()) { switch (text.htmlTagIndex & JAVADOC_TAGS_ID_MASK) { case JAVADOC_CODE_TAGS_ID: text.linesBefore = this.htmlNodesPtr == -1 ? 0 : 2; break; case JAVADOC_SEPARATOR_TAGS_ID: text.linesBefore = 1; break; case JAVADOC_SINGLE_BREAK_TAG_ID: if (!text.isClosingHtmlTag()) text.linesBefore = 1; break; case JAVADOC_BREAK_TAGS_ID: if (!text.isClosingHtmlTag()) text.linesBefore = 1; } } } void appendNode(FormatJavadocNode node) {
void appendText(FormatJavadocText text) { text.immutable = this.immutable; if (this.depth == text.depth) { addSeparator(text); this.sourceEnd = text.sourceEnd; if (text.isClosingHtmlTag()) { // close the tag this.htmlTagIndex = text.htmlTagIndex; } } else { appendNode(text); } if (text.isHtmlTag()) { switch (text.htmlTagIndex & JAVADOC_TAGS_ID_MASK) { case JAVADOC_CODE_TAGS_ID: text.linesBefore = this.htmlNodesPtr == -1 ? 0 : 2; break; case JAVADOC_SEPARATOR_TAGS_ID: text.linesBefore = 1; break; case JAVADOC_SINGLE_BREAK_TAG_ID: if (!text.isClosingHtmlTag()) text.linesBefore = 1; break; case JAVADOC_BREAK_TAGS_ID: if (!text.isClosingHtmlTag()) text.linesBefore = 1; } } } void appendNode(FormatJavadocNode node) {
void addBlock(FormatJavadocBlock block, int htmlLevel) { if (this.nodes != null) { FormatJavadocText[] textHierarchy = getTextHierarchy(block, htmlLevel); if (textHierarchy != null) { FormatJavadocText lastText = textHierarchy[htmlLevel]; if (lastText != null) { lastText.appendNode(block); for (int i=htmlLevel-1; i>=0; i--) { textHierarchy[i].sourceEnd = block.sourceEnd; } this.sourceEnd = block.sourceEnd; if (isParamTag()) { block.flags |= IN_PARAM_TAG; } else if (isDescription()) { block.flags |= IN_DESCRIPTION; } block.flags |= INLINED; return; } } } addNode(block); if (isParamTag()) { block.flags |= IN_PARAM_TAG; } else if (isDescription()) { block.flags |= IN_DESCRIPTION; } block.flags |= INLINED; }
void addBlock(FormatJavadocBlock block, int htmlLevel) { if (this.nodes != null) { FormatJavadocText[] textHierarchy = getTextHierarchy(block, htmlLevel); if (textHierarchy != null) { FormatJavadocText lastText = textHierarchy[htmlLevel]; if (lastText != null) { lastText.appendNode(block); for (int i=htmlLevel-1; i>=0; i--) { textHierarchy[i].sourceEnd = block.sourceEnd; } this.sourceEnd = block.sourceEnd; if (isParamTag()) { block.flags |= IN_PARAM_TAG; } else if (isDescription()) { block.flags |= IN_DESCRIPTION; } block.flags |= INLINED; return; } } } addNode(block); if (isParamTag()) { block.flags |= IN_PARAM_TAG; } else if (isDescription()) { block.flags |= IN_DESCRIPTION; } block.flags |= INLINED; }
void addBlock(FormatJavadocBlock block, int htmlLevel) { if (this.nodes != null) { FormatJavadocText[] textHierarchy = getTextHierarchy(block, htmlLevel); if (textHierarchy != null) { FormatJavadocText lastText = textHierarchy[htmlLevel]; if (lastText != null) { lastText.appendNode(block); for (int i=htmlLevel-1; i>=0; i--) { textHierarchy[i].sourceEnd = block.sourceEnd; } this.sourceEnd = block.sourceEnd; if (isParamTag()) { block.flags |= IN_PARAM_TAG; } else if (isDescription()) { block.flags |= IN_DESCRIPTION; } block.flags |= INLINED; return; } } } addNode(block); if (isParamTag()) { block.flags |= IN_PARAM_TAG; } else if (isDescription()) { block.flags |= IN_DESCRIPTION; } block.flags |= INLINED; }