abstract class Bindgen::Graph::Container
- Bindgen::Graph::Container
- Bindgen::Graph::Node
- Reference
- Object
Overview
Base class for nodes containing multiple other Node
s.
Direct Known Subclasses
- Bindgen::Graph::Class
- Bindgen::Graph::Library
- Bindgen::Graph::Namespace
- Bindgen::Graph::PlatformSpecific
- Bindgen::Graph::Struct
Defined in:
bindgen/graph/container.crInstance Method Summary
-
#by_name(name) : Node
Finds the first child node called name.
-
#by_name?(name) : Node | Nil
Finds the first child node called name.
-
#nodes : Array(Bindgen::Graph::Node)
Child nodes
-
#platform_specific(platform : Platform | Platforms)
Finds a
PlatformSpecific
for platform. -
#platform_specific?(platform : Platform | Platforms)
Finds a
PlatformSpecific
for platform.
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
Instance Method Detail
Finds the first child node called name. If none found, raises.
Finds the first child node called name. If none found, returns nil
.
Finds a PlatformSpecific
for platform. If none found, creates one.
Finds a PlatformSpecific
for platform. Returns nil
if not found.