|
org.netbeans.modules.java.project/1 1.32.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.spi.java.project.support.JavadocAndSourceRootDetection
public class JavadocAndSourceRootDetection
Miscellaneous helper utils to detect Javadoc root folder, source root folder or package of the given java or class file.
| Method Summary | |
|---|---|
static FileObject |
findJavadocRoot(FileObject baseFolder)
Finds Javadoc root inside of given folder. |
static FileObject |
findPackageRoot(FileObject fo)
Returns package root of the given java or class file. |
static FileObject |
findSourceRoot(FileObject fo)
Finds Java sources root inside of given folder. |
static Set<? extends FileObject> |
findSourceRoots(FileObject folder,
AtomicBoolean canceled)
Finds Java sources roots inside of given folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static FileObject findJavadocRoot(FileObject baseFolder)
fo - base folder to start search in; routine will traverse 5 folders
deep before giving up; cannot be null; must be folder
public static FileObject findSourceRoot(FileObject fo)
fo - base folder to start search in; routine will traverse subfolders
to find a Java file to detect package root; cannot be null; must be folder
public static Set<? extends FileObject> findSourceRoots(@NonNull
FileObject folder,
@NullAllowed
AtomicBoolean canceled)
folder - to start search in; routine will traverse subfolders
to find a Java file to detect package root; cannot be null; must be foldercanceled - if set to true the method immediately returns roots it has already found,
may be null
Collection of found package rootspublic static FileObject findPackageRoot(FileObject fo)
fo - either .java or .class file; never null
|
org.netbeans.modules.java.project/1 1.32.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||