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

WContext Class Reference

#include <pa_wcontext.h>

Inheritance diagram for WContext:

Value PA_Allocated VCodeFrame VMethodFrame WWrapper

List of all members.

Detailed Description

Write context they do different write()s here, later picking up the result
See also:

Definition at line 46 of file pa_wcontext.h.

Public Member Functions

virtual Valueas (const char *atype, bool)
virtual bool as_bool () const
 extract bool
virtual double as_double () const
 extract double
virtual Valueas_expr_result (bool=false)
 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
void attach_junction (Junction *ajunction)
virtual Valuebase ()
 extract base object or class of Value, if any
virtual Valuebase_object ()
override VStateless_classget_class ()
 WContext: none yet | transparent.
bool get_constructing ()
virtual Valueget_element (const String &, Value &, bool)
virtual HashStringValueget_hash ()
bool get_in_expression ()
virtual Junctionget_junction ()
 extract Junction
virtual VStateless_classget_last_derived_class ()
 extract VStateless_class
virtual Propertyget_property ()
 extract Property
bool get_somebody_entered_some_class ()
override const Stringget_string ()
 WContext: accumulated fstring.
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?
virtual bool is_string () const
 is this value string?
virtual bool is_void () const
 is this value void?
virtual const VJunctionput_element (Value &, const String &aname, Value *, bool)
virtual StringOrValue result ()
void set_constructing (bool aconstructing)
virtual VObjectset_derived (VObject *)
void set_in_expression (bool ain_expression)
void set_somebody_entered_some_class ()
override const char * type () const
 value type, used for error reporting and 'is' expression operator
 WContext (Value *avalue, WContext *aparent)
void write (Value &avalue, String::Language alang)
virtual void write (Value &avalue)
 writes Value; raises an error if already, providing origin
virtual void write (const String &astring, String::Language alang)
 appends a fstring to result

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

Protected Attributes


Private Member Functions

void detach_junctions ()

Private Attributes

bool constructing
bool entered_class
bool entered_object
bool in_expression
Array< Junction * > junctions
bool were_string_writes


class Request

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

Generated by  Doxygen 1.6.0   Back to index