jruby/docs BETA
Navigation
org.jruby.javasupport 16
C Java
C JavaArray
C JavaArrayUtilities
C JavaCallable
C JavaClass
C JavaConstructor
C JavaEmbedUtils
C JavaMethod
C JavaObject
C JavaPackage
C JavaProxyMethods
C JavaSupport
C JavaSupportImpl
C JavaUtil
C JavaUtilities
I ParameterTypes
JavaMethod — members 32+
C new(runtime, method)
M accessible_object() AccessibleObject
M create(runtime, method) JavaMethod
M equals(other) boolean
M exception_types() Class<?>[]
M generic_exception_types() Type[]
M generic_parameter_types() Type[]
M get_matching_declared_method(runtime, java_class, method_name, argument_types) JavaMethod
M hash_code() int
M invoke_direct(context, java_invokee, args) IRubyObject
M invoke_direct(context, java_invokee) IRubyObject
M invoke_direct(context, java_invokee, arg0) IRubyObject
M invoke_direct(context, java_invokee, arg0, arg1) IRubyObject
M invoke_direct(context, java_invokee, arg0, arg1, arg2) IRubyObject
M invoke_direct(context, java_invokee, arg0, arg1, arg2, arg3) IRubyObject
M invoke_direct_super_with_exception_handling(context, method, java_invokee, arguments) IRubyObject
M invoke_direct_with_exception_handling(context, method, java_invokee, arguments) IRubyObject
M invoke_static_direct(context, args) IRubyObject
M invoke_static_direct(context) IRubyObject
M invoke_static_direct(context, arg0) IRubyObject
M invoke_static_direct(context, arg0, arg1) IRubyObject
M invoke_static_direct(context, arg0, arg1, arg2) IRubyObject
M invoke_static_direct(context, arg0, arg1, arg2, arg3) IRubyObject
M modifiers() int
M name() String
M new_arg_size_mismatch_error(runtime, arg_types) RaiseException
M new_method_not_found_error(runtime, target, pretty_name, simple_name) RaiseException
M new_method_not_found_error(context, target, pretty_name, simple_name) RaiseException
M parameter_annotations() Annotation[][]
M to_generic_string() String
M value() Method
M var_args?() boolean
from JavaCallable
M arity() int
M parameter_types() Class<?>[]
M to_string() String

org.jruby.javasupport.JavaMethod

class extends JavaCallable 32 members

Constructors

new

new ( Ruby runtime, Method method )
Java: <init>(org.jruby.Ruby runtime, java.lang.reflect.Method method)

Class Methods

create

JavaMethod create ( Ruby runtime, Method method )
Java: create(org.jruby.Ruby runtime, java.lang.reflect.Method method)

get_matching_declared_method

JavaMethod get_matching_declared_method ( Ruby runtime, Class<?> java_class, String method_name, Class<?>[] argument_types )
Java: getMatchingDeclaredMethod(org.jruby.Ruby runtime, Class<?> javaClass, String methodName, Class<?>[] argumentTypes)

new_arg_size_mismatch_error

RaiseException new_arg_size_mismatch_error ( Ruby runtime, Class[] arg_types )
Java: newArgSizeMismatchError(org.jruby.Ruby runtime, Class[] argTypes)

new_method_not_found_error

RaiseException new_method_not_found_error ( Ruby runtime, Class target, String pretty_name, String simple_name )
Java: newMethodNotFoundError(org.jruby.Ruby runtime, Class target, String prettyName, String simpleName)

new_method_not_found_error

RaiseException new_method_not_found_error ( ThreadContext context, Class target, String pretty_name, String simple_name )
Java: newMethodNotFoundError(org.jruby.runtime.ThreadContext context, Class target, String prettyName, String simpleName)

Instance Methods

accessible_object

AccessibleObject accessible_object ( )
Java: accessibleObject()

equals

boolean equals ( Object other )
Java: equals(Object other)

exception_types

Class<?>[] exception_types ( )
Java: getExceptionTypes() · also: get_exception_types

generic_exception_types

Type[] generic_exception_types ( )
Java: getGenericExceptionTypes() · also: get_generic_exception_types

generic_parameter_types

Type[] generic_parameter_types ( )
Java: getGenericParameterTypes() · also: get_generic_parameter_types

hash_code

