Logo Search packages:      
Sourcecode: parser version File versions  Download package

VClass Class Reference

#include <pa_vclass.h>

Inheritance diagram for VClass:

VStateless_class Value PA_Allocated

List of all members.

Detailed Description


Definition at line 22 of file pa_vclass.h.

Public Member Functions

override void add_method (const String &name, Method &method)
 override to pre-cache property accessors into fields
void add_native_method (const char *cstr_name, Method::Call_type call_type, NativeCodePtr native_code, int min_numbered_params_count, int max_numbered_params_count)
override Valueas (const char *atype, bool looking_up)
override bool as_bool () const
 VClass: true.
virtual double as_double () const
 extract double
override Valueas_expr_result (bool)
 what's the meaning of this value in context of expression?
virtual int as_int () const
 extract integer
const Stringas_string ()
virtual VFileas_vfile (String::Language lang=String::L_UNSPECIFIED, const Request_charsets *charsets=0)
 extract file
override Valuebase ()
 VStateless_class: fbase.
VStateless_classbase_class ()
virtual Valuebase_object ()
override Valuecreate_new_value (Pool &apool, HashStringValue &afields)
bool derived_from (VStateless_class &vclass)
override VStateless_classget_class ()
 VStateless_class: this.
override Valueget_default_getter (Value &aself, const String &aname)
override VJunctionget_default_setter (Value &aself, const String &aname)
override Valueget_element (const String &aname, Value &aself, bool alooking_up)
 VClass: $CLASS, (field/property)=STATIC value;(method)=method_ref with self=object_class.
virtual HashStringValueget_hash ()
virtual Junctionget_junction ()
 extract Junction
virtual VStateless_classget_last_derived_class ()
 extract VStateless_class
Methodget_method (const String &aname) const
virtual Propertyget_property ()
 extract Property
override Valueget_scalar (Value &aself)
virtual const Stringget_string ()
 extract const String
virtual Tableget_table ()
 extract VTable
bool is (const char *atype)
 type checking helper, uses Value::as
virtual bool is_bool () const
 is this value bool?
virtual bool is_defined () const
 is this value defined?
virtual bool is_evaluated_expr () const
 is this value number?
bool is_partial ()
virtual bool is_string () const
 is this value string?
bool is_vars_local ()
virtual bool is_void () const
 is this value void?
void lock ()
const Stringname () const
const char * name_cstr () const
override const VJunctionput_element (Value &self, const String &name, Value *value, bool replace)
 VClass: (field/property)=value - static values only.
void set_all_vars_local ()
void set_base (VStateless_class *abase)
override void set_default_getter (Method *amethod)
override void set_default_setter (Method *amethod)
virtual VObjectset_derived (VObject *)
void set_name (const String &aname)
void set_partial ()
override void set_scalar (Method *amethod)
const char * type () const
 value type, used for error reporting and 'is' expression operator
just stubs, real onces defined below the hierarchy
virtual Valueget_field (const String &)
virtual bool replace_field (const String &, Value *)

Static Public Member Functions

static void free (void *ptr)
static void * malloc (size_t size)
static void * malloc_atomic (size_t size)
static void operator delete (void *ptr)
static void * operator new (size_t size)
 the sole: instances allocated using our functions
static void * realloc (void *ptr, size_t size)
static char * strdup (const char *auto_variable_never_null, size_t helper_length=0)

Protected Member Functions

Valuebark (const char *reason, const String *problem_source=0) const
 throws exception specifying bark-reason and name() type() of problematic value
void fill_properties (HashStringValue &acache)

Protected Attributes


Private Member Functions

Propertyadd_property (const String &aname)

Static Private Member Functions

static const VJunctionprevent_append_if_exists_in_base (Value *value, Prevent_info *info)
static const VJunctionprevent_overwrite_property (Value *value, Prevent_info *info)

Private Attributes

HashStringValue ffields


struct  Prevent_info

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index