protected Object createTypeReference(int primitiveToken) { int size = this.identifierLengthStack[this.identifierLengthPtr]; if (size == 0) return null; int start = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32); int lineStart = this.scanner.getLineNumber(start); if (size == 1) { return new FormatJavadocReference(this.identifierPositionStack[this.identifierPtr], lineStart); } long[] positions = new long[size]; System.arraycopy(this.identifierPositionStack, this.identifierPtr - size + 1, positions, 0, size); return new FormatJavadocReference((int) (positions[0] >>> 32), (int) positions[positions.length-1], lineStart); }
public void toStringDebug(StringBuffer buffer, char[] source) { if (this.tagValue > 0) { buffer.append(source, this.sourceStart, this.tagEnd-this.sourceStart+1); buffer.append(' '); } if (this.reference != null) { this.reference.toStringDebug(buffer, source); } for (int i=0; i<=this.nodesPtr; i++) { this.nodes[i].toStringDebug(buffer, source); } }
} else { buffer.append(" ("); //$NON-NLS-1$ this.reference.toString(buffer); buffer.append(")\n"); //$NON-NLS-1$
} else { buffer.append(" ("); //$NON-NLS-1$ this.reference.toString(buffer); buffer.append(")\n"); //$NON-NLS-1$
protected Object createTypeReference(int primitiveToken) { int size = this.identifierLengthStack[this.identifierLengthPtr]; if (size == 0) return null; int start = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32); int lineStart = this.scanner.getLineNumber(start); if (size == 1) { return new FormatJavadocReference(this.identifierPositionStack[this.identifierPtr], lineStart); } long[] positions = new long[size]; System.arraycopy(this.identifierPositionStack, this.identifierPtr - size + 1, positions, 0, size); return new FormatJavadocReference((int) (positions[0] >>> 32), (int) positions[positions.length-1], lineStart); }
public void toStringDebug(StringBuffer buffer, char[] source) { if (this.tagValue > 0) { buffer.append(source, this.sourceStart, this.tagEnd-this.sourceStart+1); buffer.append(' '); } if (this.reference != null) { this.reference.toStringDebug(buffer, source); } for (int i=0; i<=this.nodesPtr; i++) { this.nodes[i].toStringDebug(buffer, source); } }
} else { buffer.append(" ("); //$NON-NLS-1$ this.reference.toString(buffer); buffer.append(")\n"); //$NON-NLS-1$
protected Object createTypeReference(int primitiveToken) { int size = this.identifierLengthStack[this.identifierLengthPtr]; if (size == 0) return null; int start = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32); int lineStart = this.scanner.getLineNumber(start); if (size == 1) { return new FormatJavadocReference(this.identifierPositionStack[this.identifierPtr], lineStart); } long[] positions = new long[size]; System.arraycopy(this.identifierPositionStack, this.identifierPtr - size + 1, positions, 0, size); return new FormatJavadocReference((int) (positions[0] >>> 32), (int) positions[positions.length-1], lineStart); }
public void toStringDebug(StringBuffer buffer, char[] source) { if (this.tagValue > 0) { buffer.append(source, this.sourceStart, this.tagEnd-this.sourceStart+1); buffer.append(' '); } if (this.reference != null) { this.reference.toStringDebug(buffer, source); } for (int i=0; i<=this.nodesPtr; i++) { this.nodes[i].toStringDebug(buffer, source); } }
protected Object createFieldReference(Object receiver) throws InvalidInputException { int start = receiver == null ? this.memberStart : ((FormatJavadocReference)receiver).sourceStart; int lineStart = this.scanner.getLineNumber(start); return new FormatJavadocReference(start, (int) this.identifierPositionStack[0], lineStart); }
protected Object createFieldReference(Object receiver) throws InvalidInputException { int start = receiver == null ? this.memberStart : ((FormatJavadocReference)receiver).sourceStart; int lineStart = this.scanner.getLineNumber(start); return new FormatJavadocReference(start, (int) this.identifierPositionStack[0], lineStart); }
protected Object createFieldReference(Object receiver) throws InvalidInputException { int start = receiver == null ? this.memberStart : ((FormatJavadocReference)receiver).sourceStart; int lineStart = this.scanner.getLineNumber(start); return new FormatJavadocReference(start, (int) this.identifierPositionStack[0], lineStart); }
protected Object createMethodReference(Object receiver, List arguments) throws InvalidInputException { int start = receiver == null ? this.memberStart : ((FormatJavadocReference) receiver).sourceStart; int lineStart = this.scanner.getLineNumber(start); return new FormatJavadocReference(start, this.scanner.getCurrentTokenEndPosition(), lineStart); }
protected Object createMethodReference(Object receiver, List arguments) throws InvalidInputException { int start = receiver == null ? this.memberStart : ((FormatJavadocReference) receiver).sourceStart; int lineStart = this.scanner.getLineNumber(start); return new FormatJavadocReference(start, this.scanner.getCurrentTokenEndPosition(), lineStart); }
protected boolean createFakeReference(int start) { // synch scanner and parser positions this.scanner.currentPosition = this.index; // create reference in order to be able to format it int lineStart = this.scanner.getLineNumber(start); FormatJavadocReference reference = new FormatJavadocReference(start, this.index-1, lineStart); return pushSeeRef(reference); }
protected boolean createFakeReference(int start) { // synch scanner and parser positions this.scanner.currentPosition = this.index; // create reference in order to be able to format it int lineStart = this.scanner.getLineNumber(start); FormatJavadocReference reference = new FormatJavadocReference(start, this.index-1, lineStart); return pushSeeRef(reference); }
protected boolean createFakeReference(int start) { // synch scanner and parser positions this.scanner.currentPosition = this.index; // create reference in order to be able to format it int lineStart = this.scanner.getLineNumber(start); FormatJavadocReference reference = new FormatJavadocReference(start, this.index-1, lineStart); return pushSeeRef(reference); }
protected Object createMethodReference(Object receiver, List arguments) throws InvalidInputException { int start = receiver == null ? this.memberStart : ((FormatJavadocReference) receiver).sourceStart; int lineStart = this.scanner.getLineNumber(start); return new FormatJavadocReference(start, this.scanner.getCurrentTokenEndPosition(), lineStart); }
protected boolean pushParamName(boolean isTypeParam) { int lineTagStart = this.scanner.getLineNumber(this.tagSourceStart); FormatJavadocBlock block = new FormatJavadocBlock(this.tagSourceStart, this.tagSourceEnd, lineTagStart, TAG_PARAM_VALUE); int start = (int) (this.identifierPositionStack[0] >>> 32); int lineStart = this.scanner.getLineNumber(start); FormatJavadocReference reference; reference = new FormatJavadocReference(start, (int) this.identifierPositionStack[isTypeParam ? 2 : 0], lineStart); block.reference = reference; block.sourceEnd = reference.sourceEnd; pushOnAstStack(block, true); return true; }
protected boolean pushParamName(boolean isTypeParam) { int lineTagStart = this.scanner.getLineNumber(this.tagSourceStart); FormatJavadocBlock block = new FormatJavadocBlock(this.tagSourceStart, this.tagSourceEnd, lineTagStart, TAG_PARAM_VALUE); int start = (int) (this.identifierPositionStack[0] >>> 32); int lineStart = this.scanner.getLineNumber(start); FormatJavadocReference reference; reference = new FormatJavadocReference(start, (int) this.identifierPositionStack[isTypeParam ? 2 : 0], lineStart); block.reference = reference; block.sourceEnd = reference.sourceEnd; pushOnAstStack(block, true); return true; }