Class: SyntaxTree::YARV::InstructionSequence::CatchEntry
- Inherits:
-
Object
- Object
- SyntaxTree::YARV::InstructionSequence::CatchEntry
- Defined in:
- lib/syntax_tree/yarv/instruction_sequence.rb
Overview
Catch table methods
Direct Known Subclasses
CatchBreak, CatchEnsure, CatchNext, CatchRedo, CatchRescue, CatchRetry
Instance Attribute Summary collapse
-
#begin_label ⇒ Object
readonly
Returns the value of attribute begin_label.
-
#end_label ⇒ Object
readonly
Returns the value of attribute end_label.
-
#exit_label ⇒ Object
readonly
Returns the value of attribute exit_label.
-
#iseq ⇒ Object
readonly
Returns the value of attribute iseq.
-
#restore_sp ⇒ Object
readonly
Returns the value of attribute restore_sp.
Instance Method Summary collapse
-
#initialize(iseq, begin_label, end_label, exit_label, restore_sp) ⇒ CatchEntry
constructor
A new instance of CatchEntry.
Constructor Details
#initialize(iseq, begin_label, end_label, exit_label, restore_sp) ⇒ CatchEntry
Returns a new instance of CatchEntry.
485 486 487 488 489 490 491 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 485 def initialize(iseq, begin_label, end_label, exit_label, restore_sp) @iseq = iseq @begin_label = begin_label @end_label = end_label @exit_label = exit_label @restore_sp = restore_sp end |
Instance Attribute Details
#begin_label ⇒ Object (readonly)
Returns the value of attribute begin_label.
483 484 485 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 483 def begin_label @begin_label end |
#end_label ⇒ Object (readonly)
Returns the value of attribute end_label.
483 484 485 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 483 def end_label @end_label end |
#exit_label ⇒ Object (readonly)
Returns the value of attribute exit_label.
483 484 485 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 483 def exit_label @exit_label end |
#iseq ⇒ Object (readonly)
Returns the value of attribute iseq.
483 484 485 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 483 def iseq @iseq end |
#restore_sp ⇒ Object (readonly)
Returns the value of attribute restore_sp.
483 484 485 |
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 483 def restore_sp @restore_sp end |