class Bindgen::Processor::CrystalBinding
- Bindgen::Processor::CrystalBinding
- Bindgen::Processor::Base
- Reference
- Object
Overview
Processor to write lib
bindings to the functions created by the
CppWrapper
processor.
Defined in:
bindgen/processor/crystal_binding.crConstant Summary
-
PLATFORM =
Graph::Platform::CrystalBinding
-
VOID_RESULT =
Call::Result.new(type: Parser::Type::VOID, type_name: "Void", reference: false, pointer: 0, conversion: nil, nilable: false)
-
A
Call::Result
pointing to aVoid
result.
Constructors
Instance Method Summary
-
#process(graph : Graph::Container, _doc : Parser::Document)
Runs the processor.
-
#visit_class(klass)
Visits a
Graph::Class
. -
#visit_library(library)
Visits a
Graph::Library
. -
#visit_method(method)
Visits a
Graph::Method
. -
#visit_platform_specific(specific)
Visits a
Graph::PlatformSpecific
.
Instance methods inherited from class Bindgen::Processor::Base
process(graph : Graph::Container, doc : Parser::Document)
process
Constructor methods inherited from class Bindgen::Processor::Base
new(config : Configuration, db : TypeDatabase)
new
Instance methods inherited from module Bindgen::Graph::Visitor
visit_alias(alias_name)
visit_alias,
visit_children(container : Container)
visit_children,
visit_class(klass)
visit_class,
visit_constant(constant)
visit_constant,
visit_enum(enumeration)
visit_enum,
visit_library(library)
visit_library,
visit_method(method)
visit_method,
visit_namespace(ns)
visit_namespace,
visit_node(node : Node)
visit_node,
visit_node?(node : Node)
visit_node?,
visit_platform_specific(specific)
visit_platform_specific,
visit_struct(structure)
visit_struct
Constructor Detail
Instance Method Detail
Description copied from class Bindgen::Processor::Base
Runs the processor. You may change graph as you see fit.
def visit_class(klass)
#
Description copied from module Bindgen::Graph::Visitor
Visits a Graph::Class
. The default implementation calls
#visit_children
to visit all child nodes.
def visit_library(library)
#
Description copied from module Bindgen::Graph::Visitor
Visits a Graph::Library
. The default implementation calls
#visit_children
to visit all child nodes.
def visit_method(method)
#
Description copied from module Bindgen::Graph::Visitor
Visits a Graph::Method
.
def visit_platform_specific(specific)
#
Description copied from module Bindgen::Graph::Visitor
Visits a Graph::PlatformSpecific
.