org.jruby.javasupport
Class JavaCallable

java.lang.Object
  extended by org.jruby.RubyObject
      extended by org.jruby.javasupport.JavaAccessibleObject
          extended by org.jruby.javasupport.JavaCallable
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject
Direct Known Subclasses:
JavaConstructor, JavaMethod

public abstract class JavaCallable
extends JavaAccessibleObject


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
JavaCallable(Ruby runtime, RubyClass rubyClass)
           
 
Method Summary
 RubyArray argument_types()
           
 RubyFixnum arity()
           
protected abstract  int getArity()
           
protected abstract  int getModifiers()
           
 IRubyObject inspect()
          rb_obj_inspect
protected abstract  java.lang.String nameOnInspection()
           
protected abstract  java.lang.Class[] parameterTypes()
           
 RubyBoolean public_p()
           
static void registerRubyMethods(Ruby runtime, RubyClass result, java.lang.Class klass)
           
 
Methods inherited from class org.jruby.javasupport.JavaAccessibleObject
accesibleObject, equal, hash, isAccessible, registerRubyMethods, same, setAccessible
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissing, callMethodMissing, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaCallable

public JavaCallable(Ruby runtime,
                    RubyClass rubyClass)
Method Detail

arity

public final RubyFixnum arity()

argument_types

public final RubyArray argument_types()

inspect

public IRubyObject inspect()
Description copied from class: RubyObject
rb_obj_inspect

Specified by:
inspect in interface IRubyObject
Overrides:
inspect in class RubyObject
Returns:
String

getArity

protected abstract int getArity()

parameterTypes

protected abstract java.lang.Class[] parameterTypes()

getModifiers

protected abstract int getModifiers()

nameOnInspection

protected abstract java.lang.String nameOnInspection()
Returns:
the name used in the head of the string returned from inspect()

public_p

public RubyBoolean public_p()

registerRubyMethods

public static void registerRubyMethods(Ruby runtime,
                                       RubyClass result,
                                       java.lang.Class klass)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.