org.netbeans.api.java.classpath/1 1.29.1

org.netbeans.api.java.queries
Class BinaryForSourceQuery

java.lang.Object
  extended by org.netbeans.api.java.queries.BinaryForSourceQuery

public final class BinaryForSourceQuery
extends Object

The query is used for finding binaries for sources, this is intended to be the inverse of the SourceForBinaryQuery.

Since:
org.netbeans.api.java/1 1.12
See Also:
BinaryForSourceQueryImplementation, SourceForBinaryQuery

Nested Class Summary
static interface BinaryForSourceQuery.Result
          Result of finding binaries, encapsulating the answer as well as the ability to listen to it.
 
Method Summary
static BinaryForSourceQuery.Result findBinaryRoots(URL sourceRoot)
          Returns the binary root for given source root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findBinaryRoots

public static BinaryForSourceQuery.Result findBinaryRoots(URL sourceRoot)
Returns the binary root for given source root.

Parameters:
sourceRoot - the source path root. The URL must refer to folder. In the case of archive file the jar protocol URL must be used. The folder URL has to end with '/' The FileUtil.urlForArchiveOrDir(java.io.File) can be used to create folder URLs.
Returns:
a result object encapsulating the answer (never null)

org.netbeans.api.java.classpath/1 1.29.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.