Class: JavaClass::SameLocals1StackItemFrame

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

Overview

same_locals_1_stack_item_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, verification_type_info = []) ⇒ SameLocals1StackItemFrame

コンストラクタ

*frame_type::種別

*verification_type_info

型情報



1129
1130
1131
1132
# File 'lib/javaclass/attribute.rb', line 1129

def initialize(frame_type, verification_type_info=[])
  super(frame_type)
  @verification_type_info = verification_type_info
end

Instance Attribute Details

#verification_type_infoObject

型情報



1141
1142
1143
# File 'lib/javaclass/attribute.rb', line 1141

def verification_type_info
  @verification_type_info
end

Instance Method Details

#to_bytesObject



1133
1134
1135
1136
1137
1138
1139
# File 'lib/javaclass/attribute.rb', line 1133

def to_bytes
  bytes = super
  verification_type_info.each {|v|
    bytes += v.to_bytes 
  }
  bytes
end