Class: BiteScript::ASM::FieldMirror

Inherits:
Object
  • Object
show all
Includes:
Annotated, Modifiers
Defined in:
lib/bitescript/mirror.rb

Instance Attribute Summary collapse

Attributes included from Modifiers

#flags

Instance Method Summary collapse

Methods included from Annotated

#addAnnotation, #annotations, #declaredAnnotations, #getDeclaredAnnotation, #inspect_annotations

Methods included from Modifiers

add_modifier

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_classObject (readonly)

Returns the value of attribute declaring_class.



328
329
330
# File 'lib/bitescript/mirror.rb', line 328

def declaring_class
  @declaring_class
end

#nameObject (readonly)

Returns the value of attribute name.



328
329
330
# File 'lib/bitescript/mirror.rb', line 328

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



328
329
330
# File 'lib/bitescript/mirror.rb', line 328

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



328
329
330
# File 'lib/bitescript/mirror.rb', line 328

def value
  @value
end

Instance Method Details

#inspectObject



337
338
339
# File 'lib/bitescript/mirror.rb', line 337

def inspect
  inspect_annotations + "#{modifier_string}#{type.getClassName} #{name};"
end