Class: JavaClass::SameLocals1StackItemFrameExtended

Inherits:
StackMapFrame
  • Object
show all
Defined in:
lib/javaclass/attribute.rb

Overview

same_locals_1_stack_item_frame_extended

Instance Attribute Summary collapse

Attributes inherited from StackMapFrame

#frame_type

Instance Method Summary collapse

Methods included from Base

#==, #===, #dump, #eql?, #hash, #to_byte

Constructor Details

#initialize(frame_type, offset_delta, verification_type_info = []) ⇒ SameLocals1StackItemFrameExtended

コンストラクタ

*frame_type::種別

*offset_delta

オフセットデルタ

*verification_type_info

型情報



1155
1156
1157
1158
1159
# File 'lib/javaclass/attribute.rb', line 1155

def initialize(frame_type, offset_delta, verification_type_info=[])
  super(frame_type)
  @offset_delta = offset_delta
  @verification_type_info = verification_type_info
end

Instance Attribute Details

#offset_deltaObject

オフセットデルタ



1169
1170
1171
# File 'lib/javaclass/attribute.rb', line 1169

def offset_delta
  @offset_delta
end

#verification_type_infoObject

型情報



1171
1172
1173
# File 'lib/javaclass/attribute.rb', line 1171

def verification_type_info
  @verification_type_info
end

Instance Method Details

#to_bytesObject



1160
1161
1162
1163
1164
1165
1166
1167
# File 'lib/javaclass/attribute.rb', line 1160

def to_bytes
  bytes = super
  bytes += to_byte( offset_delta, 2 )
  verification_type_info.each {|v|
    bytes += v.to_bytes 
  }
  bytes
end