Class: JavaClass::ClassFile::Constants::ConstantInt
- Defined in:
- lib/javaclass/classfile/constants/value.rb
Overview
ZenTest SKIP
Instance Attribute Summary
Attributes inherited from Value
Attributes inherited from Base
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(pool, data, start) ⇒ ConstantInt
constructor
A new instance of ConstantInt.
Methods inherited from Value
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
#dump ⇒ Object
54 55 56 |
# File 'lib/javaclass/classfile/constants/value.rb', line 54 def dump super + ';' end |