class Bindgen::Processor::CrystalWrapper

Overview

Processor to generate a Crystal wrapper for a crystal binding. CrystalBinding must be run beforehand.

Important: This should be one of the last processors in the pipeline!

Included Modules

Defined in:

bindgen/processor/crystal_wrapper.cr

Constant Summary

Log = ::Log.for(self)

Processor to generate a Crystal wrapper for a crystal binding. CrystalBinding must be run beforehand.

Important: This should be one of the last processors in the pipeline!

PLATFORM = Graph::Platform::Crystal

Instance Method Summary

Instance methods inherited from module Bindgen::TypeHelper

cpp_class_name(class_name : String) : String cpp_class_name, passthrough(type : Parser::Type) passthrough, proc_by_pointer?(type : Parser::Type) : Bool proc_by_pointer?, reconfigure_pass_type(pass_by, is_ref, ptr) reconfigure_pass_type, structure_hosted?(rules : TypeDatabase::TypeConfig) : Bool structure_hosted?, type_copied?(type) : Bool type_copied?, type_pointer_depth(type : Parser::Type) : Int32 type_pointer_depth, variadic_argument : Call::VariadicArgument variadic_argument

Instance methods inherited from class Bindgen::Processor::Base

inherited_rules(class_name : String, & : TypeDatabase::TypeConfig -> TypeDatabase::KeepAlive) : TypeDatabase::KeepAlive inherited_rules, process(graph : Graph::Container, doc : Parser::Document) process, unmatched_patterns(klass : Graph::Class, rules : TypeDatabase::KeepAlive) : Array(Regex) unmatched_patterns

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, visit_union(structure) visit_union

Instance Method Detail

def build_abstract_call(method) #

[View source]
def build_method_call(method) #

[View source]
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.


[View source]
def visit_method(method) #
Description copied from module Bindgen::Graph::Visitor

Visits a Graph::Method.


[View source]
def visit_platform_specific(specific) #
Description copied from module Bindgen::Graph::Visitor

Visits a Graph::PlatformSpecific.


[View source]