KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > SourceElementRequestorAdapter


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.compiler;
12
13 import org.eclipse.jdt.core.compiler.CategorizedProblem;
14
15 public class SourceElementRequestorAdapter implements ISourceElementRequestor {
16
17     /**
18      * @see ISourceElementRequestor#acceptConstructorReference(char[], int, int)
19      */

20     public void acceptConstructorReference(
21         char[] typeName,
22         int argCount,
23         int sourcePosition) {
24         // default implementation: do nothing
25
}
26
27     /**
28      * @see ISourceElementRequestor#acceptFieldReference(char[], int)
29      */

30     public void acceptFieldReference(char[] fieldName, int sourcePosition) {
31         // default implementation: do nothing
32
}
33
34     /**
35      * @see ISourceElementRequestor#acceptImport(int, int, char[][], boolean, int)
36      */

37     public void acceptImport(
38         int declarationStart,
39         int declarationEnd,
40         char[][] tokens,
41         boolean onDemand,
42         int modifiers) {
43         // default implementation: do nothing
44
}
45
46     /**
47      * @see ISourceElementRequestor#acceptLineSeparatorPositions(int[])
48      */

49     public void acceptLineSeparatorPositions(int[] positions) {
50         // default implementation: do nothing
51
}
52
53     /**
54      * @see ISourceElementRequestor#acceptMethodReference(char[], int, int)
55      */

56     public void acceptMethodReference(
57         char[] methodName,
58         int argCount,
59         int sourcePosition) {
60         // default implementation: do nothing
61
}
62
63     /**
64      * @see ISourceElementRequestor#acceptPackage(int, int, char[])
65      */

66     public void acceptPackage(
67         int declarationStart,
68         int declarationEnd,
69         char[] name) {
70         // default implementation: do nothing
71
}
72
73     /**
74      * @see ISourceElementRequestor#acceptProblem(CategorizedProblem)
75      */

76     public void acceptProblem(CategorizedProblem problem) {
77         // default implementation: do nothing
78
}
79
80     /**
81      * @see ISourceElementRequestor#acceptTypeReference(char[][], int, int)
82      */

83     public void acceptTypeReference(
84         char[][] typeName,
85         int sourceStart,
86         int sourceEnd) {
87         // default implementation: do nothing
88
}
89
90     /**
91      * @see ISourceElementRequestor#acceptTypeReference(char[], int)
92      */

93     public void acceptTypeReference(char[] typeName, int sourcePosition) {
94         // default implementation: do nothing
95
}
96
97     /**
98      * @see ISourceElementRequestor#acceptUnknownReference(char[][], int, int)
99      */

100     public void acceptUnknownReference(
101         char[][] name,
102         int sourceStart,
103         int sourceEnd) {
104         // default implementation: do nothing
105
}
106
107     /**
108      * @see ISourceElementRequestor#acceptUnknownReference(char[], int)
109      */

110     public void acceptUnknownReference(char[] name, int sourcePosition) {
111         // default implementation: do nothing
112
}
113
114     /**
115      * @see ISourceElementRequestor#enterCompilationUnit()
116      */

117     public void enterCompilationUnit() {
118         // default implementation: do nothing
119
}
120
121     public void enterConstructor(MethodInfo methodInfo) {
122         // default implementation: do nothing
123
}
124     
125     /**
126      * @see ISourceElementRequestor#enterField(FieldInfo)
127      */

128     public void enterField(FieldInfo fieldInfo) {
129         // default implementation: do nothing
130
}
131     
132     /**
133      * @see ISourceElementRequestor#enterInitializer(int, int)
134      */

135     public void enterInitializer(int declarationStart, int modifiers) {
136         // default implementation: do nothing
137
}
138
139     public void enterMethod(MethodInfo methodInfo) {
140         // default implementation: do nothing
141
}
142     
143     public void enterType(TypeInfo typeInfo) {
144         // default implementation: do nothing
145
}
146     
147     /**
148      * @see ISourceElementRequestor#exitCompilationUnit(int)
149      */

150     public void exitCompilationUnit(int declarationEnd) {
151         // default implementation: do nothing
152
}
153
154     /**
155      * @see ISourceElementRequestor#exitConstructor(int)
156      */

157     public void exitConstructor(int declarationEnd) {
158         // default implementation: do nothing
159
}
160
161     /**
162      * @see ISourceElementRequestor#exitField(int, int, int)
163      */

164     public void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd) {
165         // default implementation: do nothing
166
}
167
168     /**
169      * @see ISourceElementRequestor#exitInitializer(int)
170      */

171     public void exitInitializer(int declarationEnd) {
172         // default implementation: do nothing
173
}
174
175     /**
176      * @see ISourceElementRequestor#exitMethod(int, int, int)
177      */

178     public void exitMethod(int declarationEnd, int defaultValueStart, int defaultValueEnd) {
179         // default implementation: do nothing
180
}
181     
182     /**
183      * @see ISourceElementRequestor#exitType(int)
184      */

185     public void exitType(int declarationEnd) {
186         // default implementation: do nothing
187
}
188
189 }
190
191
Popular Tags