Class: BiteScript::ASM::FieldMirror

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

Defined Under Namespace

Classes: Builder

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

Returns the value of attribute declaring_class.



355
356
357
# File 'lib/bitescript/mirror.rb', line 355

def declaring_class
  @declaring_class
end

#nameObject (readonly)

Returns the value of attribute name.



355
356
357
# File 'lib/bitescript/mirror.rb', line 355

def name
  @name
end

#signatureObject (readonly)

Returns the value of attribute signature.



355
356
357
# File 'lib/bitescript/mirror.rb', line 355

def signature
  @signature
end

#typeObject (readonly)

Returns the value of attribute type.



355
356
357
# File 'lib/bitescript/mirror.rb', line 355

def type
  @type
end

#valueObject (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_typeObject



365
366
367
# File 'lib/bitescript/mirror.rb', line 365

def generic_type
  signature
end

#inspectObject



369
370
371
# File 'lib/bitescript/mirror.rb', line 369

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