Package org.loboevolution.js
Class JavaScript
java.lang.Object
org.loboevolution.js.JavaScript
JavaScript class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
defineElementClass
(Scriptable scope, Document document, String jsClassName, String elementName, Class<?> javaClass) void
defineJsObject
(Scriptable scope, String jsClassName, Class<?> javaClass, JavaInstantiator instantiator) getJavaObject
(Object javascriptObject, Class<?> type) getJavaObject.getJavascriptObject
(Object raw, Scriptable scope) Returns an object that may be used by the Javascript engine.
-
Constructor Details
-
JavaScript
public JavaScript()
-
-
Method Details
-
getJavaObject
getJavaObject.
-
getJavascriptObject
Returns an object that may be used by the Javascript engine.- Parameters:
raw
- aObject
object.scope
- aScriptable
object.- Returns:
- a
Object
object.
-
defineElementClass
public void defineElementClass(Scriptable scope, Document document, String jsClassName, String elementName, Class<?> javaClass) -
defineJsObject
public void defineJsObject(Scriptable scope, String jsClassName, Class<?> javaClass, JavaInstantiator instantiator)
-