abstract class Bindgen::Graph::Container

Overview

Base class for nodes containing multiple other Nodes.

Direct Known Subclasses

Defined in:

bindgen/graph/container.cr

Instance Method Summary

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

def by_name(name) : Node #

Finds the first child node called name. If none found, raises.


[View source]
def by_name?(name) : Node | Nil #

Finds the first child node called name. If none found, returns nil.


[View source]
def nodes : Array(Bindgen::Graph::Node) #

Child nodes


[View source]
def platform_specific(platform : Platform | Platforms) #

Finds a PlatformSpecific for platform. If none found, creates one.


[View source]
def platform_specific?(platform : Platform | Platforms) #

Finds a PlatformSpecific for platform. Returns nil if not found.


[View source]