void clean() { int length = this.nodes == null ? 0 : this.nodes.length; if (this.nodesPtr != (length-1)) { System.arraycopy(this.nodes, 0, this.nodes = new FormatJavadocNode[this.nodesPtr+1], 0, this.nodesPtr+1); } for (int i=0; i<=this.nodesPtr; i++) { this.nodes[i].clean(); } }
protected void refreshInlineTagPosition(int previousPosition) { if (this.astPtr != -1) { FormatJavadocNode previousBlock = (FormatJavadocNode) this.astStack[this.astPtr]; if (this.inlineTagStarted) { FormatJavadocNode lastNode = previousBlock; while (lastNode != null) { lastNode.sourceEnd = previousPosition; lastNode = lastNode.getLastNode(); } } } }
private void addSeparator(FormatJavadocNode node) { // Just append the text if (++this.separatorsPtr == 0) { // lazy initialization this.separators = new long[DEFAULT_ARRAY_SIZE]; this.htmlIndexes = new int[DEFAULT_ARRAY_SIZE]; } else { // resize if needed if (this.separatorsPtr == this.separators.length) { int size = this.separatorsPtr + DEFAULT_ARRAY_SIZE; System.arraycopy(this.separators, 0, (this.separators = new long[size]), 0, this.separatorsPtr); System.arraycopy(this.htmlIndexes, 0, (this.htmlIndexes = new int[size]), 0, this.separatorsPtr); } } this.separators[this.separatorsPtr] = (((long) this.sourceEnd) << 32) + node.sourceStart; this.htmlIndexes[this.separatorsPtr] = node.isText() ? ((FormatJavadocText)node).htmlTagIndex : -1; }
if (text.htmlNodesPtr >= 0 && ptr <= text.htmlNodesPtr && end > text.htmlNodes[ptr].sourceStart) { FormatJavadocNode node = text.htmlNodes[ptr]; FormatJavadocText htmlTag = node.isText() ? (FormatJavadocText) node : null; int newLines = htmlTag == null ? 0 : htmlTag.linesBefore; if (linesAfter > newLines) { addReplaceEdit(textStart, previousEnd, buffer.toString()); boolean immutable = node.isImmutable(); if (newLines == 0) { newLines = printJavadocBlockNodesNewLines(block, node, previousEnd); if (node.isText()) { if (immutable) {
while (lastNode != null && lastNode.isText()) { lastNode = lastNode.getLastNode();
protected void toString(StringBuffer buffer) { buffer.append("ref"); //$NON-NLS-1$ super.toString(buffer); } }
public String toStringDebug(char[] source) { StringBuffer buffer = new StringBuffer(); toStringDebug(buffer, source); return buffer.toString(); }
void setHeaderLine(int javadocLineStart) { if (javadocLineStart == this.lineStart) { this.flags |= ON_HEADER_LINE; } for (int i=0; i<this.nodesPtr; i++) { this.nodes[i].setHeaderLine(javadocLineStart); } }
if (text.htmlNodesPtr >= 0 && ptr <= text.htmlNodesPtr && end > text.htmlNodes[ptr].sourceStart) { FormatJavadocNode node = text.htmlNodes[ptr]; FormatJavadocText htmlTag = node.isText() ? (FormatJavadocText) node : null; int newLines = htmlTag == null ? 0 : htmlTag.linesBefore; if (linesAfter > newLines) { addReplaceEdit(textStart, previousEnd, buffer.toString()); boolean immutable = node.isImmutable(); if (newLines == 0) { newLines = printJavadocBlockNodesNewLines(block, node, previousEnd); if (node.isText()) { if (immutable) {
while (lastNode != null && lastNode.isText()) { lastNode = lastNode.getLastNode();
protected void toString(StringBuffer buffer) { buffer.append("ref"); //$NON-NLS-1$ super.toString(buffer); } }
public String toStringDebug(char[] source) { StringBuffer buffer = new StringBuffer(); toStringDebug(buffer, source); return buffer.toString(); }
void setHeaderLine(int javadocLineStart) { if (javadocLineStart == this.lineStart) { this.flags |= ON_HEADER_LINE; } for (int i=0; i<this.nodesPtr; i++) { this.nodes[i].setHeaderLine(javadocLineStart); } }
if (text.htmlNodesPtr >= 0 && ptr <= text.htmlNodesPtr && end > text.htmlNodes[ptr].sourceStart) { FormatJavadocNode node = text.htmlNodes[ptr]; FormatJavadocText htmlTag = node.isText() ? (FormatJavadocText) node : null; int newLines = htmlTag == null ? 0 : htmlTag.linesBefore; if (linesAfter > newLines) { addReplaceEdit(textStart, previousEnd, buffer.toString()); boolean immutable = node.isImmutable(); if (newLines == 0) { newLines = printJavadocBlockNodesNewLines(block, node, previousEnd); if (node.isText()) { if (immutable) {
while (lastNode != null && lastNode.isText()) { lastNode = lastNode.getLastNode();
private void addSeparator(FormatJavadocNode node) { // Just append the text if (++this.separatorsPtr == 0) { // lazy initialization this.separators = new long[DEFAULT_ARRAY_SIZE]; this.htmlIndexes = new int[DEFAULT_ARRAY_SIZE]; } else { // resize if needed if (this.separatorsPtr == this.separators.length) { int size = this.separatorsPtr + DEFAULT_ARRAY_SIZE; System.arraycopy(this.separators, 0, (this.separators = new long[size]), 0, this.separatorsPtr); System.arraycopy(this.htmlIndexes, 0, (this.htmlIndexes = new int[size]), 0, this.separatorsPtr); } } this.separators[this.separatorsPtr] = (((long) this.sourceEnd) << 32) + node.sourceStart; this.htmlIndexes[this.separatorsPtr] = node.isText() ? ((FormatJavadocText)node).htmlTagIndex : -1; }
protected void toString(StringBuffer buffer) { buffer.append("ref"); //$NON-NLS-1$ super.toString(buffer); } }
public String toStringDebug(char[] source) { StringBuffer buffer = new StringBuffer(); toStringDebug(buffer, source); return buffer.toString(); }
void clean() { int length = this.nodes == null ? 0 : this.nodes.length; if (this.nodesPtr != (length-1)) { System.arraycopy(this.nodes, 0, this.nodes = new FormatJavadocNode[this.nodesPtr+1], 0, this.nodesPtr+1); } for (int i=0; i<=this.nodesPtr; i++) { this.nodes[i].clean(); } }
void setHeaderLine(int javadocLineStart) { if (javadocLineStart == this.lineStart) { this.flags |= ON_HEADER_LINE; } for (int i=0; i<this.nodesPtr; i++) { this.nodes[i].setHeaderLine(javadocLineStart); } }