Class Ruva::VM::Class::Reader::UnresolvedClass::CPoolEntry
In: lib/ruva/class_loader.rb
Parent: Object

Represents a constant pool entry

Methods

new  

Constants

CONSTANT_Class = 7
CONSTANT_Fieldref = 9
CONSTANT_Methodref = 10
CONSTANT_InterfaceMethodref = 11
CONSTANT_String = 8
CONSTANT_Integer = 3
CONSTANT_Float = 4
CONSTANT_Long = 5
CONSTANT_Double = 6
CONSTANT_NameAndType = 12
CONSTANT_Utf8 = 1

External Aliases

new -> []

Attributes

data  [RW] 
type  [RW] 

Public Class methods

valid types are:

  :class      - class ref
  :method     - method ref
  :field      - field ref
  :if_method  - interface method ref
  :int        - literal int (32 bit)
  :float      - literal float
  :long       - literal long (64 bit)
  :double     - literal double
  :string     - literal string
  :name_type  - name and type entry
  :utf8       - UTF8 String data

[Source]

     # File lib/ruva/class_loader.rb, line 324
324:             def initialize(data, type = :string)
325:               @data, @type = data, type        
326:             end

[Validate]