Class: Furnace::AVM2::ABC::MultinameInfo

Inherits:
Record show all
Defined in:
lib/furnace-avm2/abc/metadata/multiname_info.rb

Constant Summary collapse

XlatTable =
{
  :QName       => 0x07,
  :QNameA      => 0x0D,
  :RTQName     => 0x0F,
  :RTQNameA    => 0x10,
  :RTQNameL    => 0x11,
  :RTQNameLA   => 0x12,
  :Multiname   => 0x09,
  :MultinameA  => 0x0E,
  :MultinameL  => 0x1B,
  :MultinameLA => 0x1C,
  :GenericName => 0x1D # Undocumented
}

Instance Attribute Summary

Attributes inherited from Binary::Record

#root

Instance Method Summary collapse

Methods inherited from Record

abc_array_of, flag, pool_array, pool_array_of, pool_ref, subset, xlat_direct, xlat_field, xlat_inverse

Methods inherited from Binary::Record

#byte_length, codegen, codegen_each, inherited, #inspect, method_missing, register, #to_hash, trace, trace_scope, trace_value

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



34
35
36
# File 'lib/furnace-avm2/abc/metadata/multiname_info.rb', line 34

def method_missing(method, *args, &block)
  data.send(method, *args, &block)
end

Instance Method Details

#to_astlet(*args) ⇒ Object



42
43
44
45
46
# File 'lib/furnace-avm2/abc/metadata/multiname_info.rb', line 42

def to_astlet(*args)
  node = data.to_astlet(*args)
  node.[:origin] = self
  node
end

#to_sObject



38
39
40
# File 'lib/furnace-avm2/abc/metadata/multiname_info.rb', line 38

def to_s
  data.to_s
end