Class: BiteScript::ASM::FieldMirror
- Inherits:
-
Object
- Object
- BiteScript::ASM::FieldMirror
- Defined in:
- lib/bitescript/mirror.rb
Instance Attribute Summary collapse
-
#declaring_class ⇒ Object
readonly
Returns the value of attribute declaring_class.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes included from Modifiers
Instance Method Summary collapse
-
#initialize(klass, flags, name, type, value) ⇒ FieldMirror
constructor
A new instance of FieldMirror.
- #inspect ⇒ Object
Methods included from Annotated
#addAnnotation, #annotations, #declaredAnnotations, #getDeclaredAnnotation, #inspect_annotations
Methods included from Modifiers
Constructor Details
#initialize(klass, flags, name, type, value) ⇒ FieldMirror
Returns a new instance of FieldMirror.
329 330 331 332 333 334 335 |
# File 'lib/bitescript/mirror.rb', line 329 def initialize(klass, flags, name, type, value) @declaring_class = klass @flags = flags @name = name @type = type @value = value end |
Instance Attribute Details
#declaring_class ⇒ Object (readonly)
Returns the value of attribute declaring_class.
328 329 330 |
# File 'lib/bitescript/mirror.rb', line 328 def declaring_class @declaring_class end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
328 329 330 |
# File 'lib/bitescript/mirror.rb', line 328 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
328 329 330 |
# File 'lib/bitescript/mirror.rb', line 328 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
328 329 330 |
# File 'lib/bitescript/mirror.rb', line 328 def value @value end |
Instance Method Details
#inspect ⇒ Object
337 338 339 |
# File 'lib/bitescript/mirror.rb', line 337 def inspect inspect_annotations + "#{modifier_string}#{type.getClassName} #{name};" end |