Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.api.java/1 1.10.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.api.java.queries
Class SourceForBinaryQuery

    java.lang.Object
      org.netbeans.api.java.queries.SourceForBinaryQuery

    public class SourceForBinaryQuery

extends Object

The query is used for finding sources for binaries. The examples of usage of this query are:

- finding source for library

- finding src.zip for platform

- finding source folder for compiled jar or build folder

Since:
  org.netbeans.api.java/1 1.4
See Also:
  `SourceForBinaryQueryImplementation`

Nested Class Summary
`static interface` | `SourceForBinaryQuery.Result` Result of finding sources, encapsulating the answer as well as the ability to listen to it.

Method Summary
`static SourceForBinaryQuery.Result` | `findSourceRoots(URL binaryRoot)` Returns the source root for given binary root (for example, src folder for jar file or build folder).

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### findSourceRoots

    public static SourceForBinaryQuery.Result findSourceRoots(URL binaryRoot)

  Returns the source root for given binary root (for example, src folder for jar file or build folder).

  Parameters:
    `binaryRoot` - the ClassPath root of compiled files.
  Returns:
    a result object encapsulating the answer (never null)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.api.java/1 1.10.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.