Class: Internal::ByteDecoder::Expression::Array

Inherits:
Internal::ByteDecoder::Expression show all
Defined in:
lib/decompiler/vm/bytedecoder.rb

Instance Attribute Summary

Attributes inherited from Internal::ByteDecoder::Expression

#pc

Instance Method Summary collapse

Methods inherited from Internal::ByteDecoder::Expression

#<=>, #fmt

Constructor Details

#initialize(pc, args) ⇒ Array

Returns a new instance of Array.



256
257
258
259
# File 'lib/decompiler/vm/bytedecoder.rb', line 256

def initialize(pc, args)
  super(pc)
  @args = args
end

Instance Method Details

#precedenceObject



268
269
270
# File 'lib/decompiler/vm/bytedecoder.rb', line 268

def precedence
  return 1
end

#to_sObject



261
262
263
264
265
266
# File 'lib/decompiler/vm/bytedecoder.rb', line 261

def to_s
  s = '[ '
  s << @args.join(', ')
  s << ' ]'
  return s
end