Class: JavaClass::ClassFile::Constants::ConstantInt

Inherits:
Value
  • Object
show all
Defined in:
lib/javaclass/classfile/constants/value.rb

Overview

ZenTest SKIP

Instance Attribute Summary

Attributes inherited from Value

#value

Attributes inherited from Base

#name, #size, #slots, #tag

Instance Method Summary collapse

Methods inherited from Value

#to_s

Constructor Details

#initialize(pool, data, start) ⇒ ConstantInt

Returns a new instance of ConstantInt.



47
48
49
50
51
# File 'lib/javaclass/classfile/constants/value.rb', line 47

def initialize(pool, data, start) 
  super()
  silence_unused_warning(pool)
  @value = get_value(data, start, 5).u4
end

Instance Method Details

#dumpObject



53
54
55
# File 'lib/javaclass/classfile/constants/value.rb', line 53

def dump
  super + ';'
end