Class: JavaClass::ClassFile::Constants::ConstantField

Inherits:
DoubleReference show all
Defined in:
lib/javaclass/classfile/constants/double_reference.rb

Overview

ZenTest SKIP

Instance Attribute Summary

Attributes inherited from DoubleReference

#second_index

Attributes inherited from SingleReference

#first_index

Attributes inherited from Base

#name, #size, #slots, #tag

Instance Method Summary collapse

Methods inherited from DoubleReference

#dump, #second_value, #to_s

Methods inherited from SingleReference

#dump, #to_s

Methods inherited from Base

#const_class?, #const_method?, #dump

Constructor Details

#initialize(pool, data, start) ⇒ ConstantField

Returns a new instance of ConstantField.



43
44
45
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 43

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

Instance Method Details

#const_field?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 53

def const_field?
  true
end

#first_valueObject Also known as: class_name



47
48
49
# File 'lib/javaclass/classfile/constants/double_reference.rb', line 47

def first_value
  JavaVMName.new(super) # this is a classname
end