org.jruby.javasupport
Class JavaClass
java.lang.Object
org.jruby.RubyObject
org.jruby.javasupport.JavaObject
org.jruby.javasupport.JavaClass
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- public class JavaClass
- extends JavaObject
Methods inherited from class org.jruby.javasupport.JavaObject |
afill, aref, aset, createJavaObjectClass, equal, getJavaClass, getValue, hash, is_java_proxy, java_class, java_type, length, registerRubyMethods, ruby_synchronized, same, to_s, wrap |
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, callMethodMissingIfNecessary, 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, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, inspect, 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, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
getStaticAssignedNames
protected java.util.Map getStaticAssignedNames()
getInstanceAssignedNames
protected java.util.Map getInstanceAssignedNames()
setupProxy
public void setupProxy(RubyClass proxy)
getJavaPropertyName
public static java.lang.String getJavaPropertyName(java.lang.String beanMethodName)
getRubyCasedName
public static java.lang.String getRubyCasedName(java.lang.String javaCasedName)
setupInterfaceProxy
public void setupInterfaceProxy(RubyClass proxy)
setupInterfaceModule
public void setupInterfaceModule(RubyModule module)
get
public static JavaClass get(Ruby runtime,
java.lang.Class klass)
createJavaClassClass
public static RubyClass createJavaClassClass(Ruby runtime,
RubyModule javaModule)
forName
public static JavaClass forName(Ruby runtime,
java.lang.String className)
for_name
public static JavaClass for_name(IRubyObject recv,
IRubyObject name)
define_instance_methods_for_proxy
public IRubyObject define_instance_methods_for_proxy(IRubyObject arg)
public_p
public RubyBoolean public_p()
protected_p
public RubyBoolean protected_p()
private_p
public RubyBoolean private_p()
javaClass
public java.lang.Class javaClass()
final_p
public RubyBoolean final_p()
interface_p
public RubyBoolean interface_p()
array_p
public RubyBoolean array_p()
name
public RubyString name()
simple_name
public RubyString simple_name()
superclass
public IRubyObject superclass()
op_cmp
public RubyFixnum op_cmp(IRubyObject other)
java_instance_methods
public RubyArray java_instance_methods()
declared_instance_methods
public RubyArray declared_instance_methods()
java_class_methods
public RubyArray java_class_methods()
declared_class_methods
public RubyArray declared_class_methods()
java_method
public JavaMethod java_method(IRubyObject[] args)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
declared_method
public JavaMethod declared_method(IRubyObject[] args)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
constructors
public RubyArray constructors()
declared_classes
public RubyArray declared_classes()
declared_constructors
public RubyArray declared_constructors()
constructor
public JavaConstructor constructor(IRubyObject[] args)
declared_constructor
public JavaConstructor declared_constructor(IRubyObject[] args)
array_class
public JavaClass array_class()
new_array
public JavaObject new_array(IRubyObject lengthArgument)
fields
public RubyArray fields()
declared_fields
public RubyArray declared_fields()
field
public JavaField field(IRubyObject name)
declared_field
public JavaField declared_field(IRubyObject name)
interfaces
public RubyArray interfaces()
primitive_p
public RubyBoolean primitive_p()
assignable_from_p
public RubyBoolean assignable_from_p(IRubyObject other)
component_type
public JavaClass component_type()
Copyright © 2002-2007 JRuby Team. All Rights Reserved.