org.stjs.javascript
Class JSObjectAdapter
java.lang.Object
org.stjs.javascript.JSObjectAdapter
public class JSObjectAdapter
- extends Object
here are the methods existent in Javascript for objects and inexistent in the Java counterpart. The generator should
generate the correct code
- Author:
- acraciun
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSObjectAdapter
public JSObjectAdapter()
$get
public static Object $get(Object obj,
String property)
$put
public static void $put(Object obj,
String property,
Object value)
hasOwnProperty
public static boolean hasOwnProperty(Object obj,
String property)
$prototype
public static org.stjs.javascript.Map<String,Object> $prototype(Object obj)
$constructor
public static Object $constructor(Object obj)
$properties
public static org.stjs.javascript.Map<String,Object> $properties(Object obj)
$object
public static <T> T $object(org.stjs.javascript.Map<String,Object> properties)
$js
public static <T> T $js(String code)
Copyright © 2013. All Rights Reserved.