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
- Bindgen::Generator::Cpp
- Bindgen::Generator::Crystal
- Bindgen::Generator::CrystalLib
- Bindgen::Graph::Dumper
- Bindgen::Graph::Visitor::MayDelete
- Bindgen::Processor::Base
Defined in:
bindgen/graph/visitor.crInstance Method Summary
-
#visit_alias(alias_name)
Visits a
Graph::Alias
. -
#visit_children(container : Container)
Visits all children of container.
-
#visit_class(klass)
Visits a
Graph::Class
. -
#visit_constant(constant)
Visits a
Graph::Constant
. -
#visit_enum(enumeration)
Visits a
Graph::Enum
. -
#visit_library(library)
Visits a
Graph::Library
. -
#visit_method(method)
Visits a
Graph::Method
. -
#visit_namespace(ns)
Visits a
Graph::Namespace
. -
#visit_node(node : Node)
Visits node, calling out to the correct handler method.
-
#visit_node?(node : Node)
Checks if node shall be visited.
-
#visit_platform_specific(specific)
Visits a
Graph::PlatformSpecific
. -
#visit_struct(structure)
Visits a
Graph::Struct
.
Instance Method Detail
Visits a Graph::Class
. The default implementation calls
#visit_children
to visit all child nodes.
Visits a Graph::Library
. The default implementation calls
#visit_children
to visit all child nodes.
Visits a Graph::Namespace
. The default implementation calls
#visit_children
to visit all child nodes.
Visits node, calling out to the correct handler method. Certain nodes
can be ignored by overriding #visit_node?
and returning false
from
there.
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.