Class: Internal::ByteDecoder::Expression::Assignment

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

Instance Attribute Summary collapse

Attributes inherited from Internal::ByteDecoder::Expression

#pc

Instance Method Summary collapse

Methods inherited from Internal::ByteDecoder::Expression

#<=>, #fmt

Constructor Details

#initialize(pc, name, rhs) ⇒ Assignment

Returns a new instance of Assignment.



393
394
395
396
397
# File 'lib/decompiler/vm/bytedecoder.rb', line 393

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

Instance Attribute Details

#rhsObject (readonly)

Returns the value of attribute rhs.



391
392
393
# File 'lib/decompiler/vm/bytedecoder.rb', line 391

def rhs
  @rhs
end

Instance Method Details

#precedenceObject



403
404
405
# File 'lib/decompiler/vm/bytedecoder.rb', line 403

def precedence
  return 5
end

#to_sObject



399
400
401
# File 'lib/decompiler/vm/bytedecoder.rb', line 399

def to_s
  return "#{@name} = #{@rhs}"
end