Class: JavaClass::SameFrameExtended

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

Overview

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

オフセットデルタ



1218
1219
1220
# File 'lib/javaclass/attribute.rb', line 1218

def offset_delta
  @offset_delta
end

Instance Method Details

#to_bytesObject



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