public abstract class JavaCallable extends JavaAccessibleObject implements ParameterTypes
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?>[] |
parameterTypes |
| Modifier | Constructor and Description |
|---|---|
protected |
JavaCallable(Ruby runtime,
RubyClass rubyClass,
java.lang.Class<?>[] parameterTypes) |
accessibleObject, annotation_present_p, annotation, annotations_p, annotations, declared_annotations_p, declared_annotations, declaring_class, equals, hash, hashCode, isAccessible, modifiers, name, op_equal, same, setAccessible, synthetic_p, to_string, toStringpublic final int getArity()
getArity in interface ParameterTypespublic final java.lang.Class<?>[] getParameterTypes()
getParameterTypes in interface ParameterTypespublic abstract int getModifiers()
public abstract java.lang.Class<?>[] getExceptionTypes()
getExceptionTypes in interface ParameterTypespublic abstract java.lang.reflect.Type[] getGenericExceptionTypes()
public abstract java.lang.reflect.Type[] getGenericParameterTypes()
public abstract java.lang.annotation.Annotation[][] getParameterAnnotations()
public abstract boolean isVarArgs()
isVarArgs in interface ParameterTypespublic abstract java.lang.String toGenericString()
public final RubyFixnum arity(ThreadContext context)
public final RubyArray parameter_types(ThreadContext context)
public RubyArray exception_types(ThreadContext context)
public IRubyObject generic_parameter_types(ThreadContext context)
public IRubyObject generic_exception_types(ThreadContext context)
public IRubyObject parameter_annotations(ThreadContext context)
public RubyBoolean varargs_p(ThreadContext context)
public RubyString to_generic_string(ThreadContext context)
public RubyBoolean public_p(ThreadContext context)
protected final void checkArity(ThreadContext context, int length)
protected final IRubyObject handleThrowable(ThreadContext context, java.lang.Throwable ex)
protected final IRubyObject handleInvocationTargetEx(ThreadContext context, java.lang.reflect.InvocationTargetException ex)
public static java.lang.StringBuilder inspectParameterTypes(java.lang.StringBuilder str,
ParameterTypes target)
Copyright © 2001-2022 JRuby. All Rights Reserved.