|
org.netbeans.modules.java.api.common/0 1.37 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.java.api.common.util.CommonProjectUtils
public final class CommonProjectUtils
Common project utilities. This is a helper class; all methods are static.
| Method Summary | |
|---|---|
static JavaPlatform |
getActivePlatform(String activePlatformId)
Returns the active platform used by the project or null if the active project platform is broken. |
static String |
getAntPropertyName(String property)
Converts the ant reference to the name of the referenced property. |
static Collection<ElementHandle<TypeElement>> |
getMainMethods(FileObject fo)
|
static boolean |
hasMainMethod(FileObject fo)
Check if the given file object represents a source with the main method. |
static boolean |
isMainClass(String className,
ClassPath bootPath,
ClassPath compilePath,
ClassPath sourcePath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JavaPlatform getActivePlatform(String activePlatformId)
activePlatformId - the name of platform used by Ant script or null
for default platform.
JavaPlatform or null if the project's platform
is brokenpublic static String getAntPropertyName(String property)
property - the name of the referenced property.
public static Collection<ElementHandle<TypeElement>> getMainMethods(FileObject fo)
public static boolean hasMainMethod(FileObject fo)
fo - source
public static boolean isMainClass(String className,
ClassPath bootPath,
ClassPath compilePath,
ClassPath sourcePath)
|
org.netbeans.modules.java.api.common/0 1.37 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||