org.jruby
Class MetaClass

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyModule
          extended byorg.jruby.RubyClass
              extended byorg.jruby.MetaClass
All Implemented Interfaces:
java.lang.Cloneable, IMetaClass, IRubyObject

public class MetaClass
extends RubyClass
implements IMetaClass


Field Summary
 RubyClass type
           
 
Fields inherited from class org.jruby.RubyModule
parentModule
 
Fields inherited from class org.jruby.RubyObject
runtime
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
MetaClass(Ruby runtime, RubyClass type)
           
MetaClass(Ruby runtime, RubyClass type, RubyClass superClass)
           
 
Method Summary
 void attachToObject(IRubyObject object)
           
 IRubyObject getAttachedObject()
           
 RubyClass getRealClass()
           
 boolean isSingleton()
           
 void methodAdded(RubySymbol symbol)
           
protected  RubyClass subclass()
          Create a new subclass of this class.
protected  void testFrozen()
          rb_frozen_class_p
 
Methods inherited from class org.jruby.RubyClass
allocateObject, createClassClass, getMetaClass, getSingletonClassClone, inherited, inheritedBy, isClass, isModule, marshalTo, newClass, newClass, newInstance, newSingletonClass, superclass, unmarshalFrom
 
Methods inherited from class org.jruby.RubyModule
addMethod, alias_method, aliasMethod, ancestors, append_features, attr_accessor, attr_reader, attr_writer, attr, call, call0, class_variables, clearMethodCache, clearMethodCache, const_defined, const_get, const_missing, const_set, constants, createModuleClass, define_method, defineAlias, defineClassUnder, defineConstant, defineMethod, defineModuleFunction, defineModuleUnder, defineOrGetClassUnder, definePrivateMethod, dup, executeUnder, exportMethod, extend_object, getBaseName, getClassname, getClassPath, getClassVar, getConstant, getMethodBodyCached, getMethods, getMethodVisibility, getName, getSuperClass, include, included_modules, includeModule, initialize, instance_method, instance_methods, isClassVarDefined, isConstantDefined, isConstantDefinedAt, isIncluded, isMethodBound, isMethodDefined, method_defined, module_eval, module_function, name, nesting, newIncludeClass, newMethod, newModule, newModule, newModule, op_cmp, op_eqq, op_ge, op_gt, op_le, op_lt, private_class_method, private_instance_methods, protected_instance_methods, public_class_method, rbClone, rbPrivate, rbProtected, rbPublic, remove_class_variable, remove_const, remove_method, removeCvar, removeMethod, searchMethod, setBaseName, setClassVar, setConstant, setMethodVisibility, to_s, toName, undef_method, undef, undefineMethod
 
Methods inherited from class org.jruby.RubyObject
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, equal, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, inspect, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, method_missing, method, methods, nilObject, private_methods, protected_methods, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, toString, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public RubyClass type
Constructor Detail

MetaClass

public MetaClass(Ruby runtime,
                 RubyClass type)

MetaClass

public MetaClass(Ruby runtime,
                 RubyClass type,
                 RubyClass superClass)
Method Detail

isSingleton

public boolean isSingleton()
Overrides:
isSingleton in class RubyClass

subclass

protected RubyClass subclass()
Description copied from class: RubyClass
Create a new subclass of this class.

Overrides:
subclass in class RubyClass

testFrozen

protected void testFrozen()
Description copied from class: RubyModule
rb_frozen_class_p

Overrides:
testFrozen in class RubyClass

attachToObject

public void attachToObject(IRubyObject object)
Overrides:
attachToObject in class RubyClass

getRealClass

public RubyClass getRealClass()
Overrides:
getRealClass in class RubyClass

methodAdded

public void methodAdded(RubySymbol symbol)

getAttachedObject

public IRubyObject getAttachedObject()


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.