File:  [parser3project] / parser3 / src / types / pa_property.h
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Sat Apr 25 13:38:46 2026 UTC (2 months, 2 weeks ago) by moko
Branches: MAIN
CVS tags: HEAD
Copyright year updated, websites links changed to https://

/** @file
	Parser: Property class decl.

	Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
	Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
*/

#ifndef PA_PROPERTY_H
#define PA_PROPERTY_H

#define IDENT_PA_PROPERTY_H "$Id: pa_property.h,v 1.11 2026/04/25 13:38:46 moko Exp $"

class Method;
class Value;

/** \b junction is getter and setter methods.

	it is used to cache our knowledge that some element is in fact property
	and to save us one hash lookup and one name construction (element--get_element/set_leement)
*/
class Property: public PA_Object {
public:
	Method* getter;
	Method* setter;
	Value *value;

	Property() : getter(0), setter(0), value(0){}
	Property(Property &prop) : getter(prop.getter), setter(prop.setter), value(prop.value){}
};

#endif

E-mail: