1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.core;
13 import net.sourceforge.phpdt.core.compiler.IProblem;
16 * Adapter of the requestor interface <code>ICompletionRequestor</code>.
18 * This class is intended to be instanciated and subclassed by clients.
21 * @see ICompletionRequestor
24 public class CompletionRequestorAdapter implements ICompletionRequestor {
27 * @see ICompletionRequestor#acceptAnonymousType(char[], char[], char[][],
28 * char[][], char[][], char[], int, int, int)
30 public void acceptAnonymousType(char[] superTypePackageName,
31 char[] superTypeName, char[][] parameterPackageNames,
32 char[][] parameterTypeNames, char[][] parameterNames,
33 char[] completionName, int modifiers, int completionStart,
34 int completionEnd, int relevance) {
38 * @see ICompletionRequestor#acceptClass(char[], char[], char[], int, int,
41 public void acceptClass(char[] packageName, char[] className,
42 char[] completionName, int modifiers, int completionStart,
43 int completionEnd, int relevance) {
47 * @see ICompletionRequestor#acceptError(IProblem)
49 public void acceptError(IProblem error) {
53 * @see ICompletionRequestor#acceptField(char[], char[], char[], char[],
54 * char[], char[], int, int, int)
56 public void acceptField(char[] declaringTypePackageName,
57 char[] declaringTypeName, char[] name, char[] typePackageName,
58 char[] typeName, char[] completionName, int modifiers,
59 int completionStart, int completionEnd, int relevance) {
63 * @see ICompletionRequestor#acceptInterface(char[], char[], char[], int,
66 public void acceptInterface(char[] packageName, char[] interfaceName,
67 char[] completionName, int modifiers, int completionStart,
68 int completionEnd, int relevance) {
72 * @see ICompletionRequestor#acceptKeyword(char[], int, int)
74 public void acceptKeyword(char[] keywordName, int completionStart,
75 int completionEnd, int relevance) {
79 * @see ICompletionRequestor#acceptLabel(char[], int, int)
81 public void acceptLabel(char[] labelName, int completionStart,
82 int completionEnd, int relevance) {
86 * @see ICompletionRequestor#acceptLocalVariable(char[], char[], char[],
89 public void acceptLocalVariable(char[] name, char[] typePackageName,
90 char[] typeName, int modifiers, int completionStart,
91 int completionEnd, int relevance) {
95 * @see ICompletionRequestor#acceptMethod(char[], char[], char[], char[][],
96 * char[][], char[][], char[], char[], char[], int, int, int)
98 public void acceptMethod(char[] declaringTypePackageName,
99 char[] declaringTypeName, char[] selector,
100 char[][] parameterPackageNames, char[][] parameterTypeNames,
101 char[][] parameterNames, char[] returnTypePackageName,
102 char[] returnTypeName, char[] completionName, int modifiers,
103 int completionStart, int completionEnd, int relevance) {
107 * @see ICompletionRequestor#acceptMethodDeclaration(char[], char[], char[],
108 * char[][], char[][], char[][], char[], char[], char[], int, int, int)
110 public void acceptMethodDeclaration(char[] declaringTypePackageName,
111 char[] declaringTypeName, char[] selector,
112 char[][] parameterPackageNames, char[][] parameterTypeNames,
113 char[][] parameterNames, char[] returnTypePackageName,
114 char[] returnTypeName, char[] completionName, int modifiers,
115 int completionStart, int completionEnd, int relevance) {
119 * @see ICompletionRequestor#acceptModifier(char[], int, int)
121 public void acceptModifier(char[] modifierName, int completionStart,
122 int completionEnd, int relevance) {
126 * @see ICompletionRequestor#acceptPackage(char[], char[], int, int)
128 public void acceptPackage(char[] packageName, char[] completionName,
129 int completionStart, int completionEnd, int relevance) {
133 * @see ICompletionRequestor#acceptType(char[], char[], char[], int, int)
135 public void acceptType(char[] packageName, char[] typeName,
136 char[] completionName, int completionStart, int completionEnd,
141 * @see ICompletionRequestor#acceptVariableName(char[], char[], char[],
144 public void acceptVariableName(char[] typePackageName, char[] typeName,
145 char[] name, char[] completionName, int completionStart,
146 int completionEnd, int relevance) {