26 #if ! defined (octave_tree_classdef_h)
27 #define octave_tree_classdef_h 1
29 #include "octave-config.h"
56 int l = -1,
int c = -1)
237 :
public base_list<tree_classdef_superclass *>
267 template <
typename T>
274 int l = -1,
int c = -1)
391 int l = -1,
int c = -1)
444 int l = -1,
int c = -1)
538 int l = -1,
int c = -1)
635 int l = -1,
int c = -1)
658 typedef std::list<tree_classdef_properties_block *>::iterator
660 typedef std::list<tree_classdef_properties_block *>::const_iterator
663 typedef std::list<tree_classdef_methods_block *>::iterator
665 typedef std::list<tree_classdef_methods_block *>::const_iterator
669 typedef std::list<tree_classdef_events_block *>::const_iterator
673 typedef std::list<tree_classdef_enum_block *>::const_iterator
771 const std::string& fn =
"",
int l = -1,
int c = -1)
813 bool is_at_folder =
false);
void append(const tree_classdef_attribute * &s)
octave_idx_type length(void) const
tree_classdef_attribute_list(const tree_classdef_attribute_list &)=delete
tree_classdef_attribute_list & operator=(const tree_classdef_attribute_list &)=delete
~tree_classdef_attribute_list(void)
tree_classdef_attribute_list(tree_classdef_attribute *a)
tree_classdef_attribute_list(const base_list< tree_classdef_attribute * > &a)
void accept(tree_walker &tw)
tree_classdef_attribute_list(void)
tree_classdef_attribute(const tree_classdef_attribute &)=delete
tree_classdef_attribute & operator=(const tree_classdef_attribute &)=delete
tree_identifier * ident(void)
void accept(tree_walker &tw)
~tree_classdef_attribute(void)
tree_classdef_attribute(tree_identifier *i, bool b)
tree_expression * expression(void)
tree_classdef_attribute(tree_identifier *i=nullptr, tree_expression *e=nullptr)
std::list< tree_classdef_enum_block * > enum_list(void)
std::list< tree_classdef_properties_block * > properties_list(void)
std::list< tree_classdef_properties_block * >::iterator properties_list_iterator
tree_classdef_body(const tree_classdef_body &)=delete
std::list< tree_classdef_events_block * >::const_iterator events_list_const_iterator
tree_classdef_body & operator=(const tree_classdef_body &)=delete
void append(tree_classdef_enum_block *enb)
std::list< tree_classdef_events_block * >::iterator events_list_iterator
~tree_classdef_body(void)
std::list< tree_classdef_properties_block * >::const_iterator properties_list_const_iterator
void append(tree_classdef_methods_block *mb)
std::list< tree_classdef_enum_block * >::iterator enum_list_iterator
std::list< tree_classdef_events_block * > m_events_lst
void accept(tree_walker &tw)
std::list< tree_classdef_enum_block * >::const_iterator enum_list_const_iterator
std::string doc_string(void) const
std::list< tree_classdef_methods_block * > m_methods_lst
std::list< tree_classdef_methods_block * > methods_list(void)
std::list< tree_classdef_methods_block * >::iterator methods_list_iterator
void doc_string(const std::string &txt)
void append(tree_classdef_events_block *evb)
std::list< tree_classdef_enum_block * > m_enum_lst
std::list< tree_classdef_properties_block * > m_properties_lst
std::list< tree_classdef_events_block * > events_list(void)
bool have_doc_string(void) const
void append(tree_classdef_properties_block *pb)
std::list< tree_classdef_methods_block * >::const_iterator methods_list_const_iterator
std::string get_doc_string(comment_list *comment) const
tree_classdef_element(tree_classdef_attribute_list *a, T *elt_list, comment_list *lc, comment_list *tc, int l=-1, int c=-1)
comment_list * leading_comment(void)
void accept(tree_walker &)
comment_list * m_lead_comm
tree_classdef_attribute_list * m_attr_list
tree_classdef_element & operator=(const tree_classdef_element &)=delete
comment_list * m_trail_comm
tree_classdef_element(const tree_classdef_element &)=delete
comment_list * trailing_comment(void)
~tree_classdef_element(void)
tree_classdef_attribute_list * attribute_list(void)
~tree_classdef_enum_block(void)=default
void accept(tree_walker &tw)
tree_classdef_enum_block & operator=(const tree_classdef_enum_block &)=delete
tree_classdef_enum_block(tree_classdef_attribute_list *a, tree_classdef_enum_list *elist, comment_list *lc, comment_list *tc, int l=-1, int c=-1)
tree_classdef_enum_block(const tree_classdef_enum_block &)=delete
void accept(tree_walker &tw)
tree_classdef_enum_list(void)
tree_classdef_enum_list & operator=(const tree_classdef_enum_list &)=delete
tree_classdef_enum_list(const base_list< tree_classdef_enum * > &a)
~tree_classdef_enum_list(void)
tree_classdef_enum_list(const tree_classdef_enum_list &)=delete
tree_classdef_enum_list(tree_classdef_enum *e)
comment_list * comments(void) const
bool have_doc_string(void) const
void doc_string(const std::string &txt)
tree_classdef_enum(tree_identifier *i, tree_expression *e, comment_list *comments)
std::string doc_string(void) const
comment_list * m_comments
tree_classdef_enum(const tree_classdef_enum &)=delete
tree_identifier * ident(void)
tree_classdef_enum & operator=(const tree_classdef_enum &)=delete
void accept(tree_walker &tw)
tree_expression * expression(void)
~tree_classdef_enum(void)
comment_list * comments(void) const
bool have_doc_string(void) const
tree_identifier * ident(void)
comment_list * m_comments
void accept(tree_walker &tw)
tree_classdef_event(const tree_classdef_event &)=delete
void doc_string(const std::string &txt)
std::string doc_string(void) const
~tree_classdef_event(void)
tree_classdef_event(tree_identifier *i=nullptr, comment_list *comments=nullptr)
tree_classdef_event & operator=(const tree_classdef_event &)=delete
tree_classdef_events_block(tree_classdef_attribute_list *a, tree_classdef_events_list *elist, comment_list *lc, comment_list *tc, int l=-1, int c=-1)
void accept(tree_walker &tw)
tree_classdef_events_block & operator=(const tree_classdef_events_block &)=delete
tree_classdef_events_block(const tree_classdef_events_block &)=delete
~tree_classdef_events_block(void)=default
tree_classdef_events_list(const base_list< tree_classdef_event * > &a)
~tree_classdef_events_list(void)
tree_classdef_events_list & operator=(const tree_classdef_events_list &)=delete
tree_classdef_events_list(void)
void accept(tree_walker &tw)
tree_classdef_events_list(const tree_classdef_events_list &)=delete
tree_classdef_events_list(tree_classdef_event *e)
tree_classdef_methods_block & operator=(const tree_classdef_methods_block &)=delete
tree_classdef_methods_block(const tree_classdef_methods_block &)=delete
void accept(tree_walker &tw)
tree_classdef_methods_block(tree_classdef_attribute_list *a, tree_classdef_methods_list *mlist, comment_list *lc, comment_list *tc, int l=-1, int c=-1)
~tree_classdef_methods_block(void)=default
~tree_classdef_methods_list(void)=default
tree_classdef_methods_list(const octave_value &f)
tree_classdef_methods_list(const tree_classdef_methods_list &)=delete
tree_classdef_methods_list(const base_list< octave_value > &a)
tree_classdef_methods_list(void)
tree_classdef_methods_list & operator=(const tree_classdef_methods_list &)=delete
void accept(tree_walker &tw)
~tree_classdef_properties_block(void)=default
tree_classdef_properties_block(const tree_classdef_properties_block &)=delete
tree_classdef_properties_block(tree_classdef_attribute_list *a, tree_classdef_property_list *plist, comment_list *lc, comment_list *tc, int l=-1, int c=-1)
void accept(tree_walker &tw)
tree_classdef_properties_block & operator=(const tree_classdef_properties_block &)=delete
tree_classdef_property_list(const base_list< tree_classdef_property * > &a)
tree_classdef_property_list(void)
~tree_classdef_property_list(void)
tree_classdef_property_list(const tree_classdef_property_list &)=delete
tree_classdef_property_list & operator=(const tree_classdef_property_list &)=delete
void accept(tree_walker &tw)
tree_classdef_property_list(tree_classdef_property *p)
tree_identifier * ident(void)
tree_classdef_property(const tree_classdef_property &)=delete
std::string doc_string(void) const
tree_arg_validation * m_av
void accept(tree_walker &tw)
tree_classdef_property(tree_arg_validation *av, comment_list *comments=nullptr)
bool have_doc_string(void) const
comment_list * comments(void) const
~tree_classdef_property(void)
tree_classdef_property & operator=(const tree_classdef_property &)=delete
void doc_string(const std::string &txt)
comment_list * m_comments
tree_expression * expression(void)
tree_classdef_superclass_list(void)
tree_classdef_superclass_list & operator=(const tree_classdef_superclass_list &)=delete
void accept(tree_walker &tw)
tree_classdef_superclass_list(tree_classdef_superclass *sc)
tree_classdef_superclass_list(const base_list< tree_classdef_superclass * > &a)
tree_classdef_superclass_list(const tree_classdef_superclass_list &)=delete
~tree_classdef_superclass_list(void)
tree_classdef_superclass(const tree_classdef_superclass &)=delete
void accept(tree_walker &tw)
~tree_classdef_superclass(void)=default
tree_classdef_superclass(const std::string &cname)
tree_classdef_superclass & operator=(const tree_classdef_superclass &)=delete
std::string class_name(void)
tree_classdef & operator=(const tree_classdef &)=delete
tree_classdef_superclass_list * m_supclass_list
tree_classdef_attribute_list * m_attr_list
octave_value make_meta_class(interpreter &interp, bool is_at_folder=false)
tree_classdef_body * body(void)
tree_classdef_superclass_list * superclass_list(void)
tree_classdef_body * m_element_list
tree_classdef_attribute_list * attribute_list(void)
comment_list * leading_comment(void)
std::string file_name(void) const
std::string doc_string(void) const
comment_list * m_trail_comm
tree_classdef(const tree_classdef &)=delete
tree_identifier * ident(void)
void accept(tree_walker &tw)
comment_list * m_lead_comm
tree_classdef(const symbol_scope &scope, tree_classdef_attribute_list *a, tree_identifier *i, tree_classdef_superclass_list *sc, tree_classdef_body *b, comment_list *lc, comment_list *tc, const std::string &pn="", const std::string &fn="", int l=-1, int c=-1)
comment_list * trailing_comment(void)
std::string package_name(void) const
tree_superclass_ref(const std::string &meth, const std::string &cls, int l=-1, int c=-1)
void accept(tree_walker &tw)
std::string method_name(void) const
tree_superclass_ref(const tree_superclass_ref &)=delete
tree_superclass_ref(void)=delete
std::string m_method_name
octave_value evaluate(tree_evaluator &tw, int nargout=1)
tree_superclass_ref & operator=(const tree_superclass_ref &)=delete
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
tree_superclass_ref * dup(symbol_scope &scope) const
std::string class_name(void) const
virtual void visit_classdef_attribute(tree_classdef_attribute &)
virtual void visit_classdef_methods_list(tree_classdef_methods_list &)
virtual void visit_classdef_methods_block(tree_classdef_methods_block &)
virtual void visit_classdef_enum_block(tree_classdef_enum_block &)
virtual void visit_classdef(tree_classdef &)
virtual void visit_classdef_superclass(tree_classdef_superclass &)
virtual void visit_classdef_property(tree_classdef_property &)
virtual void visit_classdef_events_block(tree_classdef_events_block &)
virtual void visit_classdef_property_list(tree_classdef_property_list &)
virtual void visit_classdef_body(tree_classdef_body &)
virtual void visit_classdef_enum(tree_classdef_enum &)
virtual void visit_classdef_enum_list(tree_classdef_enum_list &)
virtual void visit_classdef_properties_block(tree_classdef_properties_block &)
virtual void visit_classdef_superclass_list(tree_classdef_superclass_list &)
virtual void visit_classdef_attribute_list(tree_classdef_attribute_list &)
virtual void visit_classdef_event(tree_classdef_event &)
virtual void visit_classdef_events_list(tree_classdef_events_list &)
virtual void visit_superclass_ref(tree_superclass_ref &)
virtual void visit_metaclass_query(tree_metaclass_query &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
F77_RET_T const F77_DBLE const F77_DBLE * f
return octave_value(v1.char_array_value() . concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string()) ? '\'' :'"'))
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.