5#ifndef MOLYBDEN_JS_ACCESSIBLE_DETAIL_HPP
6#define MOLYBDEN_JS_ACCESSIBLE_DETAIL_HPP
11JsReturnValue JsAccessible<C>::call(
const std::string& method_name,
12 const std::vector<JsValue>& args) {
13 return callMethod(method_name, args);
17bool JsAccessible<C>::hasMethod(
const std::string& method_name) {
18 return internal::MethodContainer::hasMethod(method_name);
22JsValue JsAccessible<C>::getProperty(
const std::string& property_name) {
23 return getFieldValue(property_name);
27bool JsAccessible<C>::hasProperty(
const std::string& property_name) {
28 return hasField(property_name);
32bool JsAccessible<C>::setProperty(
const std::string& property_name,
33 const JsValue& value) {
34 return setFieldValue(property_name, value);
38std::string JsAccessible<C>::getType() {
39 return "JsAccessibleNativeObject";
43std::vector<std::string> JsAccessible<C>::enumerateMembers() {
44 std::vector<std::string> result;
45 auto properties = propertyNames();
46 result.insert(result.end(), properties.begin(), properties.end());
47 auto methods = methodNames();
48 result.insert(result.end(), methods.begin(), methods.end());