public class Helpers
extends java.lang.Object
| Constructor and Description | 
|---|
Helpers()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String[] | 
getClasses(JavaFile sourceOrJavaFile)
Get the fully qualified names of the top level classes
 in the incoming JavaFile (which can also be a SourceFile) 
 | 
static java.lang.String[] | 
getClasses(Project prj,
          java.net.URL sourceURL)
Get the fully qualified names of the top level classes
 in the source of the incoming URL 
 | 
static boolean | 
isClassAccessible(JavaClass cls,
                 java.lang.String pkg)
Determine if the incoming JavaClass is accessible from the incoming package. 
 | 
static void | 
removeClasses(Project prj,
             java.lang.String[] fqClassNames)
method removeClasses will delete on the specified project output directory
 all the classes part of the specified top level class, including private,
 package private and inner classes. 
 | 
static void | 
removeClasses(Project prj,
             java.net.URL sourceFile)
method removeClasses will delete on the specified project output directory
 all the classes part of the specified sourceFile, including private,
 package private and inner classes. 
 | 
public static void removeClasses(Project prj, java.net.URL sourceFile)
prj - use to locate the proper output directorysourceFile - delete all classes defined in this source filepublic static void removeClasses(Project prj, java.lang.String[] fqClassNames)
prj - use to locate the proper output directoryfqClassNames - an array of fully qualified class names.public static java.lang.String[] getClasses(Project prj, java.net.URL sourceURL)
prj - The project containing the URLsourceURL - The URL of a source in the projectpublic static java.lang.String[] getClasses(JavaFile sourceOrJavaFile)
sourceOrJavaFile - A SourceFile or JavaFilepublic static boolean isClassAccessible(JavaClass cls, java.lang.String pkg)
cls - A JavaClass which should not be nullpkg - A package name which should not be null