Class: JavaClass::ObjectVariableInfo

Inherits:
VariableInfo show all
Includes:
Base
Defined in:
lib/javaclass/attribute.rb

Overview

変数情報(Object_variable_info)

Instance Attribute Summary collapse

Attributes inherited from VariableInfo

#tag

Instance Method Summary collapse

Methods included from Base

#==, #===, #dump, #eql?, #hash, #to_byte

Constructor Details

#initialize(tag, cpool_index) ⇒ ObjectVariableInfo

コンストラクタ

*tag::タグ

*cpool_index

cpool_index



1319
1320
1321
1322
# File 'lib/javaclass/attribute.rb', line 1319

def initialize(tag,cpool_index)
  super(tag)
  @cpool_index = cpool_index
end

Instance Attribute Details

#cpool_indexObject

cpool_index



1327
1328
1329
# File 'lib/javaclass/attribute.rb', line 1327

def cpool_index
  @cpool_index
end

Instance Method Details

#to_bytesObject



1323
1324
1325
# File 'lib/javaclass/attribute.rb', line 1323

def to_bytes
  super + to_byte( cpool_index, 2 )
end