SE:ISDK Java version 5.01b
wrong doc
show me others
ScriptEase ISDK for Java
Introduction
Integrating the ISDK/Java
Unpacking ScriptEase:ISDK/Java
Sample applications
Integration Basics
Edit your jseopt.jh
Rebuild the ScriptEase interpreter and libraries
Program your application to invoke ScriptEase
Add the ScriptEase classes to your CLASSPATH
The Nombas Preprocessor
The Preprocessor Commands
#include
|”filename”
#define
|
(
) #undef
#if
#elif
#ifdef
#ifndef
#else#endif
#error
Using the Preprocessor
Advanced Integration - Debugging
Jsedebug.Log
Initialization and Contexts
The ScriptEase Context Parameter Interfaces
interface: SEContextParams
interface: SEErrorHandler
interface: SEErrorFunction
interface: SEContinueFunction
interface: SEFileLocation
interface: SEGetSourceFunction
interface: SEGetResourceFunction
interface: SEPrepareContext
Working with Variables
IDENTIFYING A VARIABLE
LIST OF MEMBER SPECIFIERS
SE.MEM(String)SE.UNIMEM(String)
SE.HIDDEN_MEM(String)SE.HIDDEN_UNIMEM(String)
SE.COMPOUND_MEM(String)SE.COMPOUND_UNIMEM(String)
SE.NUM(int)
SE.STR(int)
SE.INDEX(num)
SE.STRUCT(SEMemberDesc)
SE.VALUE
SE.STOCK(JseStrID)
SE.FUNCTION_TEXT
SE.OBJECT_DATA
SE.LIBRARY_DATA
LIST OF STOCK OBJECTS
SE.GLOBAL
SE.ARGS
SE_ACTIVATION
SE.THIS
SE.SCOPE
SE.TEMP
SE.WRAPPER_TEMP
SE.NOWHERE
SE.DEFINES
SE.RETURN
SE.ERROR
SE.EXIT
SE.YIELD
SE.SUSPEND
SE.AT_EXIT
SE.FILENAMES
SE.STACK_INFO(depth)
SE.SI_WRAPPER
SE.SI_FUNCTION
SE.SI_FUNCNAME
SE.SI_TRAPPED
SE.SI_GLOBAL
SE.SI_THIS
SE.SI_DATA
SE.SI_FILENAME
SE.SI_LINENUM
SE.SI_ACTIVATION
SE.SI_SCOPECHAIN
SE.SI_DEPTH
SE.SERVICES
SE.SELF
EXAMINING VARIABLES
MODIFYING VARIABLES
USING SE.TEMP AND SE.WRAPPER_TEMP
SE.RETURN EXPLAINED
Script Execution Topics
Using seEval
TO_INTERPRET, INTERP_TYPE
TEXT_ARGS, STACK_ARGS
FLAGS
SE.NO_INHERIT
SE.NO_LIBRARIES
SE.NEW_GLOBALS
SE.CALL_MAIN
SE.FUNCS_ONLY
SE.EXIT_LEVEL
SE.NEW_DEFINES
SE.NO_OLD_DEFINES
SE.REPORT_ERRORS
SE.INFREQUENT_CONT
SE.START
SE.CONSTRUCTOR
SE.NAMED_PARAMS
SE.INIT_IMPLICIT_THIS
SE.INIT_IMPLICIT_PARENTS
SE.DEFAULT
PARAMS
FUNCTION GLOBALS
SCOPING
SCOPING - GLOBAL CODE
SCOPING - FUNCTIONS
CONTINUE FUNCTION
Wrapper functions
THE FUNCTION HEADER
THE ARGUMENTS
THE RETURN
WRAPPER TABLES
WRAPPER TABLE METHODS AND OBJECT
SELIBRARY INTERFACE
THE SELIBRARYMANAGER CLASS
The SEToLocaleHandler interface
Lifetimes
Objects and Classes
OBJECT CLASSES
DYNAMIC OBJECTS
interface: SEGetCallback
interface: SEPutCallback
interface: SEHasPropCallback
interface: SECanPutCallback
interface: SEDeletePropCallback
interface: SEDefaultValueCallback
interface: SEOperatorOverloadCallback
inteface: SEGetByIndexCallback
interface: SEGetNameByIndexCallback
interface: SEMaxIndexCallback
FUNCTION REDIRECTION
API Function List
INITIALIZATION/CONTEXT CREATION
seInitialize
seTerminate
seCreateContext
seCreateBlankContext
seCreateFiber
seGetContextParams
seDestroyContext
seAddLibTable
seGarbageCollect
VARIABLE LOCATING
seVarParse
seGetName
seInternalizeString
seInternalizeStringHidden
seCloneInternalString
seFreeInternalString
seGetInternalString
VARIABLE READING
seGetBoolEx
seGetNumberEx
seGetPointerEx
seGetObjectEx
seGetStringEx
seFreeObject
seCloneObject
seWeakLockObject
seLockObject
seGetType
seExists
seExistsDirect
seGetAttribs
seCompare
OBJECT ACCESS ROUTINES
seObjectMemberCount
seObjectMemberName
seIsFunc
seIsArray
seSetArray
seShareReadObject
VARIABLE WRITING
sePutBoolEx
sePutNumberEx
sePutPointerEx
sePutObjectEx
sePutStringEx
sePutUndefinedEx
sePutNullEx
seDelete
seMakeObject
seMakeStack
sePutWrapper
seSetCallbacks
seEnableDynamicMethod
seConvert
seSetAttribs
seAssign
seMustAssign
seThrow
EXECUTING SCRIPTS
seEval
seExec
seEnd
sePrecompile
seFreeBytecodes
seIsBreakpoint
Core Customization Topics
CORE CUSTOMIZATION
JSE_MULTIPLE_GLOBAL (on)
JSE_ONE_STRING_TABLE (off, on if SE_SHARED_OBJECTS is defined)
JSE_INFREQUENT_COUNT (5000)
JSE_GET_RESOURCE (off)
JSE_SHORT_RESOURCE (off)
JSE_TRAP_NOWHERE (off)
JSE_INLINES (off)
JSE_PEEPHOLE_OPTIMIZER (on)
JSE_CACHE_GLOBAL_VARS (on)
JSE_GLOBAL_CACHE_SIZE (10)
JSE_COMPACT_LIBFUNCS (off)
JSE_REFCOUNT (off)
JSE_GC (on)
SE_OBJ_POOL_SIZE (1024, 128 if JSE_MIN_MEMORY is on)
SE_MEM_POOL_SIZE (1024, 128 if JSE_MIN_MEMORY is on)
JSE_PACK_OBJECTS (off)
JSE_PER_OBJECT_CACHE (on, off if JSE_MIN_MEMORY is on)
JSE_PER_OBJECT_MISS_CACHE (on, off if JSE_MIN_MEMORY is on)
SE_APIVARNAME_POOL_SIZE (5)
SE_STACK_SIZE (2048, 512 if JSE_MIN_MEMORY is on)
SE_MAX_STACK_INFO_DEPTH (64)
FEATURE CUSTOMIZATION
JSE_COMPILER (on)
JSE_TOOLKIT_APPSOURCE (on)
JSE_SAVE_FUNCTION_TEXT (on, off if JSE_MIN_MEMORY is on or JSE_COMPILER is off)
JSE_PROTOTYPES (on)
JSE_ALWAYS_IMPLICIT_THIS (off)
JSE_ALWAYS_IMPLICIT_PARENTS (off)
JSE_FUNCTION_ARGUMENTS (on)
JSE_AUTO_OBJECT (off)
JSE_REGEXP_LITERALS (on)
JSE_FUNCTION_LENGTHS (on)
JSE_HTML_COMMENT_STYLE (off)
SE_ECMA_RETURNS (on)
SCRIPTEASE FEATURE CUSTOMIZATION
JSE_TOKENSRC (on)
JSE_TOKENDST (on)
JSE_OBJECTDATA (on)
JSE_DYNAMIC_CALLBACKS (on)
JSE_OPERATOR_OVERLOADING (on)
JSE_ENABLE_DYNAMETH (off)
JSE_GETFILENAMELIST (off)
JSE_BREAKPOINT_TEST (off)
JSE_TASK_SCHEDULER (on)
JSE_INCLUDE (on)
JSE_DEFINE (on)
JSE_CONDITIONAL_COMPILE (on)
JSE_SECUREJSE (on)
JSE_MAIN_ARGC_ARGV (on)
JSE_TOSOURCE (on)
JSE_NAMED_PARAMS (on)
JSE_TIMEZONE_GLOBAL (off)
JSE_TOLOCALEDATE_FUNCTION (off)
JSE_MILLENIUM (off)
JSE_FLOATING_POINT (on)
DEBUGGING CUSTOMIZATION
NDEBUG
JSE_TRACK_OBJECT_USE (off)
JSE_NEVER_FREE (off)
JSE_DONT_POOL (off)
JSE_ALWAYS_COLLECT (off)
Fibers and Threads
USING SE.START
GLOBAL MANIPULATION
YIELDING AND SUSPENDING
OTHER CONSIDERATIONS
ScriptEase JavaScript
Basics of ScriptEase
Case sensitivity
White space characters
Comments
Expressions, statements, and blocks
Identifiers
Prohibited identifiers
Identifiers to avoid
Variables
Variable scope
Function identifier
Function scope
Data types
Primitive data types
Number type
Integer
Decimal
Hexadecimal
Octal
Floating point
Decimal floats
Scientific floats
Boolean type
String type
Composite data types
Object type
Array type
Special values
undefined
null
NaN
Number constants
Automatic type conversion
Properties and methods of basic data types
toString()
valueOf()
Operators
Object operator
Mathematical operators
Basic arithmetic
Assignment arithmetic
Auto-increment (++) and auto-decrement (--)
Bit operators
Logical operators and conditional expressions
Concatenation operator
delete operator
in operator
instanceof operator
typeof operator
Flow decisions statements
if
else
while
do {...} while
for
break
continue
switch, case, and default
goto and labels
Conditional operator
Exception handling
Functions
Function return statement
Passing information to functions
Simulated named parameters
Function property arguments[]
Function recursion
Error checking for functions
main() function
Objects
Terminology for objects
Predefining objects with constructor functions
Initializers for objects and arrays
Methods - assigning functions to objects
Object prototypes
for/in
with
_construct(...)
_call(...)
ScriptEase versus C language
Data types in C and SE
Automatic type declaration
Array representation
Automatic array allocation
Automatic and JavaScript Arrays
Literal strings
Literal strings and assignments
Literal strings and comparisons
Literal strings and parameters
Literal strings and returns
Literal Strings and switch statements
Structures
Passing variables by reference
Pointer operator * and address operator &
Case statements
Initialization code which is external to functions
Unnecessary tokens
Macros
Token replacement macros
Back quote strings
Converting existing C code to ScriptEase
Security
Writing a Security Manager
jseSecurityInit
jseSecurityTerm
jseSecurityGuard
securityVariable
Specifying Security
Wrapper Functions And Security
Sample Script
Internal Objects
Global object
Conversion or casting
global._argc
global._argv
global object methods/functions
global.defined()
global.escape()
global.eval()
global.isFinite()
global.isNaN()
global.getArrayLength()
global.getAttributes()
global.parseFloat()
global.parseInt()
global.setArrayLength()
global.setAttributes()
global.ToBoolean()
global.ToBuffer()
global.ToBytes()
global.ToInt32()
global.ToInteger()
global.ToNumber()
global.ToObject()
global.ToPrimitive
global.ToSource()
global.ToString()
global.ToUint16()
global.ToUint32()
global.unescape()
global.undefine()
Array object
Creating arrays
Initializers for arrays and objects
Array object instance properties
Array length
Array object instance methods
Array()
Array concat()
Array join()
Array pop()
Array push()
Array reverse()
Array shift()
Array slice()
Array sort()
Array splice()
Array toString()
Array unshift()
Blob Object
Blob object static methods
Blob.get()
Blob.put()
Blob.size()
blobDescriptor object
blobDescriptor example
Boolean Object
Boolean object instance methods
Boolean()
Boolean.toString()
Buffer Object
Buffer object instance properties
Buffer bigEndian
Buffer cursor
Buffer size
Buffer unicode
Buffer[] Array
Buffer object instance methods
Buffer()
Buffer getString()
Buffer compare()
Buffer equal()
Buffer getValue()
Buffer putString()
Buffer putValue()
Buffer subBuffer()
Buffer toString()
Buffer object static methods
Buffer.compare ()
Buffer.equal ()
internal_bufferobject-1
Clib Object
Console I/O functions
Clib.printf()
Clib.getch()
Clib.getchar()
Clib.getche()
Clib.gets()
Clib.kbhit()
Clib.putchar()
Clib.puts()
Clib.scanf()
Clib.vprintf()
Clib.vscanf()
Time functions
Clib.asctime()
Clib.clock()
Clib.ctime()
Clib.difftime()
Clib.gmtime()
Clib.localtime()
Clib.mktime()
Clib.strftime()
Clib.time()
Script execution
Clib.abort()
Clib.assert()
Clib.atexit()
Clib.exit()
Clib.system()
Error
Clib.errno
Clib.clearerr()
Clib.ferror()
Clib.perror()
Clib.strerror()
File I/O
Clib.fopen()
Clib.fclose()
Clib.feof()
Clib.fflush()
Clib.fgetc()
Clib.fgetpos()
Clib.fgets()
Clib.fprintf()
Clib.fputc()
Clib.fputs()
Clib.fread()
Clib.freopen()
Clib.fscanf()
Clib.fseek()
Clib.fsetpos()
Clib.ftell()
Clib.fwrite()
Clib.getc()
Clib.putc()
Clib.remove()
Clib.rename()
Clib.rewind()
Clib.tmpfile()
Clib.tmpnam()
Clib.ungetc()
Directory
Clib.chdir()
Clib.getcwd()
Clib.flock()
Clib.mkdir()
Clib.rmdir()
Sorting
Clib.bsearch()
Clib.qsort()
Environment variables
Clib.getenv()
Clib.putenv()
Character classification
Clib.isalnum()
Clib.isalpha()
Clib.isascii()
Clib.iscntrl()
Clib.isdigit()
Clib.isgraph()
Clib.islower()
Clib.isprint()
Clib.ispunct()
Clib.isspace()
Clib.isupper()
Clib.isxdigit()
String manipulation
Clib.rsprintf()
Clib.rvsprintf()
Clib.sscanf()
Clib.sprintf()
Clib.strcat()
Clib.strchr()
Clib.strcmp()
Clib.strcmpi()
Clib.strcpy()
Clib.strcspn()
Clib.stricmp()
Clib.strlen()
Clib.strlwr()
Clib.strncat()
Clib.strncmp()
Clib.strncmpi()
Clib.strncpy()
Clib.strnicmp()
Clib.strpbrk()
Clib.strrchr()
Clib.strspn()
Clib.strstr()
Clib.strstri()
Clib.strtod()
Clib.strtok()
Clib.strtol()
Clib.strupr()
Clib.toascii()
Clib.tolower()
Clib.toupper()
Clib.vsprintf()
Memory manipulation
Clib.memchr()
Clib.memcmp()
Clib.memcpy()
Clib.memmove()
Clib.memset()
Math
Clib.abs()
Clib.acos()
Clib.asin()
Clib.atan()
Clib.atan2()
Clib.atof()
Clib.atoi()
Clib.atol()
Clib.ceil()
Clib.cos()
Clib.cosh()
Clib.div()
Clib.exp()
Clib.fabs()
Clib.floor()
Clib.fmod()
Clib.frexp()
Clib.labs()
Clib.ldexp()
Clib.ldiv()
Clib.log()
Clib.log10()
Clib.max()
Clib.min()
Clib.modf()
Clib.pow()
Clib.rand()
Clib.sin()
Clib.sinh()
Clib.sqrt()
Clib.srand()
Clib.tan()
Clib.tanh()
Variable argument lists
Clib.va_arg()
Clib.va_end()
Clib.va_start()
Clib.vfprintf()
Clib.vfscanf()
Clib.vsscanf()
Date Object
Date object instance methods
Date()
Date getDate()
Date getDay()
Date getFullYear()
Date getHours()
Date getMilliseconds()
Date getMinutes()
Date getMonth()
Date getSeconds()
Date getTime()
Date getTimezoneOffset()
Date getUTCDate()
Date getUTCDay()
Date getUTCFullYear()
Date getUTCHours()
Date getUTCMilliseconds()
Date getUTCMinutes()
Date getUTCMonth()
Date getUTCSeconds()
Date getYear()
Date setDate()
Date setFullYear()
Date setHours()
Date setMilliseconds()
Date setMinutes()
Date setMonth()
Date setSeconds()
Date setTime()
Date setUTCDate()
Date setUTCFullYear()
Date setUTCHours()
Date setUTCMilliseconds()
Date setUTCMinutes()
Date setUTCMonth()
Date setUTCSeconds()
Date setYear()
Date toDateString()
Date toGMTString()
Date toLocaleDateString()
Date toLocaleString()
Date toLocaleTimeString()
Date toString()
Date toSystem()
Date toTimeString()
Date toUTCString()
Date valueOf()
Date object static methods
Date.fromSystem()
Date.parse()
Date.UTC()
Dos Object
Dos object static methods
Dos.address()
Dos.asm()
Dos.inport()
Dos.inportw()
Dos.interrupt()
Dos.offset()
Dos.outport()
Dos.outportw()
Dos.segment()
Function Object
Function object instance methods
Function()
Function apply()
Function call()
Function toString()
Math Object
Math object static properties
Math.E
Math.LN10
Math.LN2
Math.LOG2E
Math.LOG10E
Math.PI
Math.SQRT1_2
Math.SQRT2
Math object static methods
Math.abs()
Math.acos()
Math.asin()
Math.atan()
Math.atan2()
Math.ceil()
Math.cos()
Math.exp()
Math.floor()
Math.log()
Math.max()
Math.min()
Math.pow()
Math.random()
Math.round()
Math.sin()
Math.sqrt()
Math.tan()
Number Object
Number object instance methods
Number toExponential()
Number toFixed()
Number toLocaleString()
Number toPrecision()
Number toString()
Object Object
Object object instance methods
Object()
Object hasOwnProperty()
Object isPrototypeOf()
Object propertyIsEnumerable()
Object toLocaleString()
Object toSource()
Object toString()
Object valueOf()
RegExp Object
Regular expression syntax
Regular expression literals
Regular expression characters
Regular expression attributes
Regular expression special characters
Regular expression summary
Regular expression repetition characters
Regular expression character classes
Regular expression anchor characters
Regular expression reference characters
Regular expression escape sequences
Regular expression replacement characters
Regular expression precedence
RegExp object instance properties
RegExp global
RegExp ignoreCase
RegExp lastIndex
RegExp multiline
RegExp source
RegExp returned array properties
index (RegExp)
input (RegExp)
RegExp object instance methods
RegExp()
RegExp compile()
RegExp exec()
RegExp test()
RegExp object static properties
RegExp.$n
RegExp.input
RegExp.lastMatch
RegExp.lastParen
RegExp.leftContext
RegExp.rightContext
SElib Object
SElib object static methods
SElib.baseWindowFunction()
SElib.bound()
SElib.breakWindow()
SElib.compileScript()
SElib.directory()
SElib.doWindows()
SElib.fullpath()
SElib.getObjectProperties()
SElib.inSecurity()
SElib.instance()
SElib.interpret()
SElib.interpretInNewThread()
SElib.makeWindow()
SElib.messageFilter()
SElib.multiTask()
SElib.peek()
SElib.pointer()
SElib.poke()
SElib.ShellFilterCharacter()
SElib.ShellFilterCommand()
SElib.spawn()
SElib.splitFilename()
SElib.subclassWindow()
SElib.suspend()
SElib.version()
SElib.windowList()
SElib.dynamicLink()
SElib.dynamicLink() - for Win32
SElib.dynamicLink() - for Win16
SElib.dynamicLink() - for OS/2
String Object
String as data type
Escape sequences for characters
Single quote
Back quote
String as object
String object instance properties
String length
String object instance methods
String()
String charAt()
String charCodeAt()
String concat()
String indexOf()
String lastIndexOf()
String localeCompare()
String match()
String replace()
String search()
String slice()
String split()
String substr()
String substring()
String toLocaleLowerCase()
String toLocaleUpperCase()
String toLowerCase()
String toUpperCase()
String object static methods
String.fromCharCode()
Unix Object
Unix object static methods
Unix.fork()
Unix.kill()
Unix.setgid()
Unix.setsid()
Unix.setuid()
Unix.wait()
Unix.waitpid()
Appendices
Appendix A: Grouped Functions
Routines for arrays
For dynamic arrays
For Array objects
Array properties
Routines for Buffers
Buffer methods
Buffer properties
Routines for character classification
Routines for console I/O
Routines for conversion/casting
Routines for data/variables
Methods for data
Routines for date/time
Routines for diagnostic/error
Routines for directory, file, and OS
Routines for DOS
Routines for execution control
Routines for file/stream I/O
Routines for general use
Routines for math
Math methods
Math properties
Routines for memory manipulation
Routines for miscellaneous
Routines for objects and functions
Routines for regular expressions
Routines for strings/byte arrays
Methods for strings
String properties
Routines for variable argument lists
Routines for UNIX
Appendix B: Instance and Static Notation
String instance properties sample
String instance methods sample
String static properties sample
String static methods sample
Prototype property