Class: JavaClass::SyntheticAttribute

Inherits:
Attribute
  • Object
show all
Defined in:
lib/javaclass/attribute.rb

Overview

Synthetic属性

Instance Attribute Summary

Attributes inherited from Attribute

#java_class, #name_index

Instance Method Summary collapse

Methods inherited from Attribute

#name

Methods included from Base

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

Constructor Details

#initialize(java_class, name_index) ⇒ SyntheticAttribute

コンストラクタ

*java_class::属性の所有者であるJavaクラス *name_index::名前を示すconstant_poolのインデックス



305
306
307
# File 'lib/javaclass/attribute.rb', line 305

def initialize( java_class, name_index )
  super( java_class, name_index)
end

Instance Method Details

#to_bytesObject



308
309
310
311
# File 'lib/javaclass/attribute.rb', line 308

def to_bytes
  bytes = super
  bytes += to_byte( 0, 4 )
end