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

Inherits:
Value 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

Methods inherited from Base

#const_class?, #const_field?, #const_method?

Constructor Details

#initialize(pool, data, start) ⇒ ConstantInt

Returns a new instance of ConstantInt.



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

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

Instance Method Details

#dumpObject



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

def dump
  super + ';'
end