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 Generics
#inspect_generic, #inspect_type
Methods included from Modifiers
Constructor Details
#initialize(klass, flags, name, type, signature, value) ⇒ FieldMirror
Returns a new instance of FieldMirror.
393 394 395 396 397 398 399 400 |
# File 'lib/bitescript/mirror.rb', line 393 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.
392 393 394 |
# File 'lib/bitescript/mirror.rb', line 392 def declaring_class @declaring_class end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
392 393 394 |
# File 'lib/bitescript/mirror.rb', line 392 def name @name end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
392 393 394 |
# File 'lib/bitescript/mirror.rb', line 392 def signature @signature end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
392 393 394 |
# File 'lib/bitescript/mirror.rb', line 392 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
392 393 394 |
# File 'lib/bitescript/mirror.rb', line 392 def value @value end |
Instance Method Details
#generic_type ⇒ Object
402 403 404 |
# File 'lib/bitescript/mirror.rb', line 402 def generic_type signature end |
#inspect ⇒ Object
406 407 408 409 |
# File 'lib/bitescript/mirror.rb', line 406 def inspect typename = inspect_generic(type, signature) inspect_annotations + "#{modifier_string}#{typename} #{name};" end |