const as_object* as_value::get_property_target() const { if (is_property()) { return m_property_target; } return NULL; }
as_property* as_value::to_property() const { if (is_property()) { return m_property; } return NULL; }
void as_value::set_property_target(as_object* target) // Sets the target to the given object. { assert(is_property()); if (m_property_target) { m_property_target->drop_ref(); } m_property_target = target; m_property_target->add_ref(); }
void as_value::set_property_target(as_object* target) // Sets the target to the given object. { assert(is_property()); m_property_target = target; }
void as_value::get_property(as_value* val) const { assert(is_property()); m_property->get(m_property_target, val); }
// get property of primitive value, like Number void as_value::get_property(const as_value& primitive, as_value* val) const { assert(is_property()); m_property->get(primitive, val); }
void as_value::set_property(const as_value& val) { assert(is_property()); m_property->set(m_property_target, val); }