Class: SyntaxTree::YARV::InstructionSequence::CatchEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree/yarv/instruction_sequence.rb

Overview

Catch table methods

Instance Attribute Summary collapse

Instance Method Summary collapse

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_labelObject (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_labelObject (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_labelObject (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

#iseqObject (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_spObject (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