org.jruby.javasupport
Class JavaCallable

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

public abstract class JavaCallable
extends RubyObject


Field Summary
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
JavaCallable(Ruby ruby, RubyClass rubyClass)
           
 
Method Summary
 RubyArray argument_types()
           
 RubyFixnum arity()
           
protected abstract  int getArity()
           
 RubyString inspect()
          rb_obj_inspect
protected abstract  java.lang.String nameOnInspection()
           
protected abstract  java.lang.Class[] parameterTypes()
           
 
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
 

Constructor Detail

JavaCallable

public JavaCallable(Ruby ruby,
                    RubyClass rubyClass)
Method Detail

arity

public final RubyFixnum arity()

argument_types

public final RubyArray argument_types()

inspect

public final RubyString inspect()
Description copied from class: RubyObject
rb_obj_inspect

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

getArity

protected abstract int getArity()

parameterTypes

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

nameOnInspection

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


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.