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
Methods inherited from Base
#const_class?, #const_field?, #const_method?
Constructor Details
#initialize(pool, data, start) ⇒ ConstantNameAndType
Returns a new instance of ConstantNameAndType.
98 99 100 |
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 98 def initialize(pool, data, start) super(pool, data, start) end |
Instance Method Details
#dump ⇒ Object
106 107 108 |
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 106 def dump "#{@name}\t##{name_index}:##{descriptor_index};// #{to_s}" end |
#to_s ⇒ Object
102 103 104 |
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 102 def to_s "#{get(name_index)}:#{get(descriptor_index)}" end |