Class: JavaClass::DeprecatedAttribute

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

Overview

Deprecated属性

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

コンストラクタ

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



283
284
285
# File 'lib/javaclass/attribute.rb', line 283

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

Instance Method Details

#to_bytesObject



289
290
291
292
# File 'lib/javaclass/attribute.rb', line 289

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

#to_sObject



286
287
288
# File 'lib/javaclass/attribute.rb', line 286

def to_s
  "// !!Deprecated!!"
end