class Bindgen::Graph::Method
- Bindgen::Graph::Method
- Bindgen::Graph::Node
- Reference
- Object
Overview
A method, and its calls. The #calls
will be populated later on by
processors.
Defined in:
bindgen/graph/method.crConstant Summary
-
EXPLICIT_BIND_TAG =
"EXPLICIT_BIND_TAG"
-
If this tag is set, this method will bind directly to the method named in the value.
Processor::CppWrapper
won't generate a wrapper for this method.Processor::CrystalBinding
will make thefun
of this function point to it. The Crystal wrapper is not affected. -
REMOVABLE_BINDING_TAG =
"REMOVABLE_BINDING_TAG"
-
If this tag is set, this methods CrystalBinding and Cpp calls can be removed by a later processor. The value is left empty.
-
UNWRAP_INITIALIZE_TAG =
"UNWRAP_INITIALIZE_TAG"
-
If this tag is set, it means this method is a
#initialize(unwrap: )
. The value is left empty.
Constructors
Instance Method Summary
-
#calls : Hash(Bindgen::Graph::Platform, Bindgen::Call)
Calls for the various
Generator
s -
#constant? : Bool
A method is not a constant in Crystal.
-
#crystal_prefix : String
Returns a dot (
.
) if the origin method is static. -
#diagnostics_path : String
Gives a humanly-readable path string, formatted for Crystal.
- #mangled_name(*args, **options)
- #mangled_name(*args, **options, &)
-
#origin : Parser::Method
Parser::Method
this method node is based on. -
#parent_class : Graph::Class | Nil
Returns the class containing this method.
Instance methods inherited from class Bindgen::Graph::Node
constant? : Bool
constant?,
crystal_prefix : String
crystal_prefix,
diagnostics_path : String
diagnostics_path,
find_root : Node
find_root,
full_path : Array(Node)
full_path,
kind_name : String
kind_name,
name : String
name,
parent : Container | Nil
parent,
parent=(parent : Container | Nil)
parent=,
path_name : String
path_name,
set_tag(name : String, value : String = "")
set_tag,
tag(name : String)
tag,
tag?(name : String)
tag?,
tags : Hash(String, String)
tags,
unspecific_parent : Container | Nil
unspecific_parent
Constructor methods inherited from class Bindgen::Graph::Node
new(name : String, parent : Container | Nil = nil)
new
Constructor Detail
Instance Method Detail
Calls for the various Generator
s
Returns a dot (.
) if the origin method is static. Returns a number
sign (#
) otherwise.
Gives a humanly-readable path string, formatted for Crystal.