Class: Duby::JVM::Types::JavaCallable

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

Direct Known Subclasses

JavaConstructor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ArgumentConversion

#convert_args

Constructor Details

#initialize(member) ⇒ JavaCallable

Returns a new instance of JavaCallable.



75
76
77
# File 'lib/duby/jvm/types/methods.rb', line 75

def initialize(member)
  @member = member
end

Instance Attribute Details

#memberObject

Returns the value of attribute member.



73
74
75
# File 'lib/duby/jvm/types/methods.rb', line 73

def member
  @member
end

Instance Method Details

#field?Boolean

Returns:



83
84
85
# File 'lib/duby/jvm/types/methods.rb', line 83

def field?
  false
end

#nameObject



79
80
81
# File 'lib/duby/jvm/types/methods.rb', line 79

def name
  @name ||= @member.name
end

#parameter_typesObject



87
88
89
# File 'lib/duby/jvm/types/methods.rb', line 87

def parameter_types
  @member.parameter_types
end