org.jruby.javasupport
Class JavaConstructor

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

public class JavaConstructor
extends JavaCallable


Field Summary
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
JavaConstructor(Ruby runtime, java.lang.reflect.Constructor constructor)
           
 
Method Summary
static RubyClass createJavaConstructorClass(Ruby ruby, RubyModule javaModule)
           
 int getArity()
           
protected  java.lang.String nameOnInspection()
           
 IRubyObject new_instance(IRubyObject[] args)
           
protected  java.lang.Class[] parameterTypes()
           
 
Methods inherited from class org.jruby.javasupport.JavaCallable
argument_types, arity, inspect
 
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

JavaConstructor

public JavaConstructor(Ruby runtime,
                       java.lang.reflect.Constructor constructor)
Method Detail

createJavaConstructorClass

public static RubyClass createJavaConstructorClass(Ruby ruby,
                                                   RubyModule javaModule)

getArity

public int getArity()
Specified by:
getArity in class JavaCallable

new_instance

public IRubyObject new_instance(IRubyObject[] args)

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()

parameterTypes

protected java.lang.Class[] parameterTypes()
Specified by:
parameterTypes in class JavaCallable


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.