Class: JavaClass::ClassFile::Constants::ConstantClass
- Inherits:
-
SingleReference
- Object
- Base
- SingleReference
- JavaClass::ClassFile::Constants::ConstantClass
- Defined in:
- lib/javaclass/classfile/constants/single_reference.rb
Overview
ZenTest SKIP
Instance Attribute Summary
Attributes inherited from SingleReference
Attributes inherited from Base
Instance Method Summary collapse
- #const_class? ⇒ Boolean
- #first_value ⇒ Object (also: #class_name)
-
#initialize(pool, data, start) ⇒ ConstantClass
constructor
A new instance of ConstantClass.
Methods inherited from SingleReference
Methods inherited from Base
#const_field?, #const_method?, #dump
Constructor Details
#initialize(pool, data, start) ⇒ ConstantClass
Returns a new instance of ConstantClass.
48 49 50 |
# File 'lib/javaclass/classfile/constants/single_reference.rb', line 48 def initialize(pool, data, start) super(pool, data, start, "class") end |
Instance Method Details
#const_class? ⇒ Boolean
57 58 59 |
# File 'lib/javaclass/classfile/constants/single_reference.rb', line 57 def const_class? true end |
#first_value ⇒ Object Also known as: class_name
52 53 54 |
# File 'lib/javaclass/classfile/constants/single_reference.rb', line 52 def first_value JavaVMName.new(super) # this is a classname end |