Class: Internal::ByteDecoder::Expression::Throw
- Inherits:
-
Internal::ByteDecoder::Expression
- Object
- Internal::ByteDecoder::Expression
- Internal::ByteDecoder::Expression::Throw
- Defined in:
- lib/decompiler/vm/bytedecoder.rb
Instance Attribute Summary
Attributes inherited from Internal::ByteDecoder::Expression
Instance Method Summary collapse
-
#initialize(pc, value) ⇒ Throw
constructor
A new instance of Throw.
- #precedence ⇒ Object
- #to_s ⇒ Object
Methods inherited from Internal::ByteDecoder::Expression
Constructor Details
#initialize(pc, value) ⇒ Throw
Returns a new instance of Throw.
431 432 433 434 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 431 def initialize(pc, value) super(pc) @value = value end |
Instance Method Details
#precedence ⇒ Object
445 446 447 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 445 def precedence return 1 end |
#to_s ⇒ Object
436 437 438 439 440 441 442 443 |
# File 'lib/decompiler/vm/bytedecoder.rb', line 436 def to_s # TODO: not all throws are breaks... if not @value or (@value.is_a?(Literal) and @value.value == nil) then return "break" else return "break #{@value}" end end |