langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/api/WrappingJavaFileManager.java
equal
deleted
inserted
replaced
33 import java.util.Set; |
33 import java.util.Set; |
34 |
34 |
35 import javax.tools.*; |
35 import javax.tools.*; |
36 import javax.tools.JavaFileObject.Kind; |
36 import javax.tools.JavaFileObject.Kind; |
37 |
37 |
|
38 import com.sun.tools.javac.util.DefinedBy; |
|
39 import com.sun.tools.javac.util.DefinedBy.Api; |
|
40 |
38 /** |
41 /** |
39 * Wraps all calls to a given file manager. Subclasses of this class |
42 * Wraps all calls to a given file manager. Subclasses of this class |
40 * might override some of these methods and might also provide |
43 * might override some of these methods and might also provide |
41 * additional fields and methods. |
44 * additional fields and methods. |
42 * |
45 * |
132 } |
135 } |
133 |
136 |
134 /** |
137 /** |
135 * @throws IllegalStateException {@inheritDoc} |
138 * @throws IllegalStateException {@inheritDoc} |
136 */ |
139 */ |
|
140 @DefinedBy(Api.COMPILER) |
137 public Iterable<JavaFileObject> list(Location location, |
141 public Iterable<JavaFileObject> list(Location location, |
138 String packageName, |
142 String packageName, |
139 Set<Kind> kinds, |
143 Set<Kind> kinds, |
140 boolean recurse) |
144 boolean recurse) |
141 throws IOException |
145 throws IOException |
144 } |
148 } |
145 |
149 |
146 /** |
150 /** |
147 * @throws IllegalStateException {@inheritDoc} |
151 * @throws IllegalStateException {@inheritDoc} |
148 */ |
152 */ |
|
153 @DefinedBy(Api.COMPILER) |
149 public String inferBinaryName(Location location, JavaFileObject file) { |
154 public String inferBinaryName(Location location, JavaFileObject file) { |
150 return super.inferBinaryName(location, unwrap(file)); |
155 return super.inferBinaryName(location, unwrap(file)); |
151 } |
156 } |
152 |
157 |
153 /** |
158 /** |
154 * @throws IllegalArgumentException {@inheritDoc} |
159 * @throws IllegalArgumentException {@inheritDoc} |
155 * @throws UnsupportedOperationException {@inheritDoc} |
160 * @throws UnsupportedOperationException {@inheritDoc} |
156 * @throws IllegalStateException {@inheritDoc} |
161 * @throws IllegalStateException {@inheritDoc} |
157 */ |
162 */ |
|
163 @DefinedBy(Api.COMPILER) |
158 public JavaFileObject getJavaFileForInput(Location location, |
164 public JavaFileObject getJavaFileForInput(Location location, |
159 String className, |
165 String className, |
160 Kind kind) |
166 Kind kind) |
161 throws IOException |
167 throws IOException |
162 { |
168 { |
166 /** |
172 /** |
167 * @throws IllegalArgumentException {@inheritDoc} |
173 * @throws IllegalArgumentException {@inheritDoc} |
168 * @throws UnsupportedOperationException {@inheritDoc} |
174 * @throws UnsupportedOperationException {@inheritDoc} |
169 * @throws IllegalStateException {@inheritDoc} |
175 * @throws IllegalStateException {@inheritDoc} |
170 */ |
176 */ |
|
177 @DefinedBy(Api.COMPILER) |
171 public JavaFileObject getJavaFileForOutput(Location location, |
178 public JavaFileObject getJavaFileForOutput(Location location, |
172 String className, |
179 String className, |
173 Kind kind, |
180 Kind kind, |
174 FileObject sibling) |
181 FileObject sibling) |
175 throws IOException |
182 throws IOException |
179 |
186 |
180 /** |
187 /** |
181 * @throws IllegalArgumentException {@inheritDoc} |
188 * @throws IllegalArgumentException {@inheritDoc} |
182 * @throws IllegalStateException {@inheritDoc} |
189 * @throws IllegalStateException {@inheritDoc} |
183 */ |
190 */ |
|
191 @DefinedBy(Api.COMPILER) |
184 public FileObject getFileForInput(Location location, |
192 public FileObject getFileForInput(Location location, |
185 String packageName, |
193 String packageName, |
186 String relativeName) |
194 String relativeName) |
187 throws IOException |
195 throws IOException |
188 { |
196 { |
191 |
199 |
192 /** |
200 /** |
193 * @throws IllegalArgumentException {@inheritDoc} |
201 * @throws IllegalArgumentException {@inheritDoc} |
194 * @throws IllegalStateException {@inheritDoc} |
202 * @throws IllegalStateException {@inheritDoc} |
195 */ |
203 */ |
|
204 @DefinedBy(Api.COMPILER) |
196 public FileObject getFileForOutput(Location location, |
205 public FileObject getFileForOutput(Location location, |
197 String packageName, |
206 String packageName, |
198 String relativeName, |
207 String relativeName, |
199 FileObject sibling) |
208 FileObject sibling) |
200 throws IOException |
209 throws IOException |