blob: 84603158e914e95e1146edfb9f5a4d624c35a08c [file] [log] [blame]
Andrew Sappersteind6eaacb2011-05-20 13:14:56 -07001/*
2 * Copyright (C) 2011 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.google.doclava;
18
19/**
20 * Resolvable is an interface for those Java types that cannot resolve, upon first parsing
21 * the file in which the type is declared, certain types referenced by that file.
22 *
23 * <p>This interface provides a standard means of saving {@link Resolution}s that we will
24 * later resolve once we have parsed every file. This is provided via the
Andrew Sapperstein6ba612e2011-06-20 18:41:24 -070025 * {@link addResolution(Resolution)} method.
Andrew Sappersteind6eaacb2011-05-20 13:14:56 -070026 *
27 * <p>Additionally, This interface provides a standard means of resolving all resolutions
Andrew Sapperstein6ba612e2011-06-20 18:41:24 -070028 * via the {@link#resolveResolutions()} method.
Andrew Sappersteind6eaacb2011-05-20 13:14:56 -070029 */
30public interface Resolvable {
31 /**
32 * Adds a {@link Resolution} that will be resolved at a later time.
33 * @param resolution The {@link Resolution} to resolve at a later time.
34 */
35 public void addResolution(Resolution resolution);
36
37 /**
Andrew Sapperstein6ba612e2011-06-20 18:41:24 -070038 * Resolves the {@link Resolution}s contained in this {@link Resolvable}.
39 * @return <tt>true</tt> if all resolutions were resolved.
40 * <tt>false</tt> if there are still remaining resolutions.
41 */
42 public boolean resolveResolutions();
43
44 /**
Andrew Sappersteind6eaacb2011-05-20 13:14:56 -070045 * Prints the list of {@link Resolution}s that will be resolved at a later time.
46 */
47 public void printResolutions();
48}