Class: JavaClass::ClassFile::Constants::ConstantNameAndType
- Inherits:
-
DoubleReference
- Object
- Base
- SingleReference
- DoubleReference
- JavaClass::ClassFile::Constants::ConstantNameAndType
- Defined in:
- lib/javaclass/classfile/constants/double_reference.rb
Overview
ZenTest SKIP
Instance Attribute Summary
Attributes inherited from DoubleReference
Attributes inherited from SingleReference
Attributes inherited from Base
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(pool, data, start) ⇒ ConstantNameAndType
constructor
A new instance of ConstantNameAndType.
- #to_s ⇒ Object
Methods inherited from DoubleReference
Methods inherited from SingleReference
Constructor Details
#initialize(pool, data, start) ⇒ ConstantNameAndType
Returns a new instance of ConstantNameAndType.
84 85 86 |
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 84 def initialize(pool, data, start) super(pool, data, start) end |
Instance Method Details
#dump ⇒ Object
92 93 94 |
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 92 def dump "#{@name}\t##{name_index}:##{descriptor_index};// #{to_s}" end |
#to_s ⇒ Object
88 89 90 |
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 88 def to_s "#{get(name_index)}:#{get(descriptor_index)}" end |