@Retention(value=RUNTIME) @Target(value=METHOD) public @interface JSBody
Indicates that method is to have native JavaScript implementation.
Method only can take and return primitive values and JSObjects.
JSBody script can't call Java methods, but you can pass callbacks wrapped into JSFunctor.
Note that unless method is static, it must belong to class that implements JSObject.
If applied to non-native method, original Java body will be overwritten by JavaScript.
Copyright © 2015. All rights reserved.