Class: Mikunyan::TypeTree::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/mikunyan/type_tree.rb

Overview

Struct for representing Node in TypeTree

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#array?Boolean

array node or not

Returns:

  • (Boolean)

    the current value of array?



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def array?
  @array?
end

#childrenArray<Mikunyan::TypeTree::Node>

Returns the current value of children.

Returns:



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def children
  @children
end

#flagsInteger

flags of node

Returns:

  • (Integer)

    the current value of flags



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def flags
  @flags
end

#indexInteger

index in node list

Returns:

  • (Integer)

    the current value of index



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def index
  @index
end

#levelInteger

level of node (>= 0)

Returns:

  • (Integer)

    the current value of level



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def level
  @level
end

#nameString

node (attribute) name

Returns:

  • (String)

    the current value of name



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def name
  @name
end

#parentObject

Returns the value of attribute parent

Returns:

  • (Object)

    the current value of parent



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def parent
  @parent
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def size
  @size
end

#typeString

type name

Returns:

  • (String)

    the current value of type



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def type
  @type
end

#v18metaInteger?

Returns the current value of v18meta.

Returns:

  • (Integer, nil)

    the current value of v18meta



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def v18meta
  @v18meta
end

#versionString

version string

Returns:

  • (String)

    the current value of version



23
24
25
# File 'lib/mikunyan/type_tree.rb', line 23

def version
  @version
end

Instance Method Details

#need_align?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/mikunyan/type_tree.rb', line 25

def need_align?
  flags & 0x4000 != 0
end