vala-1.0 Reference Manual

Synopsis

public class Method : Member  {
    public    DataType                  return_type               { get; set; } ;
    public    Block                     body                      { get; set; } ;
    public    BasicBlock                entry_block               { get; set; } ;
    public    BasicBlock                exit_block                { get; set; } ;
    public    weak bool                 instance                  { get; set; } ;
    public    string                    vfunc_name                { get; set; } ;
    public    string                    sentinel                  { get; set; } ;
    public    weak bool                 is_abstract               { get; set; } ;
    public    weak bool                 is_virtual                { get; set; } ;
    public    weak bool                 overrides                 { get; set; } ;
    public    weak bool                 is_inline                 { get; set; } ;
    public    weak bool                 returns_modified_pointer  { get; set; } ;
    public    weak Method               base_method               { get; set; } ;
    public    Method                    base_interface_method     { get; set; } ;
    public    FormalParameter           this_parameter            { get; set; } ;
    public    LocalVariable             result_var                { get; set; } ;
    public    weak double               cinstance_parameter_position { get; set; } ;
    public    weak double               carray_length_parameter_position { get; set; } ;
    public    weak double               cdelegate_target_parameter_position { get; set; } ;
    public    weak bool                 no_array_length           { get; set; } ;
    public    weak bool                 printf_format             { get; set; } ;


    public                              Method                    ( string              name,
                                                                    DataType            return_type,
                                                                    SourceReference?    source_reference = null ) ;


    public    void                      add_parameter             ( FormalParameter     param ) ;
    public    Gee.Collection< FormalParameter >  get_parameters            (  ) ;
    public    void                      clear_parameters          (  ) ;
    public    string                    get_cname                 (  ) ;
    public    virtual string            get_default_cname         (  ) ;
    public    string                    get_real_cname            (  ) ;
    public    void                      set_cname                 ( string              cname ) ;
    public    void                      process_attributes        (  ) ;
    public    bool                      compatible                ( Method              base_method,
                                                                    string?             invalid_match ) ;
    public    void                      add_error_domain          ( DataType            error_domain ) ;
    public    Gee.Collection< DataType >  get_error_domains         (  ) ;
    public    void                      add_precondition          ( Expression          precondition ) ;
    public    Gee.Collection< Expression >  get_preconditions         (  ) ;
    public    void                      add_postcondition         ( Expression          postcondition ) ;
    public    Gee.Collection< Expression >  get_postconditions        (  ) ;
}

Method Description

Details

Constructor Details

Method ()
    public                              Method                    ( string              name,
                                                                    DataType            return_type,
                                                                    SourceReference?    source_reference = null ) ;		

Field Details

Signal Details

Property Details

return_type
    public    DataType                  return_type               { get; set; } ;		

body
    public    Block                     body                      { get; set; } ;		

entry_block
    public    BasicBlock                entry_block               { get; set; } ;		

exit_block
    public    BasicBlock                exit_block                { get; set; } ;		

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

vfunc_name
    public    string                    vfunc_name                { get; set; } ;		

sentinel
    public    string                    sentinel                  { get; set; } ;		

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

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

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

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

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

base_method
    public    weak Method               base_method               { get; set; } ;		

base_interface_method
    public    Method                    base_interface_method     { get; set; } ;		

this_parameter
    public    FormalParameter           this_parameter            { get; set; } ;		

result_var
    public    LocalVariable             result_var                { get; set; } ;		

cinstance_parameter_position
    public    weak double               cinstance_parameter_position { get; set; } ;		

carray_length_parameter_position
    public    weak double               carray_length_parameter_position { get; set; } ;		

cdelegate_target_parameter_position
    public    weak double               cdelegate_target_parameter_position { get; set; } ;		

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

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

Method Details

add_parameter ()
    public    void                      add_parameter             ( FormalParameter     param ) ;		

get_parameters ()
    public    Gee.Collection< FormalParameter >  get_parameters            (  ) ;		

clear_parameters ()
    public    void                      clear_parameters          (  ) ;		

get_cname ()
    public    string                    get_cname                 (  ) ;		

get_default_cname ()
    public    virtual string            get_default_cname         (  ) ;		

get_real_cname ()
    public    string                    get_real_cname            (  ) ;		

set_cname ()
    public    void                      set_cname                 ( string              cname ) ;		

process_attributes ()
    public    void                      process_attributes        (  ) ;		

compatible ()
    public    bool                      compatible                ( Method              base_method,
                                                                    string?             invalid_match ) ;		

add_error_domain ()
    public    void                      add_error_domain          ( DataType            error_domain ) ;		

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

add_precondition ()
    public    void                      add_precondition          ( Expression          precondition ) ;		

get_preconditions ()
    public    Gee.Collection< Expression >  get_preconditions         (  ) ;		

add_postcondition ()
    public    void                      add_postcondition         ( Expression          postcondition ) ;		

get_postconditions ()
    public    Gee.Collection< Expression >  get_postconditions        (  ) ;		


Created by Valadoc