Class: Duby::JVM::Types::JavaFieldAccessor

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

Direct Known Subclasses

JavaFieldGetter, JavaFieldSetter

Instance Attribute Summary

Attributes inherited from JavaCallable

#member

Instance Method Summary collapse

Methods inherited from JavaMethod

#abstract?, #call, #call_special, #constructor?, #static?, #void?

Methods inherited from JavaConstructor

#argument_types, #call, #constructor?, #declaring_class, #exceptions

Methods inherited from JavaCallable

#initialize, #name, #parameter_types

Methods included from ArgumentConversion

#convert_args

Constructor Details

This class inherits a constructor from Duby::JVM::Types::JavaCallable

Instance Method Details

#field?Boolean

Returns:



294
295
296
# File 'lib/duby/jvm/types/methods.rb', line 294

def field?
  true
end

#final?Boolean

Returns:



308
309
310
# File 'lib/duby/jvm/types/methods.rb', line 308

def final?
  @member.final?
end

#public?Boolean

Returns:



304
305
306
# File 'lib/duby/jvm/types/methods.rb', line 304

def public?
  @member.public?
end

#return_typeObject Also known as: actual_return_type



298
299
300
# File 'lib/duby/jvm/types/methods.rb', line 298

def return_type
  AST.type(@member.type)
end