Class: Internal::ByteDecoder::Expression::ConstantAssignment

Inherits:
Constant 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 Constant

#precedence

Methods inherited from Internal::ByteDecoder::Expression

#<=>, #fmt

Constructor Details

#initialize(pc, klass, name, value) ⇒ ConstantAssignment

Returns a new instance of ConstantAssignment.



351
352
353
354
# File 'lib/decompiler/vm/bytedecoder.rb', line 351

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

Instance Method Details

#to_sObject



356
357
358
359
360
# File 'lib/decompiler/vm/bytedecoder.rb', line 356

def to_s
  s = super()
  s << " = #{@value}"
  return s
end