int hash_code ( )
Java: hashCode()

invoke_direct

IRubyObject invoke_direct ( ThreadContext context, Object java_invokee, Object[] args )
Java: invokeDirect(org.jruby.runtime.ThreadContext context, Object javaInvokee, Object[] args)

invoke_direct

IRubyObject invoke_direct ( ThreadContext context, Object java_invokee )
Java: invokeDirect(org.jruby.runtime.ThreadContext context, Object javaInvokee)

invoke_direct

IRubyObject invoke_direct ( ThreadContext context, Object java_invokee, Object arg0 )
Java: invokeDirect(org.jruby.runtime.ThreadContext context, Object javaInvokee, Object arg0)

invoke_direct

IRubyObject invoke_direct ( ThreadContext context, Object java_invokee, Object arg0, Object arg1 )
Java: invokeDirect(org.jruby.runtime.ThreadContext context, Object javaInvokee, Object arg0, Object arg1)

invoke_direct

IRubyObject invoke_direct ( ThreadContext context, Object java_invokee, Object arg0, Object arg1, Object arg2 )
Java: invokeDirect(org.jruby.runtime.ThreadContext context, Object javaInvokee, Object arg0, Object arg1, Object arg2)

invoke_direct

IRubyObject invoke_direct ( ThreadContext context, Object java_invokee, Object arg0, Object arg1, Object arg2, Object arg3 )
Java: invokeDirect(org.jruby.runtime.ThreadContext context, Object javaInvokee, Object arg0, Object arg1, Object arg2, Object arg3)

invoke_direct_super_with_exception_handling

IRubyObject invoke_direct_super_with_exception_handling ( ThreadContext context, Method method, Object java_invokee, Object[] arguments )
Java: invokeDirectSuperWithExceptionHandling(org.jruby.runtime.ThreadContext context, java.lang.reflect.Method method, Object javaInvokee, Object[] arguments)

invoke_direct_with_exception_handling

IRubyObject invoke_direct_with_exception_handling ( ThreadContext context, Method method, Object java_invokee, Object[] arguments )
Java: invokeDirectWithExceptionHandling(org.jruby.runtime.ThreadContext context, java.lang.reflect.Method method, Object javaInvokee, Object[] arguments)

invoke_static_direct

IRubyObject invoke_static_direct ( ThreadContext context, Object[] args )
Java: invokeStaticDirect(org.jruby.runtime.ThreadContext context, Object[] args)

invoke_static_direct

IRubyObject invoke_static_direct ( ThreadContext context )
Java: invokeStaticDirect(org.jruby.runtime.ThreadContext context)

invoke_static_direct

IRubyObject invoke_static_direct ( ThreadContext context, Object arg0 )
Java: invokeStaticDirect(org.jruby.runtime.ThreadContext context, Object arg0)

invoke_static_direct

IRubyObject invoke_static_direct ( ThreadContext context, Object arg0, Object arg1 )
Java: invokeStaticDirect(org.jruby.runtime.ThreadContext context, Object arg0, Object arg1)

invoke_static_direct

IRubyObject invoke_static_direct ( ThreadContext context, Object arg0, Object arg1, Object arg2 )
Java: invokeStaticDirect(org.jruby.runtime.ThreadContext context, Object arg0, Object arg1, Object arg2)

invoke_static_direct

IRubyObject invoke_static_direct ( ThreadContext context, Object arg0, Object arg1, Object arg2, Object arg3 )
Java: invokeStaticDirect(org.jruby.runtime.ThreadContext context, Object arg0, Object arg1, Object arg2, Object arg3)

modifiers

int modifiers ( )
Java: getModifiers() · also: get_modifiers

name

String name ( )
Java: getName() · also: get_name

parameter_annotations

Annotation[][] parameter_annotations ( )
Java: getParameterAnnotations() · also: get_parameter_annotations

to_generic_string

String to_generic_string ( )
Java: toGenericString()

value

Method value ( )
Java: getValue() · also: get_value

var_args?

boolean var_args? ( )
Java: isVarArgs() · also: is_var_args

Inherited

from JavaCallable

arity

int arity ( )
Java: getArity() · also: get_arity

parameter_types

Class<?>[] parameter_types ( )
Java: getParameterTypes() · also: get_parameter_types

to_string

String to_string ( )
Java: toString()