--- parser3/src/include/Attic/pa_context.h 2001/02/11 19:35:38 1.1 +++ 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.1 2001/02/11 19:35:38 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 @@ -34,12 +35,15 @@ public: //implement by replicating to va virtual String *get_string() const { return &string }; virtual void put_string(const String *astring) { check(value)->put_string(astring); }; + virtual Method_ref *get_method_ref() const { return check(value)->get_method_ref(); } + virtual Value *get_element(const String& name) const { return check(value)->get_element(name); } virtual void put_element(const String& name, const Value *avalue){ check(value)->put_element(name, avalue); } - virtual Value *get_THIS() const { return check(value)->get_THIS(); } - virtual String *get_code(const String& name) const { return check(value)->get_code(name); } - virtual String *get_code() const { return check(value)->get_code(); } + 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;