class Bindgen::Graph::Constant

Overview

A constant value in Crystal and C++. Stored as CONSTANT in Crystal, and as static TYPE name = value in C++.

Defined in:

bindgen/graph/constant.cr

Constructors

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

Constructor Detail

def self.new(value : Bool | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | UInt16 | UInt32 | UInt64 | UInt8, name, parent) #

[View source]

Instance Method Detail

def constant? #

Constants are constant.


[View source]
def value : Type #

The value


[View source]