class Bindgen::Call::Result
- Bindgen::Call::Result
- Bindgen::Call::Expression
- Reference
- Object
Overview
Call result type configuration.
Direct Known Subclasses
Defined in:
bindgen/call.crConstructors
Instance Method Summary
-
#apply_conversion(code : String) : String
Applies the result's conversion template to a piece of code.
-
#conversion : Template::Base
Conversion template to get the data out of the method, ready to be returned back.
-
#to_argument(name : String, default = nil) : Argument
Converts the result into an argument of name.
Instance methods inherited from class Bindgen::Call::Expression
==(other : self)
==,
hash(hasher)
hash,
nilable? : Bool
nilable?,
pointer : Int32
pointer,
reference : Bool
reference,
type : Parser::Type
type,
type_name : String
type_name
Constructor methods inherited from class Bindgen::Call::Expression
new(type : Bindgen::Parser::Type, reference : Bool, pointer : Int32, type_name : String, nilable : Bool)
new
Constructor Detail
def self.new(type, type_name, reference, pointer, conversion : Bindgen::Template::Base = Template::None.new, nilable = false)
#
Instance Method Detail
def apply_conversion(code : String) : String
#
Applies the result's conversion template to a piece of code.
def conversion : Template::Base
#
Conversion template to get the data out of the method, ready to be returned back.
Converts the result into an argument of name.