class Bindgen::Parser::Field
- Bindgen::Parser::Field
- Bindgen::Parser::Type
- Reference
- Object
Overview
A C++ struct/class field.
Included Modules
- JSON::Serializable
Defined in:
bindgen/parser/field.crConstructors
-
.new(pull : JSON::PullParser)
A C++ struct/class field.
Instance Method Summary
-
#access : AccessSpecifier
Visibility of the field.
- #bit_field : Int32
- #bit_field? : Int32 | Nil
-
#crystal_name : String
Suitable name for Crystal code
- #has_default? : Bool
-
#name : String
Name of the field.
- #private?(*args, **options)
- #private?(*args, **options, &)
- #protected?(*args, **options)
- #protected?(*args, **options, &)
- #public?(*args, **options)
- #public?(*args, **options, &)
- #static? : Bool
- #value : DefaultValueTypes | Nil
Instance methods inherited from class Bindgen::Parser::Type
==(other : self)
==,
base_name : String
base_name,
builtin? : Bool
builtin?,
const? : Bool
const?,
decayed : Type | Nil
decayed,
equals_except_nil?(other : Type)
equals_except_nil?,
full_name : String
full_name,
hash(hasher)
hash,
kind : Bindgen::Parser::Type::Kind
kind,
make_pointer_nilable : Type | Nil
make_pointer_nilable,
mangled_name
mangled_name,
move? : Bool
move?,
nilable? : Bool
nilable?,
pointer : Int32
pointer,
pure_void?
pure_void?,
reference? : Bool
reference?,
substitute(name : String, with type : Type) : Typesubstitute(replacements : Hash(String, Type)) : Type
substitute(replacements : Tuple(String, Type)) : Type substitute, template : Template | Nil template, uses_typename?(name : String) uses_typename?, void? : Bool void?
Constructor methods inherited from class Bindgen::Parser::Type
new(base_name : String, full_name : String, const : Bool, reference : Bool, pointer : Int32, move : Bool = false, builtin : Bool = false, void : Bool = false, kind : Bindgen::Parser::Type::Kind = Kind::Class, template : Nil | Bindgen::Parser::Template = nil, nilable : Bool = false)new(pull : JSON::PullParser) new