#include <kite_object.h>
Public Types | |
enum | { OBJ_NULL, OBJ_INTEGER, OBJ_FLOAT, OBJ_STRING, OBJ_IDENT, OBJ_LIST, OBJ_BOOLEAN, OBJ_METHOD, OBJ_CLASS, OBJ_INSTANCE } |
Data Fields | |
enum kite_object_t:: { ... } | type |
union { | |
long intvalue | |
double floatvalue | |
struct { | |
int length | |
char * string | |
} stringvalue | |
struct { | |
struct kite_object_t * car | |
struct kite_object_t * cdr | |
struct kite_object_t * iterator | |
} listvalue | |
kite_function_t funcvalue | |
kite_thread_t * threadvalue | |
} | builtin_data |
struct { | |
char * name | |
char * docstring | |
struct kite_object_t * inherit_from | |
kite_symtab_t * properties | |
} | object_data |
struct kite_function_t
struct kite_symtab_t
anonymous enum |
enum { ... } kite_object_t::type |
The object's type.
Referenced by kite_boolean_object(), kite_destruct_object_nofree(), kite_exists_method(), kite_float_object(), kite_gc_destroy_all(), kite_gc_incremental(), kite_int_object(), kite_list_count(), kite_new_boolean(), kite_new_class(), kite_new_float(), kite_new_ident(), kite_new_instance(), kite_new_integer(), kite_new_list(), kite_new_method_bytecode(), kite_new_method_compiled(), kite_new_null(), kite_new_string(), kite_new_string_with_length(), kite_string_object(), kite_vm_call_method(), kite_vm_call_object(), and kite_vm_execute_user_method().
Associated integer value.
Referenced by kite_boolean_object(), kite_float_object(), kite_int_object(), kite_new_boolean(), kite_new_integer(), and kite_string_object().
double kite_object_t::floatvalue |
Associated floating-point value.
Referenced by kite_boolean_object(), kite_int_object(), kite_new_float(), and kite_string_object().
String length.
char* kite_object_t::string |
String value.
struct { ... } kite_object_t::stringvalue |
struct kite_object_t* kite_object_t::car [read] |
Current list element
struct kite_object_t* kite_object_t::cdr [read] |
Next list element
struct kite_object_t* kite_object_t::iterator [read] |
Current iterator position
struct { ... } kite_object_t::listvalue |
Thread value.
union { ... } kite_object_t::builtin_data |
Referenced by kite_add_method(), kite_append_list(), kite_boolean_object(), kite_destruct_object_nofree(), kite_float_object(), kite_handle_signal(), kite_int_object(), kite_list_count(), kite_list_object(), kite_new_boolean(), kite_new_class(), kite_new_float(), kite_new_ident(), kite_new_integer(), kite_new_list(), kite_new_method_bytecode(), kite_new_method_compiled(), kite_new_string(), kite_new_string_with_length(), kite_set_arginfo(), kite_string_object(), kite_vm_call_method(), kite_vm_call_object(), kite_vm_compile_from_fp(), kite_vm_compile_from_string_without_obj(), and kite_vm_execute_exception().
char* kite_object_t::name |
Name of class.
Referenced by kite_destruct_object_nofree(), kite_new_class(), kite_new_instance(), and kite_object_name().
char* kite_object_t::docstring |
Documentation for given class.
Referenced by kite_destruct_object_nofree(), kite_get_docstring(), and kite_set_docstring().
struct kite_object_t* kite_object_t::inherit_from [read] |
Inherited from.
Referenced by kite_destruct_object_nofree(), kite_new_class(), kite_new_instance(), kite_object_name(), kite_reference_object(), kite_set_property(), kite_vm_call_method(), kite_vm_call_object(), and kite_vm_call_operator().
Class properties/method.
Referenced by kite_add_method(), kite_add_property(), kite_destruct_object_nofree(), kite_exists_operator(), kite_remove_method(), kite_remove_operator(), kite_remove_property(), kite_vm_call_constructor(), and kite_vm_call_operator().
struct { ... } kite_object_t::object_data |
Referenced by kite_add_method(), kite_add_property(), kite_destruct_object_nofree(), kite_exists_operator(), kite_get_docstring(), kite_new_class(), kite_new_instance(), kite_object_name(), kite_reference_object(), kite_remove_method(), kite_remove_operator(), kite_remove_property(), kite_set_docstring(), kite_set_property(), kite_vm_call_constructor(), kite_vm_call_method(), kite_vm_call_object(), and kite_vm_call_operator().