org.jruby.javasupport
Class JavaMethod
java.lang.Object
org.jruby.RubyObject
org.jruby.javasupport.JavaCallable
org.jruby.javasupport.JavaMethod
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- public class JavaMethod
- extends JavaCallable
Constructor Summary |
JavaMethod(Ruby runtime,
java.lang.reflect.Method method)
|
Methods inherited from class org.jruby.RubyObject |
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equal, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, marshalTo, method_missing, method, methods, nilObject, private_methods, protected_methods, rbClone, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, to_s, toString, type, untaint |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JavaMethod
public JavaMethod(Ruby runtime,
java.lang.reflect.Method method)
createJavaMethodClass
public static RubyClass createJavaMethodClass(Ruby ruby,
RubyModule javaModule)
create
public static JavaMethod create(Ruby runtime,
java.lang.reflect.Method method)
create
public static JavaMethod create(Ruby runtime,
java.lang.Class javaClass,
java.lang.String methodName,
java.lang.Class[] argumentTypes)
name
public RubyString name()
getArity
protected int getArity()
- Specified by:
getArity
in class JavaCallable
public_p
public RubyBoolean public_p()
final_p
public RubyBoolean final_p()
invoke
public IRubyObject invoke(IRubyObject[] args)
invoke_static
public IRubyObject invoke_static(IRubyObject[] args)
return_type
public IRubyObject return_type()
parameterTypes
protected java.lang.Class[] parameterTypes()
- Specified by:
parameterTypes
in class JavaCallable
nameOnInspection
protected java.lang.String nameOnInspection()
- Specified by:
nameOnInspection
in class JavaCallable
- Returns:
- the name used in the head of the string returned from inspect()
static_p
public RubyBoolean static_p()
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.