Class: Duby::JVM::Types::DubyMember

Inherits:
Object
  • Object
show all
Defined in:
lib/duby/jvm/types/methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, name, args, return_type, static, exceptions) ⇒ DubyMember

Returns a new instance of DubyMember.



365
366
367
368
369
370
371
372
373
374
375
# File 'lib/duby/jvm/types/methods.rb', line 365

def initialize(klass, name, args, return_type, static, exceptions)
  if return_type == Void
    return_type = nil
  end
  @declaring_class = klass
  @name = name
  @argument_types = args
  @return_type = return_type
  @static = static
  @exception_types = exceptions || []
end

Instance Attribute Details

#argument_typesObject (readonly)

Returns the value of attribute argument_types.



362
363
364
# File 'lib/duby/jvm/types/methods.rb', line 362

def argument_types
  @argument_types
end

#declaring_classObject (readonly)

Returns the value of attribute declaring_class.



362
363
364
# File 'lib/duby/jvm/types/methods.rb', line 362

def declaring_class
  @declaring_class
end

#exception_typesObject (readonly)

Returns the value of attribute exception_types.



363
364
365
# File 'lib/duby/jvm/types/methods.rb', line 363

def exception_types
  @exception_types
end

#nameObject (readonly)

Returns the value of attribute name.



362
363
364
# File 'lib/duby/jvm/types/methods.rb', line 362

def name
  @name
end

#return_typeObject (readonly)

Returns the value of attribute return_type.



362
363
364
# File 'lib/duby/jvm/types/methods.rb', line 362

def return_type
  @return_type
end

Instance Method Details

#abstract?Boolean

Returns:



381
382
383
# File 'lib/duby/jvm/types/methods.rb', line 381

def abstract?
  @declaring_class.interface?
end

#static?Boolean

Returns:



377
378
379
# File 'lib/duby/jvm/types/methods.rb', line 377

def static?
  @static
end