THE SELIBRARYMANAGER CLASS
The SELibraryManager class (located in the COM.Nombas.jse.libraries package) is used to make the ScriptEase standard library functions available to your scripts. The SELibraryManager class has one static method, addStandardLibraries, which has the following signature:
public static final void addStandardLibraries(SEContext se, int libs);
The first parameter is the context you want to add the library functions to. The second parameter specifies which libraries to add to the context. This parameter can be any of the following values |’d together:
SELibraryManager.ECMA_OBJECTS
Makes the following ECMA objects available to your scripts: Object, Function, Array, String, Boolean, Number, Exception.
SELibraryManager.ECMA_MISC
Some miscellaneous ECMA functions: eval, parseInt, parseFloat, escape, unescape, isNaN, isFinite.
SELibraryManager.ECMA_DATE
The ECMA Date object.
SELibraryManager.ECMA_MATH
The ECMA Math object.
SELibraryManager.ECMA_REGEXP
The ECMA RegExp object.
SELibraryManager.ECMA_ALL
Makes all of the ECMA objects and functions available to your scripts.
SELibraryManager.SE_TEST
The Nombas Test object, used to test and debug scripts.
SELibraryManager.LANG_MISC
Miscellaneous language extension functions: defined, undefined, getArrayLength, setArrayLength
SELibraryManager.LANG_CONVERT
ECMA conversion functions: ToPrimitive, ToBoolean, ToNumber, ToInteger, ToInt32, ToUint32, ToInt16, ToObject, ToString
For example, if you wanted to make the ECMA Date and Math objects available to your scripts, you would invoke the library manager like this:
SELibraryManager.addStandardLibraries(se,
SELibraryManager.ECMA_DATE |
SELibraryManager.ECMA_MATH);
The SEToLocaleHandler interface