module Bindgen::Graph::Visitor

Overview

A Graph::Node visitor module. Use #visit_node as entry-point, and override the remaining #visit_X methods as you require.

Direct including types

Defined in:

bindgen/graph/visitor.cr

Instance Method Summary

Instance Method Detail

def visit_alias(alias_name) #

Visits a Graph::Alias.


[View source]
def visit_children(container : Container) #

Visits all children of container.


[View source]
def visit_class(klass) #

Visits a Graph::Class. The default implementation calls #visit_children to visit all child nodes.


[View source]
def visit_constant(constant) #

Visits a Graph::Constant.


[View source]
def visit_enum(enumeration) #

Visits a Graph::Enum.


[View source]
def visit_library(library) #

Visits a Graph::Library. The default implementation calls #visit_children to visit all child nodes.


[View source]
def visit_method(method) #

Visits a Graph::Method.


[View source]
def visit_namespace(ns) #

Visits a Graph::Namespace. The default implementation calls #visit_children to visit all child nodes.


[View source]
def visit_node(node : Node) #

Visits node, calling out to the correct handler method. Certain nodes can be ignored by overriding #visit_node? and returning false from there.


[View source]
def visit_node?(node : Node) #

Checks if node shall be visited. Can be overriden in the host class to only visit specific nodes.

See Generator::Base#visit_node? for an example.


[View source]
def visit_platform_specific(specific) #

[View source]
def visit_struct(structure) #

Visits a Graph::Struct.


[View source]
def visit_union(structure) #

Visits a Graph::CppUnion.


[View source]