Class: JavaClass::SameLocals1StackItemFrameExtended
- Inherits:
-
StackMapFrame
- Object
- StackMapFrame
- JavaClass::SameLocals1StackItemFrameExtended
- Defined in:
- lib/javaclass/attribute.rb
Overview
same_locals_1_stack_item_frame_extended
Instance Attribute Summary collapse
-
#offset_delta ⇒ Object
オフセットデルタ.
-
#verification_type_info ⇒ Object
型情報.
Attributes inherited from StackMapFrame
Instance Method Summary collapse
-
#initialize(frame_type, offset_delta, verification_type_info = []) ⇒ SameLocals1StackItemFrameExtended
constructor
コンストラクタ.
- #to_bytes ⇒ Object
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_delta ⇒ Object
オフセットデルタ
1169 1170 1171 |
# File 'lib/javaclass/attribute.rb', line 1169 def offset_delta @offset_delta end |
#verification_type_info ⇒ Object
型情報
1171 1172 1173 |
# File 'lib/javaclass/attribute.rb', line 1171 def verification_type_info @verification_type_info end |
Instance Method Details
#to_bytes ⇒ Object
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 |