--- parser3/src/include/Attic/pa_value.h 2001/02/13 12:59:57 1.4 +++ parser3/src/include/Attic/pa_value.h 2001/02/14 14:15:36 1.7 @@ -1,5 +1,5 @@ /* - $Id: pa_value.h,v 1.4 2001/02/13 12:59:57 paf Exp $ + $Id: pa_value.h,v 1.7 2001/02/14 14:15:36 paf Exp $ */ /* @@ -18,6 +18,11 @@ public: String code; }; +class Operator : public Method { + // operator module static vars stored in there + Operator_class *self; +}; + class Method_ref { public: Value *self; @@ -36,11 +41,18 @@ public: // hash: (key)=value // object_class: (field)=STATIC.value;(STATIC)=hash;(method)=method_ref with self=object_class // object_instance: (field)=value;(STATIC)=hash;(method)=method_ref + // operator_class: (field)=value - static values only virtual Value *get_element(const String& name) const =0; virtual Value *put_element(const String& name, const Value *avalue)=0; // object_instance, object_class: method virtual Method *get_method(const String& name) const =0; + + // object_class, object_instance: object_class + virtual Class *get_class() const =0; + + // object_class: true when this class is derived from 'parent' + virtual bool has_parent(Class *aparent) const =0; }; /*