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 and Description |
---|---|
static class |
Capabilities.Unavailable
An attempt was made to use an unavailable capability supported by
an optional package.
|
Constructor and Description |
---|
Capabilities() |
Modifier and Type | Method and 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) throws Capabilities.Unavailable
Capabilities.Unavailable
public static boolean classExists(java.lang.String name)