Class: BiteScript::ASM::FieldMirror
- Inherits:
-
Object
- Object
- BiteScript::ASM::FieldMirror
- Defined in:
- lib/bitescript/mirror.rb,
lib/bitescript/asm3/mirror.rb
Defined Under Namespace
Classes: Builder
Instance Attribute Summary collapse
-
#declaring_class ⇒ Object
readonly
Returns the value of attribute declaring_class.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#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
- #generic_type ⇒ Object
-
#initialize(klass, flags, name, type, signature, 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, signature, value) ⇒ FieldMirror
Returns a new instance of FieldMirror.
356 357 358 359 360 361 362 363 |
# File 'lib/bitescript/mirror.rb', line 356 def initialize(klass, flags, name, type, signature, value) @declaring_class = klass @flags = flags @name = name @type = type @value = value @signature = signature end |
Instance Attribute Details
#declaring_class ⇒ Object (readonly)
Returns the value of attribute declaring_class.
355 356 357 |
# File 'lib/bitescript/mirror.rb', line 355 def declaring_class @declaring_class end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
355 356 357 |
# File 'lib/bitescript/mirror.rb', line 355 def name @name end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
355 356 357 |
# File 'lib/bitescript/mirror.rb', line 355 def signature @signature end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
355 356 357 |
# File 'lib/bitescript/mirror.rb', line 355 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
355 356 357 |
# File 'lib/bitescript/mirror.rb', line 355 def value @value end |
Instance Method Details
#generic_type ⇒ Object
365 366 367 |
# File 'lib/bitescript/mirror.rb', line 365 def generic_type signature end |
#inspect ⇒ Object
369 370 371 |
# File 'lib/bitescript/mirror.rb', line 369 def inspect inspect_annotations + "#{modifier_string}#{type.getClassName} #{name};" end |