Class Ruva::VM::Types::ConstClassRef
In: lib/ruva/types.rb
Parent: ObjectRef

Methods

==   const_clz   identity_hash   inspect   link   name   wrap  

External Aliases

vmdata -> const_clz_name

Public Class methods

[Source]

     # File lib/ruva/types.rb, line 212
212:           def wrap(vm, clz)
213:             new(@@class_class ||= vm.find_class('java/lang/Class'), {}, clz.name).link(vm)
214:           end

Public Instance methods

[Source]

     # File lib/ruva/types.rb, line 225
225:         def ==(other)
226:           other.is_a?(ConstClassRef) && other.identity_hash == identity_hash
227:         end

[Source]

     # File lib/ruva/types.rb, line 241
241:         def const_clz        
242:           @const_clz ||= @vm.find_class(vmdata)
243:         end

[Source]

     # File lib/ruva/types.rb, line 221
221:         def identity_hash
222:           @ident_hash ||= vmdata.hash
223:         end

[Source]

     # File lib/ruva/types.rb, line 217
217:         def inspect
218:           "#<java/lang/Class: <#{vmdata}>>"
219:         end

[Source]

     # File lib/ruva/types.rb, line 233
233:         def link(vm)
234:           @vm = vm
235:           self.clz = (@@class_class ||= vm.find_class('java/lang/Class'))
236:           self         
237:         end

[Source]

     # File lib/ruva/types.rb, line 229
229:         def name
230:           const_clz_name
231:         end

[Validate]