vala-1.0 Reference Manual

Synopsis

public class Class : Typesymbol  {
    public    Class                     base_class                { get; set; } ;
    public    weak bool                 is_abstract               { get; set; } ;
    public    weak bool                 is_static                 { get; set; } ;
    public    weak bool                 has_private_fields        { get; set; } ;
    public    Method                    default_construction_method { get; set; } ;
    public    Constructor               constructor               { get; set; } ;
    public    Constructor               static_constructor        { get; set; } ;
    public    Destructor?               destructor                { get; set; } ;
    public    weak bool                 is_error_base             { get; set; } ;


    public                              Class                     ( string              name,
                                                                    SourceReference?    source_reference = null ) ;


    public    void                      add_base_type             ( DataType            type ) ;
    public    Gee.Collection< DataType >  get_base_types            (  ) ;
    public    void                      add_type_parameter        ( TypeParameter       p ) ;
    public    Gee.Collection< TypeParameter >  get_type_parameters       (  ) ;
    public    void                      add_constant              ( Constant            c ) ;
    public    void                      add_field                 ( Field               f ) ;
    public    Gee.Collection< Field >   get_fields                (  ) ;
    public    void                      add_method                ( Method              m ) ;
    public    Gee.Collection< Method >  get_methods               (  ) ;
    public    void                      add_property              ( Property            prop,
                                                                    bool                no_field = ÿ% ) ;
    public    Gee.Collection< Property >  get_properties            (  ) ;
    public    void                      add_signal                ( Signal              sig ) ;
    public    Gee.Collection< Signal >  get_signals               (  ) ;
    public    void                      add_class                 ( Class               cl ) ;
    public    void                      add_struct                ( Struct              st ) ;
    public    void                      add_enum                  ( Enum                en ) ;
    public    void                      add_delegate              ( Delegate            d ) ;
    public    string                    get_default_cname         (  ) ;
    public    void                      set_cname                 ( string              cname ) ;
    public    void                      process_attributes        (  ) ;
    public    void                      set_type_id               ( string              type_id ) ;
    public    void                      set_ref_function          ( string?             name ) ;
    public    void                      set_unref_function        ( string?             name ) ;
    public    void                      set_dup_function          ( string?             name ) ;
    public    string                    get_default_free_function (  ) ;
    public    void                      set_free_function         ( string              name ) ;
}

Class Description

Details

Constructor Details

Class ()
    public                              Class                     ( string              name,
                                                                    SourceReference?    source_reference = null ) ;		

Field Details

Signal Details

Property Details

base_class
    public    Class                     base_class                { get; set; } ;		

is_abstract
    public    weak bool                 is_abstract               { get; set; } ;		

is_static
    public    weak bool                 is_static                 { get; set; } ;		

has_private_fields
    public    weak bool                 has_private_fields        { get; set; } ;		

default_construction_method
    public    Method                    default_construction_method { get; set; } ;		

constructor
    public    Constructor               constructor               { get; set; } ;		

static_constructor
    public    Constructor               static_constructor        { get; set; } ;		

destructor
    public    Destructor?               destructor                { get; set; } ;		

is_error_base
    public    weak bool                 is_error_base             { get; set; } ;		

Method Details

add_base_type ()
    public    void                      add_base_type             ( DataType            type ) ;		

get_base_types ()
    public    Gee.Collection< DataType >  get_base_types            (  ) ;		

add_type_parameter ()
    public    void                      add_type_parameter        ( TypeParameter       p ) ;		

get_type_parameters ()
    public    Gee.Collection< TypeParameter >  get_type_parameters       (  ) ;		

add_constant ()
    public    void                      add_constant              ( Constant            c ) ;		

add_field ()
    public    void                      add_field                 ( Field               f ) ;		

get_fields ()
    public    Gee.Collection< Field >   get_fields                (  ) ;		

add_method ()
    public    void                      add_method                ( Method              m ) ;		

get_methods ()
    public    Gee.Collection< Method >  get_methods               (  ) ;		

add_property ()
    public    void                      add_property              ( Property            prop,
                                                                    bool                no_field = ÿ% ) ;		

get_properties ()
    public    Gee.Collection< Property >  get_properties            (  ) ;		

add_signal ()
    public    void                      add_signal                ( Signal              sig ) ;		

get_signals ()
    public    Gee.Collection< Signal >  get_signals               (  ) ;		

add_class ()
    public    void                      add_class                 ( Class               cl ) ;		

add_struct ()
    public    void                      add_struct                ( Struct              st ) ;		

add_enum ()
    public    void                      add_enum                  ( Enum                en ) ;		

add_delegate ()
    public    void                      add_delegate              ( Delegate            d ) ;		

get_default_cname ()
    public    string                    get_default_cname         (  ) ;		

set_cname ()
    public    void                      set_cname                 ( string              cname ) ;		

process_attributes ()
    public    void                      process_attributes        (  ) ;		

set_type_id ()
    public    void                      set_type_id               ( string              type_id ) ;		

set_ref_function ()
    public    void                      set_ref_function          ( string?             name ) ;		

set_unref_function ()
    public    void                      set_unref_function        ( string?             name ) ;		

set_dup_function ()
    public    void                      set_dup_function          ( string?             name ) ;		

get_default_free_function ()
    public    string                    get_default_free_function (  ) ;		

set_free_function ()
    public    void                      set_free_function         ( string              name ) ;		


Created by Valadoc