public class Capabilities
extends java.lang.Object
This class should be independent of all other bsh classes!
Note that tests for class existence here do *not* use the BshClassManager, as it may require other optional class files to be loaded.
Modifier and Type | Class | Description |
---|---|---|
static class |
Capabilities.Unavailable |
An attempt was made to use an unavailable capability supported by
an optional package.
|
Constructor | Description |
---|---|
Capabilities() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
canGenerateInterfaces() |
|
static boolean |
classExists(java.lang.String name) |
Use direct Class.forName() to test for the existence of a class.
|
static boolean |
haveAccessibility() |
If accessibility is enabled
determine if the accessibility mechanism exists and if we have
the optional bsh package to use it.
|
static boolean |
haveSwing() |
|
static void |
setAccessibility(boolean b) |
public static boolean haveSwing()
public static boolean canGenerateInterfaces()
public static boolean haveAccessibility()
ReflectManager
public static void setAccessibility(boolean b)
public static boolean classExists(java.lang.String name)
? 2000 pat@pat.net :-)