/** * Return the properties for this object as an array of PropertyMirror objects. * * @param kind Indicate whether named, indexed or both kinds of properties are requested * @param limit Limit the number of properties returned to the specified value * @return {Array} Property mirrors for this object */ public PropertiesArray getProperties(final PropertyKind kind, final int limit) { V8Array parameters = new V8Array(v8Object.getRuntime()); parameters.push(kind.index); parameters.push(limit); V8Array result = null; try { result = v8Object.executeArrayFunction(PROPERTIES, parameters); return new PropertiesArray(result); } finally { parameters.close(); if ((result != null) && !result.isReleased()) { result.close(); result = null; } } }
/** * Return the properties for this object as an array of PropertyMirror objects. * * @param kind Indicate whether named, indexed or both kinds of properties are requested * @param limit Limit the number of properties returned to the specified value * @return {Array} Property mirrors for this object */ public PropertiesArray getProperties(final PropertyKind kind, final int limit) { V8Array parameters = new V8Array(v8Object.getRuntime()); parameters.push(kind.index); parameters.push(limit); V8Array result = null; try { result = v8Object.executeArrayFunction(PROPERTIES, parameters); return new PropertiesArray(result); } finally { parameters.close(); if ((result != null) && !result.isReleased()) { result.close(); result = null; } } }
/** * Return the properties for this object as an array of PropertyMirror objects. * * @param kind Indicate whether named, indexed or both kinds of properties are requested * @param limit Limit the number of properties returned to the specified value * @return {Array} Property mirrors for this object */ public PropertiesArray getProperties(final PropertyKind kind, final int limit) { V8Array parameters = new V8Array(v8Object.getRuntime()); parameters.push(kind.index); parameters.push(limit); V8Array result = null; try { result = v8Object.executeArrayFunction(PROPERTIES, parameters); return new PropertiesArray(result); } finally { parameters.release(); if ((result != null) && !result.isReleased()) { result.release(); result = null; } } }
/** * Return the properties for this object as an array of PropertyMirror objects. * * @param kind Indicate whether named, indexed or both kinds of properties are requested * @param limit Limit the number of properties returned to the specified value * @return {Array} Property mirrors for this object */ public PropertiesArray getProperties(final PropertyKind kind, final int limit) { V8Array parameters = new V8Array(v8Object.getRuntime()); parameters.push(kind.index); parameters.push(limit); V8Array result = null; try { result = v8Object.executeArrayFunction(PROPERTIES, parameters); return new PropertiesArray(result); } finally { parameters.release(); if ((result != null) && !result.isReleased()) { result.release(); result = null; } } }