public String getter_value() { Log.d(TAG, "get value", Log.DEBUG_MODE); AttrProxy proxy = (AttrProxy) getProxy(); Scriptable thisObj = this; java.lang.String javaResult = proxy.getValue(); String rhinoResult = (String) javaResult; return rhinoResult; }
public Proxy getter_ownerElement() { Log.d(TAG, "get ownerElement", Log.DEBUG_MODE); AttrProxy proxy = (AttrProxy) getProxy(); Scriptable thisObj = this; ti.modules.titanium.xml.ElementProxy javaResult = proxy.getOwnerElement(); Proxy rhinoResult = (Proxy) TypeConverter.javaObjectToJsObject(javaResult, this); return rhinoResult; }
// Dynamic properties public Boolean getter_specified() { Log.d(TAG, "get specified", Log.DEBUG_MODE); AttrProxy proxy = (AttrProxy) getProxy(); Scriptable thisObj = this; boolean javaResult = proxy.getSpecified(); Boolean rhinoResult = (Boolean) javaResult; return rhinoResult; }
public void setter_value(Object value) { Log.d(TAG, "set value", Log.DEBUG_MODE); AttrProxy proxy = (AttrProxy) getProxy(); Scriptable thisObj = this; java.lang.String arg0; arg0 = (java.lang.String) TypeConverter.jsObjectToJavaString(value, thisObj); proxy.setValue(arg0); // proxy.setProperty("value", value); // Commenting out for parity with V8 (don't retain from a // custom setter) }
public Object getName(Context context, Scriptable thisObj, Object[] args) { Log.d(TAG, "getName()", Log.DEBUG_MODE); try { AttrProxy proxy = (AttrProxy) ((Proxy) thisObj).getProxy(); java.lang.String javaResult = proxy.getName(); String rhinoResult = (String) javaResult; return rhinoResult; } catch (Throwable throwable) { Context.throwAsScriptRuntimeEx(throwable); return Undefined.instance; } }
public Object getSpecified(Context context, Scriptable thisObj, Object[] args) { Log.d(TAG, "getSpecified()", Log.DEBUG_MODE); try { AttrProxy proxy = (AttrProxy) ((Proxy) thisObj).getProxy(); boolean javaResult = proxy.getSpecified(); Boolean rhinoResult = (Boolean) javaResult; return rhinoResult; } catch (Throwable throwable) { Context.throwAsScriptRuntimeEx(throwable); return Undefined.instance; } }
public Object getOwnerElement(Context context, Scriptable thisObj, Object[] args) { Log.d(TAG, "getOwnerElement()", Log.DEBUG_MODE); try { AttrProxy proxy = (AttrProxy) ((Proxy) thisObj).getProxy(); ti.modules.titanium.xml.ElementProxy javaResult = proxy.getOwnerElement(); Proxy rhinoResult = (Proxy) TypeConverter.javaObjectToJsObject(javaResult, this); return rhinoResult; } catch (Throwable throwable) { Context.throwAsScriptRuntimeEx(throwable); return Undefined.instance; } }
public void setValue(Context context, Scriptable thisObj, Object[] args) { Log.d(TAG, "setValue()", Log.DEBUG_MODE); try { AttrProxy proxy = (AttrProxy) ((Proxy) thisObj).getProxy(); if (args.length < 1) { throw new IllegalArgumentException( "setValue: Invalid number of arguments. Expected 1 but got " + args.length); } java.lang.String arg0; arg0 = (java.lang.String) TypeConverter.jsObjectToJavaString(args[0], thisObj); proxy.setValue(arg0); } catch (Throwable throwable) { Context.throwAsScriptRuntimeEx(throwable); } }