pinchpi_object (pinchpi v0.1.0)

Summary

Functions

bind_prop_ref(_, PropName, TargetRef, Ctx)

call_method(Gen, Method, ArgNodes, Nullsafe, Ctx)

call_static(RawClassRef, MethodExpr, ArgNodes, Ctx)

check_instance_prop_access(Cls, PropName, Ctx)

-spec check_instance_prop_access(binary(), binary(), pinchpi_context:ctx()) ->
                                    {ok, pinchpi_context:ctx()} | {error_vis, binary(), binary()}.

check_visibility(_, DefCls, CurCls, Ctx)

-spec check_visibility(public | protected | private,
                       binary(),
                       binary() | undefined,
                       pinchpi_context:ctx()) ->
                          ok | {error, binary()}.

clone_instance(C, Ctx)

-spec clone_instance(term(), pinchpi_context:ctx()) ->
                        {pinchpi_struct:struct_map() | {throw, term()} | {fatal, term(), term()},
                         pinchpi_context:ctx()}.

find_method(ClassName, MethodName, Ctx)

-spec find_method(binary(), binary(), pinchpi_context:ctx()) ->
                     {ok, pinchpi_struct:struct_map()} | error.

find_method_owner(ClassName, MethodName, Ctx)

get_prop(Obj, Prop, Nullsafe, Ctx)

-spec get_prop(term(), binary(), boolean(), pinchpi_context:ctx()) -> {term(), pinchpi_context:ctx()}.

index_class_members(Def)

-spec index_class_members(pinchpi_struct:struct_map()) -> pinchpi_struct:struct_map().

init_hierarchy_props(ClassDef, Ctx)

-spec init_hierarchy_props(pinchpi_struct:struct_map(), pinchpi_context:ctx()) ->
                              {map(), pinchpi_context:ctx()}.

instance_of(_, Target, Ctx)

-spec instance_of(term(), binary(), pinchpi_context:ctx()) -> boolean().

is_subclass_or_impl(ClassName, Target, Ctx)

-spec is_subclass_or_impl(binary(), binary(), pinchpi_context:ctx()) -> boolean().

isset_prop(Obj, PropName, Ctx)

-spec isset_prop(term(), binary(), pinchpi_context:ctx()) -> {boolean(), pinchpi_context:ctx()}.

maybe_destruct(Obj, Ctx)

-spec maybe_destruct(term(), pinchpi_context:ctx()) ->
                        pinchpi_context:ctx() | {{throw, term()}, pinchpi_context:ctx()}.

method_exists(Cls, Method, Ctx)

-spec method_exists(term(), binary(), pinchpi_context:ctx()) -> boolean().

new_instance(RawClassName, ArgNodes, Ctx0)

-spec new_instance(binary(), [pinchpi_struct:struct_map()], pinchpi_context:ctx()) ->
                      {pinchpi_struct:struct_map() | {throw, term()} | {fatal, binary(), pos_integer()},
                       pinchpi_context:ctx()}.

object_to_php_array(_, Ctx)

offset_get_by_ref(ClassName, Ctx)

-spec offset_get_by_ref(binary(), pinchpi_context:ctx()) -> boolean().

run_destructors(Ctx)

-spec run_destructors(pinchpi_context:ctx()) ->
                         pinchpi_context:ctx() | {{throw, term()}, pinchpi_context:ctx()}.

set_prop(Obj, Prop, Val, Ctx0)

-spec set_prop(term(), binary(), term(), pinchpi_context:ctx()) -> {term(), pinchpi_context:ctx()}.

set_static(ClassExpr, Member, Val, Ctx)

static_access(RawClassName, Member, Ctx)

to_string(Obj, Ctx)

-spec to_string(pinchpi_struct:struct_map(), pinchpi_context:ctx()) ->
                   {ok, term(), pinchpi_context:ctx()} | error.

try_autoload(ClassName, Ctx)

-spec try_autoload(binary(), pinchpi_context:ctx()) -> {boolean(), pinchpi_context:ctx()}.

validate_class_inheritance(ClassName, ClassDef, Ctx)

-spec validate_class_inheritance(binary(), pinchpi_struct:struct_map(), pinchpi_context:ctx()) ->
                                    ok | {fatal, binary(), pos_integer()}.