Class: JavaClass::ClassFile::Constants::ConstantMethodHandle

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, #first_value, #to_s

Methods inherited from Base

#const_class?, #const_field?, #const_method?, #dump

Constructor Details

#initialize(pool, data, start) ⇒ ConstantMethodHandle

Returns a new instance of ConstantMethodHandle.



74
75
76
77
78
79
80
# File 'lib/javaclass/classfile/constants/single_reference.rb', line 74

def initialize(pool, data, start)
  super(pool, data, start)
  
  @kind = data.u1(start+1)
  @first_index = data.u2(start+2)
  @size = 4
end