output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPositions, long argNamePos) throws InvalidInputException { // Create argument as we may need it after char[] argName = name==null ? CharOperation.NO_CHAR : name; Expression expression = (Expression) super.createArgumentReference(argName, dim, isVarargs, typeRef, dimPositions, argNamePos); // See if completion location is in argument int refStart = ((TypeReference)typeRef).sourceStart; int refEnd = ((TypeReference)typeRef).sourceEnd; boolean inCompletion = (refStart <= this.cursorLocation && this.cursorLocation <= refEnd) // completion cursor is between first and last stacked identifiers || ((refStart == (refEnd+1) && refEnd == this.cursorLocation)); // or it's a completion on empty token if (this.completionNode == null && inCompletion) { JavadocArgumentExpression javadocArgument = (JavadocArgumentExpression) expression; TypeReference expressionType = javadocArgument.argument.type; if (expressionType instanceof JavadocSingleTypeReference) { this.completionNode = new CompletionOnJavadocSingleTypeReference((JavadocSingleTypeReference) expressionType); } else if (expressionType instanceof JavadocQualifiedTypeReference) { this.completionNode = new CompletionOnJavadocQualifiedTypeReference((JavadocQualifiedTypeReference) expressionType); } if (CompletionEngine.DEBUG) { System.out.println(" completion argument="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; } return expression; }
@Override protected Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPositions, long argNamePos) throws InvalidInputException { // Create argument as we may need it after char[] argName = name==null ? CharOperation.NO_CHAR : name; Expression expression = (Expression) super.createArgumentReference(argName, dim, isVarargs, typeRef, dimPositions, argNamePos); // See if completion location is in argument int refStart = ((TypeReference)typeRef).sourceStart; int refEnd = ((TypeReference)typeRef).sourceEnd; boolean inCompletion = (refStart <= this.cursorLocation && this.cursorLocation <= refEnd) // completion cursor is between first and last stacked identifiers || ((refStart == (refEnd+1) && refEnd == this.cursorLocation)); // or it's a completion on empty token if (this.completionNode == null && inCompletion) { JavadocArgumentExpression javadocArgument = (JavadocArgumentExpression) expression; TypeReference expressionType = javadocArgument.argument.type; if (expressionType instanceof JavadocSingleTypeReference) { this.completionNode = new CompletionOnJavadocSingleTypeReference((JavadocSingleTypeReference) expressionType); } else if (expressionType instanceof JavadocQualifiedTypeReference) { this.completionNode = new CompletionOnJavadocQualifiedTypeReference((JavadocQualifiedTypeReference) expressionType); } if (CompletionEngine.DEBUG) { System.out.println(" completion argument="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; } return expression; }
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPositions, long argNamePos) throws InvalidInputException { // Create argument as we may need it after char[] argName = name==null ? CharOperation.NO_CHAR : name; Expression expression = (Expression) super.createArgumentReference(argName, dim, isVarargs, typeRef, dimPositions, argNamePos); // See if completion location is in argument int refStart = ((TypeReference)typeRef).sourceStart; int refEnd = ((TypeReference)typeRef).sourceEnd; boolean inCompletion = (refStart <= this.cursorLocation && this.cursorLocation <= refEnd) // completion cursor is between first and last stacked identifiers || ((refStart == (refEnd+1) && refEnd == this.cursorLocation)); // or it's a completion on empty token if (this.completionNode == null && inCompletion) { JavadocArgumentExpression javadocArgument = (JavadocArgumentExpression) expression; TypeReference expressionType = javadocArgument.argument.type; if (expressionType instanceof JavadocSingleTypeReference) { this.completionNode = new CompletionOnJavadocSingleTypeReference((JavadocSingleTypeReference) expressionType); } else if (expressionType instanceof JavadocQualifiedTypeReference) { this.completionNode = new CompletionOnJavadocQualifiedTypeReference((JavadocQualifiedTypeReference) expressionType); } if (CompletionEngine.DEBUG) { System.out.println(" completion argument="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; } return expression; }
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[this.identifierPtr], this.identifierPositionStack[this.identifierPtr], if (start <= this.cursorLocation && this.cursorLocation <= end) { if (i == startPtr) { this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[startPtr], this.identifierPositionStack[startPtr],
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[this.identifierPtr], this.identifierPositionStack[this.identifierPtr], if (start <= this.cursorLocation && this.cursorLocation <= end) { if (i == startPtr) { this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[startPtr], this.identifierPositionStack[startPtr],
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPositions, long argNamePos) throws InvalidInputException { // Create argument as we may need it after char[] argName = name==null ? CharOperation.NO_CHAR : name; Expression expression = (Expression) super.createArgumentReference(argName, dim, isVarargs, typeRef, dimPositions, argNamePos); // See if completion location is in argument int refStart = ((TypeReference)typeRef).sourceStart; int refEnd = ((TypeReference)typeRef).sourceEnd; boolean inCompletion = (refStart <= this.cursorLocation && this.cursorLocation <= refEnd) // completion cursor is between first and last stacked identifiers || ((refStart == (refEnd+1) && refEnd == this.cursorLocation)); // or it's a completion on empty token if (this.completionNode == null && inCompletion) { JavadocArgumentExpression javadocArgument = (JavadocArgumentExpression) expression; TypeReference expressionType = javadocArgument.argument.type; if (expressionType instanceof JavadocSingleTypeReference) { this.completionNode = new CompletionOnJavadocSingleTypeReference((JavadocSingleTypeReference) expressionType); } else if (expressionType instanceof JavadocQualifiedTypeReference) { this.completionNode = new CompletionOnJavadocQualifiedTypeReference((JavadocQualifiedTypeReference) expressionType); } if (CompletionEngine.DEBUG) { System.out.println(" completion argument="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; } return expression; }
output.append("infos:"); //$NON-NLS-1$ char separator = 0; if (completeAnException()) { output.append("exception"); //$NON-NLS-1$ separator = ','; if (completeInText()) { if (separator != 0) output.append(separator); output.append("text"); //$NON-NLS-1$ separator = ','; if (completeBaseTypes()) { if (separator != 0) output.append(separator); output.append("base types"); //$NON-NLS-1$ separator = ','; if (completeFormalReference()) { if (separator != 0) output.append(separator); output.append("formal reference"); //$NON-NLS-1$
protected Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPositions, long argNamePos) throws InvalidInputException { // Create argument as we may need it after char[] argName = name==null ? CharOperation.NO_CHAR : name; Expression expression = (Expression) super.createArgumentReference(argName, dim, isVarargs, typeRef, dimPositions, argNamePos); // See if completion location is in argument int refStart = ((TypeReference)typeRef).sourceStart; int refEnd = ((TypeReference)typeRef).sourceEnd; boolean inCompletion = (refStart <= this.cursorLocation && this.cursorLocation <= refEnd) // completion cursor is between first and last stacked identifiers || ((refStart == (refEnd+1) && refEnd == this.cursorLocation)); // or it's a completion on empty token if (this.completionNode == null && inCompletion) { JavadocArgumentExpression javadocArgument = (JavadocArgumentExpression) expression; TypeReference expressionType = javadocArgument.argument.type; if (expressionType instanceof JavadocSingleTypeReference) { this.completionNode = new CompletionOnJavadocSingleTypeReference((JavadocSingleTypeReference) expressionType); } else if (expressionType instanceof JavadocQualifiedTypeReference) { this.completionNode = new CompletionOnJavadocQualifiedTypeReference((JavadocQualifiedTypeReference) expressionType); } if (CompletionEngine.DEBUG) { System.out.println(" completion argument="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; } return expression; }
protected Object createArgumentReference(char[] name, int dim, boolean isVarargs, Object typeRef, long[] dimPositions, long argNamePos) throws InvalidInputException { // Create argument as we may need it after char[] argName = name==null ? CharOperation.NO_CHAR : name; Expression expression = (Expression) super.createArgumentReference(argName, dim, isVarargs, typeRef, dimPositions, argNamePos); // See if completion location is in argument int refStart = ((TypeReference)typeRef).sourceStart; int refEnd = ((TypeReference)typeRef).sourceEnd; boolean inCompletion = (refStart <= this.cursorLocation && this.cursorLocation <= refEnd) // completion cursor is between first and last stacked identifiers || ((refStart == (refEnd+1) && refEnd == this.cursorLocation)); // or it's a completion on empty token if (this.completionNode == null && inCompletion) { JavadocArgumentExpression javadocArgument = (JavadocArgumentExpression) expression; TypeReference expressionType = javadocArgument.argument.type; if (expressionType instanceof JavadocSingleTypeReference) { this.completionNode = new CompletionOnJavadocSingleTypeReference((JavadocSingleTypeReference) expressionType); } else if (expressionType instanceof JavadocQualifiedTypeReference) { this.completionNode = new CompletionOnJavadocQualifiedTypeReference((JavadocQualifiedTypeReference) expressionType); } if (CompletionEngine.DEBUG) { System.out.println(" completion argument="+this.completionNode); //$NON-NLS-1$ } return this.completionNode; } return expression; }
this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[this.identifierPtr], this.identifierPositionStack[this.identifierPtr], if (start <= this.cursorLocation && this.cursorLocation <= end) { if (i == startPtr) { this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[startPtr], this.identifierPositionStack[startPtr],
this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[this.identifierPtr], this.identifierPositionStack[this.identifierPtr], if (start <= this.cursorLocation && this.cursorLocation <= end) { if (i == startPtr) { this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[startPtr], this.identifierPositionStack[startPtr],
this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[this.identifierPtr], this.identifierPositionStack[this.identifierPtr], if (start <= this.cursorLocation && this.cursorLocation <= end) { if (i == startPtr) { this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[startPtr], this.identifierPositionStack[startPtr],
this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[this.identifierPtr], this.identifierPositionStack[this.identifierPtr], if (start <= this.cursorLocation && this.cursorLocation <= end) { if (i == startPtr) { this.completionNode = new CompletionOnJavadocSingleTypeReference( this.identifierStack[startPtr], this.identifierPositionStack[startPtr],