Class: JavaClass::ClassFile::Constants::ConstantLong

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

Returns a new instance of ConstantLong.



73
74
75
76
77
# File 'lib/javaclass/classfile/constants/value.rb', line 73

def initialize(pool, data, start) 
  super()
  silence_unused_warning(pool)
  @value = get_value(data, start, 9, 2).u8
end

Instance Method Details

#dumpObject



78
79
80
# File 'lib/javaclass/classfile/constants/value.rb', line 78

def dump
  super + 'l;'
end