Class: Mikunyan::TypeTree::Node
- Inherits:
-
Struct
- Object
- Struct
- Mikunyan::TypeTree::Node
- Defined in:
- lib/mikunyan/type_tree.rb
Overview
Struct for representing Node in TypeTree
Instance Attribute Summary collapse
-
#array? ⇒ Boolean
array node or not.
-
#children ⇒ Array<Mikunyan::TypeTree::Node>
The current value of children.
-
#flags ⇒ Integer
flags of node.
-
#index ⇒ Integer
index in node list.
-
#level ⇒ Integer
level of node (>= 0).
-
#name ⇒ String
node (attribute) name.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ String
type name.
-
#v18meta ⇒ Integer?
The current value of v18meta.
-
#version ⇒ String
version string.
Instance Method Summary collapse
Instance Attribute Details
#array? ⇒ Boolean
array node or not
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23
def array?
@array?
end
|
#children ⇒ Array<Mikunyan::TypeTree::Node>
Returns the current value of children.
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def children @children end |
#flags ⇒ Integer
flags of node
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def flags @flags end |
#index ⇒ Integer
index in node list
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def index @index end |
#level ⇒ Integer
level of node (>= 0)
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def level @level end |
#name ⇒ String
node (attribute) name
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def name @name end |
#parent ⇒ Object
Returns the value of attribute parent
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def parent @parent end |
#size ⇒ Object
Returns the value of attribute size
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def size @size end |
#type ⇒ String
type name
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def type @type end |
#v18meta ⇒ Integer?
Returns the current value of v18meta.
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def @v18meta end |
#version ⇒ String
version string
23 24 25 |
# File 'lib/mikunyan/type_tree.rb', line 23 def version @version end |
Instance Method Details
#need_align? ⇒ Boolean
25 26 27 |
# File 'lib/mikunyan/type_tree.rb', line 25 def need_align? flags & 0x4000 != 0 end |