Class: JavaClass::SameFrameExtended
- Inherits:
-
StackMapFrame
- Object
- StackMapFrame
- JavaClass::SameFrameExtended
- Defined in:
- lib/javaclass/attribute.rb
Overview
same_frame_extended
Instance Attribute Summary collapse
-
#offset_delta ⇒ Object
オフセットデルタ.
Attributes inherited from StackMapFrame
Instance Method Summary collapse
-
#initialize(frame_type, offset_delta) ⇒ SameFrameExtended
constructor
コンストラクタ.
- #to_bytes ⇒ Object
Methods included from Base
#==, #===, #dump, #eql?, #hash, #to_byte
Constructor Details
#initialize(frame_type, offset_delta) ⇒ SameFrameExtended
コンストラクタ
*frame_type::種別
- *offset_delta
-
オフセットデルタ
1208 1209 1210 1211 |
# File 'lib/javaclass/attribute.rb', line 1208 def initialize(frame_type, offset_delta) super(frame_type) @offset_delta = offset_delta end |
Instance Attribute Details
#offset_delta ⇒ Object
オフセットデルタ
1218 1219 1220 |
# File 'lib/javaclass/attribute.rb', line 1218 def offset_delta @offset_delta end |
Instance Method Details
#to_bytes ⇒ Object
1212 1213 1214 1215 1216 |
# File 'lib/javaclass/attribute.rb', line 1212 def to_bytes bytes = super bytes += to_byte( offset_delta, 2 ) bytes end |