Class: Internal::ByteDecoder::Expression::Variable

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, name) ⇒ Variable

Returns a new instance of Variable.



312
313
314
315
# File 'lib/decompiler/vm/bytedecoder.rb', line 312

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

Instance Method Details

#precedenceObject



321
322
323
# File 'lib/decompiler/vm/bytedecoder.rb', line 321

def precedence
  return 1
end

#to_sObject



317
318
319
# File 'lib/decompiler/vm/bytedecoder.rb', line 317

def to_s
  return @name.to_s
end