--- parser3/src/include/Attic/pa_context.h 2001/02/12 11:44:41 1.3 +++ parser3/src/include/Attic/pa_context.h 2001/02/14 13:40:54 1.6 @@ -1,5 +1,5 @@ /* - $Id: pa_context.h,v 1.3 2001/02/12 11:44:41 paf Exp $ + $Id: pa_context.h,v 1.6 2001/02/14 13:40:54 paf Exp $ */ /* @@ -22,6 +22,7 @@ public: // if value.string!=0 writes just string, not Value // raises an error if already void write(Value& avalue); + void write(String_iterator& from, String_iterator& to); // retrives the resulting value // that can be Text if value==0 or the Value object @@ -41,6 +42,9 @@ public: //implement by replicating to va virtual Method *get_method(const String& name) const { return check(value)->get_method(name); } + virtual Class *get_class() const { return value?value->get_class():0; } + virtual bool has_parent(Class *aparent) { return value?value->has_parent(aparent):false; } + private: String& string; Value *value;