Class: JavaClass::ClassFile::Constants::ConstantClass

Inherits:
SingleReference show all
Defined in:
lib/javaclass/classfile/constants/single_reference.rb

Overview

ZenTest SKIP

Instance Attribute Summary

Attributes inherited from SingleReference

#first_index

Attributes inherited from Base

#name, #size, #slots, #tag

Instance Method Summary collapse

Methods inherited from SingleReference

#dump

Methods inherited from Base

#dump

Constructor Details

#initialize(pool, data, start) ⇒ ConstantClass

Returns a new instance of ConstantClass.



45
46
47
# File 'lib/javaclass/classfile/constants/single_reference.rb', line 45

def initialize(pool, data, start)
  super(pool, data, start, "class")
end

Instance Method Details

#first_valueObject Also known as: class_name



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

def first_value 
  # is a classname
  super.to_javaname
end