| Class | Ruva::VM::Class::Field |
| In: |
lib/ruva/class.rb
|
| Parent: | Object |
| ACC_PUBLIC | = | 0x0001 |
| ACC_PRIVATE | = | 0x0002 |
| ACC_PROTECTED | = | 0x0004 |
| ACC_STATIC | = | 0x0008 |
| ACC_FINAL | = | 0x0010 |
| ACC_VOLATILE | = | 0x0040 |
| ACC_TRANSIENT | = | 0x0080 |
| ACC_SYNTHETIC | = | 0x1000 |
| ACC_ENUM | = | 0x4000 |
| access | [RW] | |
| annotations | [RW] | |
| attrs | [RW] | |
| desc | [RW] | |
| name | [RW] | |
| signature | [RW] | |
| value | [RW] |
# File lib/ruva/class.rb, line 260
260: def initialize(access, name, desc, signature, value)
261: self.access, self.name, self.desc, self.signature, self.value =
262: access, name, desc, signature, value
263:
264: self.annotations, self.attrs = [], []
265: end
# File lib/ruva/class.rb, line 285
285: def to_s
286: "#{Class.human_access_field(self)}#{Class.human_desc(desc)} #{name}"
287: end
Visit an annotation. Should return an Annotation visitor to suit.
# File lib/ruva/class.rb, line 272
272: def visit_annotation(desc, visible)
273: annotations << a = Annotation.new(desc, visible)
274: a
275: end