Class: JavaClass::ChopFrame
- Inherits:
-
StackMapFrame
- Object
- StackMapFrame
- JavaClass::ChopFrame
- Defined in:
- lib/javaclass/attribute.rb
Overview
chop_frame
Instance Attribute Summary collapse
-
#offset_delta ⇒ Object
オフセットデルタ.
Attributes inherited from StackMapFrame
Instance Method Summary collapse
-
#initialize(frame_type, offset_delta) ⇒ ChopFrame
constructor
コンストラクタ.
- #to_bytes ⇒ Object
Methods included from Base
#==, #===, #dump, #eql?, #hash, #to_byte
Constructor Details
#initialize(frame_type, offset_delta) ⇒ ChopFrame
コンストラクタ
*frame_type::種別
- *offset_delta
-
オフセットデルタ
1184 1185 1186 1187 |
# File 'lib/javaclass/attribute.rb', line 1184 def initialize(frame_type, offset_delta) super(frame_type) @offset_delta = offset_delta end |
Instance Attribute Details
#offset_delta ⇒ Object
オフセットデルタ
1194 1195 1196 |
# File 'lib/javaclass/attribute.rb', line 1194 def offset_delta @offset_delta end |
Instance Method Details
#to_bytes ⇒ Object
1188 1189 1190 1191 1192 |
# File 'lib/javaclass/attribute.rb', line 1188 def to_bytes bytes = super bytes += to_byte( offset_delta, 2 ) bytes end |