![]()
|
: Interface JSObject
FESI.jslib
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
java.lang.Object |
call(java.lang.String methodName,
java.lang.Object[] args)
Call the specified EcmaScript method of this object |
java.lang.Object |
eval(java.io.Reader r,
java.lang.String d)
Evaluate a Reader stream with this object as the 'this' object. |
java.lang.Object |
eval(java.lang.String s)
Evaluate a string with this object as the 'this' object. |
java.lang.Object |
evalAsFunction(java.lang.String s)
Evaluate a string with this object as the 'this' object. |
java.lang.Object |
evalAsFunction(java.lang.String s,
java.lang.String[] names,
java.lang.Object[] values)
Evaluate a string with this object as the 'this' object. |
JSGlobalObject |
getGlobalObject()
Get the global object of the interpreter |
java.lang.Object |
getMember(java.lang.String name)
Get the named property of this object. |
java.lang.Object |
getSlot(int index)
Get the indexed property of this object (useful for arrays). |
void |
removeMember(java.lang.String name)
Delete a named property of this object |
void |
setMember(java.lang.String name,
java.lang.Object value)
Set the value of a named property of this object |
void |
setSlot(int index,
java.lang.Object value)
Set a property by index value. |
| Method Detail |
public java.lang.Object call(java.lang.String methodName,
java.lang.Object[] args)
throws JSException
methodName - The name of the method to callargs - An array of parameters.
public java.lang.Object eval(java.lang.String s)
throws JSException
s - The string to evaluate
public java.lang.Object eval(java.io.Reader r,
java.lang.String d)
throws JSException
r - The Reader stream to evaluated - A description of the Reader for error messages
public java.lang.Object evalAsFunction(java.lang.String s)
throws JSException
s - The string to evaluate
public java.lang.Object evalAsFunction(java.lang.String s,
java.lang.String[] names,
java.lang.Object[] values)
throws JSException
s - The string to evaluatenames - the names of the parametersvalues - the values of the parameters
public java.lang.Object getMember(java.lang.String name)
throws JSException
name - The name of the property to get
public java.lang.Object getSlot(int index)
throws JSException
index - The index value of the property (converted
to string if not an array)
public void removeMember(java.lang.String name)
throws JSException
name - The name of the property to delete
public void setMember(java.lang.String name,
java.lang.Object value)
throws JSException
name - The name of the property to setvalue - The value to set the property to.
public void setSlot(int index,
java.lang.Object value)
throws JSException
index - The index of the property in the array.value - The value to set the property to.public JSGlobalObject getGlobalObject()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||