Class: Schema::Node::GroupAnnotation
Constant Summary
collapse
- DEFAULT_TARGETS_FILE =
false
- DEFAULT_TARGETS_CONST =
false
- DEFAULT_TARGETS_ENUM =
false
- DEFAULT_TARGETS_ENUMERANT =
false
- DEFAULT_TARGETS_STRUCT =
false
- DEFAULT_TARGETS_FIELD =
false
- DEFAULT_TARGETS_UNION =
false
- DEFAULT_TARGETS_GROUP =
false
- DEFAULT_TARGETS_INTERFACE =
false
- DEFAULT_TARGETS_METHOD =
false
- DEFAULT_TARGETS_PARAM =
false
- DEFAULT_TARGETS_ANNOTATION =
false
Instance Method Summary
collapse
decode_pointer, from_pointer, #initialize
Constructor Details
This class inherits a constructor from Capnp::Struct
Instance Method Details
#targets_annotation ⇒ Object
163
|
# File 'lib/capnp/generator/schema.capnp.rb', line 163
def targets_annotation = (read_u8(15, 0x00) & 0x8) != 0
|
#targets_const ⇒ Object
133
|
# File 'lib/capnp/generator/schema.capnp.rb', line 133
def targets_const = (read_u8(14, 0x00) & 0x2) != 0
|
#targets_enum ⇒ Object
136
|
# File 'lib/capnp/generator/schema.capnp.rb', line 136
def targets_enum = (read_u8(14, 0x00) & 0x4) != 0
|
#targets_enumerant ⇒ Object
139
|
# File 'lib/capnp/generator/schema.capnp.rb', line 139
def targets_enumerant = (read_u8(14, 0x00) & 0x8) != 0
|
#targets_field ⇒ Object
145
|
# File 'lib/capnp/generator/schema.capnp.rb', line 145
def targets_field = (read_u8(14, 0x00) & 0x20) != 0
|
#targets_file ⇒ Object
130
|
# File 'lib/capnp/generator/schema.capnp.rb', line 130
def targets_file = (read_u8(14, 0x00) & 0x1) != 0
|
#targets_group ⇒ Object
151
|
# File 'lib/capnp/generator/schema.capnp.rb', line 151
def targets_group = (read_u8(14, 0x00) & 0x80) != 0
|
#targets_interface ⇒ Object
154
|
# File 'lib/capnp/generator/schema.capnp.rb', line 154
def targets_interface = (read_u8(15, 0x00) & 0x1) != 0
|
#targets_method ⇒ Object
157
|
# File 'lib/capnp/generator/schema.capnp.rb', line 157
def targets_method = (read_u8(15, 0x00) & 0x2) != 0
|
#targets_param ⇒ Object
160
|
# File 'lib/capnp/generator/schema.capnp.rb', line 160
def targets_param = (read_u8(15, 0x00) & 0x4) != 0
|
#targets_struct ⇒ Object
142
|
# File 'lib/capnp/generator/schema.capnp.rb', line 142
def targets_struct = (read_u8(14, 0x00) & 0x10) != 0
|
#targets_union ⇒ Object
148
|
# File 'lib/capnp/generator/schema.capnp.rb', line 148
def targets_union = (read_u8(14, 0x00) & 0x40) != 0
|
#to_obj ⇒ Object
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
# File 'lib/capnp/generator/schema.capnp.rb', line 165
def to_obj
res = {}
res["type"] = type&.to_obj
res["targets_file"] = targets_file
res["targets_const"] = targets_const
res["targets_enum"] = targets_enum
res["targets_enumerant"] = targets_enumerant
res["targets_struct"] = targets_struct
res["targets_field"] = targets_field
res["targets_union"] = targets_union
res["targets_group"] = targets_group
res["targets_interface"] = targets_interface
res["targets_method"] = targets_method
res["targets_param"] = targets_param
res["targets_annotation"] = targets_annotation
res
end
|
#type ⇒ Object
127
|
# File 'lib/capnp/generator/schema.capnp.rb', line 127
def type = Schema::Type.from_pointer(read_pointer(3))
|