35. JS→Javaマッピング
WebEngineのAPIよりhttp://docs.oracle.
com/javafx/2/api/javafx/scene/web/WebEngine.html
JavaScript values are represented using the
obvious Java classes: null becomes Java null; a
boolean becomes a java.lang.Boolean; and a
string becomes a java.lang.String. A number
can be java.lang.Double or a java.lang.Integer,
depending...If the result is a JavaScript object, it
is wrapped as an instance of the netscape.
javascript.JSObject
36. JS→Javaマッピング
JavaScript typeof
Java Object
Object value
null object null
false boolean java.lang.Boolean
23 number java.lang.Integer
1.10 number java.lang.Double
"script" string java.lang.String
37. JS→Javaマッピング
WebEngineのAPIよりhttp://docs.oracle.
com/javafx/2/api/javafx/scene/web/WebEngine.html
JavaScript values are represented using the
obvious Java classes: null becomes Java null; a
boolean becomes a java.lang.Boolean; and a
string becomes a java.lang.String. A number
can be java.lang.Double or a java.lang.Integer,
depending...If the result is a JavaScript object, it
is wrapped as an instance of the netscape.
javascript.JSObject