Class: JavaClass::ChopFrame

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

Overview

chop_frame

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) ⇒ 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_deltaObject

オフセットデルタ



1194
1195
1196
# File 'lib/javaclass/attribute.rb', line 1194

def offset_delta
  @offset_delta
end

Instance Method Details

#to_bytesObject



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