save works

This commit is contained in:
hyb1996
2018-10-12 14:51:28 +08:00
parent b42e440fff
commit 6553a4f6c4
2 changed files with 33 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import com.stardust.autojs.core.ui.inflater.util.Gravities;
import com.stardust.autojs.core.ui.inflater.util.Ids;
import com.stardust.autojs.rhino.NativeJavaObjectWithPrototype;
import org.mozilla.javascript.NativeJavaMethod;
import org.mozilla.javascript.NativeJavaObject;
import org.mozilla.javascript.ScriptRuntime;
import org.mozilla.javascript.Scriptable;

View File

@@ -0,0 +1,32 @@
package com.stardust.autojs.rhino;
import org.mozilla.javascript.JavaMembers;
import org.mozilla.javascript.NativeJavaObject;
import org.mozilla.javascript.Scriptable;
public class BindingNativeJavaObject extends NativeJavaObject {
public BindingNativeJavaObject() {
}
public BindingNativeJavaObject(Scriptable scope, Object javaObject, Class<?> staticType) {
super(scope, javaObject, staticType);
}
public BindingNativeJavaObject(Scriptable scope, Object javaObject, Class<?> staticType, boolean isAdapter) {
super(scope, javaObject, staticType, isAdapter);
}
@Override
protected void initMembers() {
Class dynamicType;
if (this.javaObject != null) {
dynamicType = this.javaObject.getClass();
} else {
dynamicType = this.staticType;
}
this.members.
}
}