| Modifier and Type | Class and Description |
|---|---|
| public class | RubyModule.
Objects for holding autoload state for the defined constant. |
| public static interface | RubyModule.
Deprecated
|
| protected abstract static class | |
| public static class | RubyModule.
Represents a constant value, possibly hidden (private). |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | RubyModule.
Deprecated
|
| protected static class | |
| public static class | |
| private class | |
| public static class | |
| public static interface | |
| pack-priv static class | |
| protected static class | |
| protected abstract static class | RubyModule.
A wrapper CacheEntryFactory, for delegating cache entry creation along a chain. |
| Modifier and Type | Field and Description |
|---|---|
| private volatile Map | |
| private static final VarHandle | |
| protected String | baseName
The base name of this class/module, excluding nesting. |
| public static final String | |
| protected Map | |
| private transient String | cachedName
The cached name, full class name e.g. Foo::Bar if this class and all containing classes are non-anonymous. |
| private transient RubyString | |
| private transient IRubyObject | |
| private volatile RubyModule. | |
| public static final int | |
| private static final VarHandle | |
| protected ClassIndex | |
| private transient volatile Set | |
| private volatile Map | |
| private static final VarHandle | |
| private volatile Map | |
| private static final VarHandle | |
| protected int | |
| protected Integer | |
| public final int | |
| private MethodHandle | idTest
Pre-built test that takes ThreadContext, IRubyObject and checks that the object is a module with the same ID as this one. |
| public static final int | |
| private static final VarHandle | |
| protected volatile RubyClass. | |
| public int | index
Deprecated
use RubyModule#getClassIndex()
The index of this class in the ClassIndex.
|
| public static final int | |
| private boolean | javaProxy
Whether this class proxies a normal Java class |
| public RubyModule. | |
| private int | |
| private static final Logger | |
| private static final MethodHandles. | |
| protected final Invalidator | |
| protected volatile RubyModule | methodLocation
Where are the methods of this module/class located? |
| protected volatile Map | |
| private static final VarHandle | |
| public static final ObjectAllocator | |
| public static final int | |
| protected static final RubyModule. | |
| public static final int | |
| public RubyModule | parent
The class/module within whose namespace this class/module resides. |
| public static final int | |
| private static final VarHandle | |
| pack-priv volatile RubyModule. | |
| public static final Set | SCOPE_CAPTURING_METHODS
Deprecated
|
| protected RubyClass | |
| public static final int | |
| private static final MethodHandle | testModuleMatch
A handle for invoking the module ID test, to be reused for all idTest handles below. |
| Access | Constructor and Description |
|---|---|
| protected | RubyModule(Ruby runtime, RubyClass metaClass, boolean objectSpace)
separate path for MetaClass construction |
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private void | addAccessor(ThreadContext context, RubySymbol identifier, Visibility visibility, boolean readable, boolean writeable)
|
| private void | |
| public final synchronized void | |
| public void | |
| public void | |
| public void | |
| public final void | |
| public final void | |
| protected void | addMethodSymbols(Ruby runtime, Set<String> seen, RubyArray<T extends IRubyObject> ary, boolean not, Visibility visibility)
Deprecated
since 10.0.
|
| protected void | addMethodSymbols(ThreadContext context, Set<String> seen, RubyArray<T extends IRubyObject> ary, boolean not, Visibility visibility)
|
| public void | |
| public void | |
| public void | |
| private void | |
| protected CacheEntry | |
| protected CacheEntry | |
| public void | |
| public RubyModule | Returns: this modulethe current context context, IRubyObject the new name for the alias newId, IRubyObject the current name of the method oldId)Old version of |
| public IRubyObject | Returns: the new namethe current context context, IRubyObject the new name for the alias newId, IRubyObject the current name of the method oldId)Add an alias under the name newId pointing at the method under the name oldId. |
| public RubyArray | |
| public RubyArray | |
| pack-priv String | |
| public RubyModule | |
| public RubyModule | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | attr_accessor(ThreadContext context, IRubyObject[] args)
rb_mod_attr_accessor Note: this method should not be called from Java in most cases, since it depends on Ruby frame state for visibility. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public boolean | |
| public <T extends RubyModule> T | |
| public void | |
| private RubyString | |
| private CacheEntry | |
| private String | |
| private RubyString | |
| private String | |
| private RubyString | |
| private IRubyObject | Returns: a non-anonymous class path as a Symbol, or nullCalculate the module's name path as a Symbol. |
| private RaiseException | |
| private void | |
| private void | |
| private RubyString | |
| private void | |
| protected void | |
| public final void | checkFrozen()
Overrides org. The actual method that checks frozen with the default frozen message from MRI. |
| private Visibility | |
| private void | |
| public void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public <T extends RubyModule> T | Returns: itself for composable APIto be set classIndex)Sets the ClassIndex for this type |
| private Collection | |
| protected final IRubyObject | |
| protected final IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| public RubyBoolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: Nothing! Absolutely nothing! (though subclasses might choose to return something)The constant name which was found to be missing rubyName, Block block)Base implementation of Module#const_missing, throws NameError for specific missing constant. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| protected RubyModule. | |
| public RubyArray | |
| public RubyArray | |
| private RubyArray | |
| public Collection | |
| public Collection | |
| protected boolean | |
| protected IRubyObject | |
| protected IRubyObject | |
| protected IRubyObject | |
| protected IRubyObject | |
| protected IRubyObject | constantTableStore(String name, IRubyObject value, boolean hidden, boolean deprecated, String file, int line)
|
| protected IRubyObject | |
| private boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| private boolean | constDefinedInner(ThreadContext context, String name, boolean exclude, boolean recurse, boolean visibility)
rb_const_defined_0 |
| private IRubyObject | |
| private RubyModule | |
| private DynamicMethod | |
| private CacheEntry | |
| private static void | define(ThreadContext context, RubyModule module, JavaMethodDescriptor desc, DynamicMethod dynamicMethod)
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public synchronized void | defineAlias(String name, String oldName)
Deprecated
since 10.0. Use
RubyModule#aliasMethod(ThreadContext, IRubyObject, IRubyObject) instead
|
| public synchronized <T extends RubyModule> T | Returns: itself for composable APIthe current thread context context, String the new alias name name, String the existing method name oldName)Define an alias on this module/class. |
| public synchronized void | |
| public final boolean | Returns: ""
Deprecated
since 10.0. Use
RubyModule#defineAnnotatedConstant(ThreadContext, Field) instead.
|
| private boolean | |
| public final void | defineAnnotatedConstants(Class<T> clazz)
Deprecated
since 10.0. Use
RubyModule#defineConstants(ThreadContext, Class) instead.
|
| public void | defineAnnotatedMethod(Class<T> clazz, String name)
Deprecated
since 10.0. Use
RubyModule#defineMethods(ThreadContext, Class[]) and organize your method
definitions where you only specify the .class and not needing to add a name as a discriminator.
|
| public final boolean | defineAnnotatedMethod(String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory)
Deprecated
since 10.0. Use
RubyModule#defineMethods(ThreadContext, Class[]) instead and organize your
code around all JRubyMethod annotations in that .class being defined.
Note it is your responsibility to only pass methods which are annotated with @JRubyMethod. |
| public final void | defineAnnotatedMethod(ThreadContext
the current method context context, String name, List<JavaMethodDescriptor> methods, MethodFactory methodFactory)This is an internal API used by the type populator. |
| public final boolean | |
| public final boolean | defineAnnotatedMethod(String name, JavaMethodDescriptor desc, MethodFactory methodFactory)
Deprecated
since 10.0.
|
| public void | defineAnnotatedMethods(Class<T> clazz)
Deprecated
since 10.0. Use
RubyModule#defineMethods(ThreadContext, Class[]) instead.
|
| public final void | |
| protected final void | |
| protected final void | |
| public <T extends RubyClass> T | Returns: the new classthe current thread context context, String name of the new class name, RubyClass superclass of this new class superClass, ObjectAllocator how to allocate an instance of this class allocator)Define a Class under this Class/Module. |
| public RubyClass | Returns: the new class.to be defined name, RubyClass the super class of this new class superClazz, ObjectAllocator how to allocate it allocator, String location where it was defined from file, int location where it was defined from line)Internal API only used by our IR runtime helpers in setting up Ruby-defined classes or re-accessing them if they already exist. |
| public RubyClass | Returns: ""
Deprecated
since 10.0. Use
RubyModule#defineClassUnder(ThreadContext, String, RubyClass, ObjectAllocator) instead.
|
| public <T extends RubyModule> T | Returns: itself for a composable APIthe current thread context context, String the name of the constant name, IRubyObject the value for the constant value)Define a constant when you are defining your Ruby class/module. |
| public <T extends RubyModule> T | Returns: itself for a composable APIthe current thread context context, String the name of the constant name, IRubyObject the value for the constant value, boolean should this be a hidden constant hidden)Define a constant when you are defining your Ruby class/module. |
| public void | |
| public void | defineConstantBootstrap(String
of the constant name, IRubyObject of the constant value)This is an internal API which is only used during runtime creation but BEFORE the first ThreadContext is created. |
| public <T extends RubyModule> T | Returns: itself for composable APIclass containing the method annotations constantSource)Define constant for your module/class with the supplied Class which contains @JRubyMethod annotations. |
| public < the enum type, which must implement C extends EnumConstant. | Returns: itself for composable APIthe current thread context context, Class<C> the enum class of the constants to define enumClass)Define all constants from the given jnr-constants enum which are defined on the current platform. |
| public IRubyObject | |
| public IRubyObject | defineMethodFromCallable(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Visibility visibility)
|
| public <T extends RubyModule> T | Returns: itself for composable APIclass containing the method annotations methodSources)Define methods for your module/class with the supplied Class which contains @JRubyMethod annotations. |
| public RubyModule | Returns: itself for a composable APIDefine a module under this module. |
| public RubyModule | |
| public RubyClass | |
| public RubyClass | defineOrGetClassUnder(String name, RubyClass superClazz, String file, int line)
Deprecated
since 10.0.
|
| public RubyClass | defineOrGetClassUnder(String name, RubyClass superClazz, ObjectAllocator allocator)
Deprecated
since 10.0.
|
| public RubyClass | defineOrGetClassUnder(String name, RubyClass superClazz, ObjectAllocator allocator, String file, int line)
Deprecated
since 10.0.
|
| public RubyModule | defineOrGetModuleUnder(String name)
Deprecated
since 10.0.
this method should be used only by interpreter or compiler |
| public RubyModule | |
| public RubyModule | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public void | |
| public void | deprecateConstant(ThreadContext
the current thread context context, String the name of the constant name)Mark the named constant as deprecated. |
| public Set | |
| pack-priv void | doIncludeModule(ThreadContext context, RubyModule
The module to include, along with any modules it itself includes baseModule)Include the given module and all related modules into the hierarchy above this module/class. |
| pack-priv void | doPrependModule(ThreadContext context, RubyModule
The module to prepend, along with any modules it itself includes baseModule)Prepend the given module and all related modules into the hierarchy above this module/class. |
| protected final void | |
| protected final void | |
| public boolean | Returns: true if reference equality, false otherwiseThe object to check for equality other)Overrides org. We override equals here to provide a faster path, since equality for modules is pretty cut and dried. |
| public void | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyModule. | |
| public RubyModule. | Returns: the entry for the constant.of the constant. name, boolean include private/hidden constants includePrivate)The equivalent for fetchConstant but is useful for extra state like whether the constant is private or not. |
| public RubyModule | Returns: The method, or UndefinedMethod if not foundthe class to find clazz)Find the given class in this hierarchy, considering modules along the way. |
| pack-priv IncludedModuleWrapper | |
| private static RubyModule | |
| protected final IRubyObject | |
| protected final IRubyObject | finishAutoload(ThreadContext context, String name)
Extract an Object which is defined by autoload thread from autoloadMap and define it as a constant. |
| public static void | |
| public static void | |
| public static void | |
| public final IRubyObject | |
| private String | |
| private List | Returns: A list of all modules that would be included by including the given moduleThe base module from which to aggregate modules baseModule)Gather all modules that would be included by including the given module. |
| public List | |
| public final IRubyObject | |
| public final IRubyObject | |
| protected IRubyObject | |
| protected IRubyObject | |
| protected RubyString | |
| protected Map | |
| protected Map | |
| public String | Returns: base name of the classGet the base name of this class, or null if it is an anonymous class. |
| protected final Map | |
| private final Map | |
| public boolean | getCacheProxy()
Get whether this Java proxy class should try to keep its instances idempotent and alive using the ObjectProxyCache. |
| public final int | |
| public RubyClass | |
| public RubyClass | Returns: the class or null if no such classthe current thread context context, String to be found in this module (or class) name)Finds a class that is within the current module/class. |
| public ClassIndex | |
| private Set | Returns: the class provider set or an empty set if there are no class providersReturn the class providers set for read operations. |
| private Set | Returns: the class provider set suitable for updatingReturn the class providers set for write operations. |
| public IRubyObject | |
| public IRubyObject | Returns: The variable's value, or throws NameError if not foundThe name of the variable to retrieve name)Retrieve the specified class variable, searching through this module, included modules, and supermodules. |
| public IRubyObject | |
| public IRubyObject | |
| public List | |
| protected Map | |
| protected Map | |
| private Map | Returns: the class vars map, ready for assignmentGet the class variables for write. |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: The value for the constant, or null if not foundThe constant to retrieve name)Retrieve the named constant, invoking 'const_missing' should that be appropriate. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | Returns: the constant, or null if it was not foundthe constant name to find name)This version searches superclasses if we're starting with Object. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public Map | |
| public Map | |
| public Collection | |
| public Collection | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | getConstantNoConstMissing(String name, boolean inherit, boolean includeObject)
Deprecated
since 10.0.
|
| public IRubyObject | getConstantNoConstMissing(ThreadContext context, String name, boolean inherit, boolean includeObject)
|
| public final IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public RubyModule. | getConstantSourceLocation(String name, boolean inherit, boolean includeObject)
Deprecated
since 10.0.
|
| public RubyModule. | getConstantSourceLocation(ThreadContext context, String name, boolean inherit, boolean includeObject)
|
| public IRubyObject | getConstantWithAutoload(String name, IRubyObject failedAutoloadValue, boolean includePrivate)
Deprecated
since 10.0.
|
| public IRubyObject | getConstantWithAutoload(ThreadContext context, String name, IRubyObject failedAutoloadValue, boolean includePrivate)
Search just this class for a constant value, or trigger autoloading. |
| private Visibility | |
| public RubyModule | |
| public final int | |
| public final Integer | |
| public final MethodHandle | |
| private RubyClass. | |
| protected RubyClass. | |
| public Invalidator | |
| public boolean | getJavaProxy()
Get whether this class is associated with (i.e. a proxy for) a normal Java class or interface. |
| public RubyModule | |
| public Map | |
| public Map | |
| public RubyModule | |
| public RubyModule | Returns: the module or null if no such moduleto be found in this module (or class) name)Finds a module that is within the current module (or class). |
| public String | |
| public String | Returns: The generated class nameGenerate a fully-qualified class name or a #-style name for anonymous and singleton classes. |
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public RubyModule | |
| public RubyModule | Returns: the actual module of an included/prepended module.In an included or prepended module what is the ACTUAL module it represents? |
| public RubyModule | |
| private RubyModule | |
| public RubyModule | Returns: the nearest non-singleton non-include module in the hierarchyGet the "real" module, either the current one or the nearest ancestor that is not a singleton or include wrapper. |
| private IRubyObject | |
| public Map | |
| public Map | |
| pack-priv RubyModule. | |
| public String | |
| public String | Returns: the "simple" name of the classGet the "simple" name for the class, which is either the "base" name or the "anonymous" class name. |
| public List | |
| public List | |
| public RubyClass | |
| public boolean | |
| public IRubyObject | |
| public boolean | |
| public boolean | |
| private boolean | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. Will return the hash code of this object. |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public boolean | Returns: the value of the specified internal variable if found, else nullthe internal variable name name)Behaves similarly to |
| public boolean | |
| public boolean | |
| public boolean | |
| public <T extends RubyModule> T | Returns: itself for composable APIto be included module)In Defining this type include a module. |
| public RubyModule | |
| public RubyModule | |
| public RubyModule | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public synchronized void | |
| public synchronized void | includeModule(ThreadContext context, IRubyObject
The module to include arg)Include a new module in this module or class. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | initialize_copy(ThreadContext
the thread context context, IRubyObject the original original)Overrides org. mri: rb_mod_init_copy |
| public IRubyObject | |
| public IRubyObject | |
| private RubyArray | Returns: a RubyArray of instance method namespassed into one of the Ruby instance_method methods args, Visibility to find matching instance methods against visibility, boolean if true only find methods not matching supplied visibility not)
Deprecated
since 10.0.
Get a list of all instance methods names of the provided visibility unless not is true, then getService all methods which are not the provided |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | instanceMethods(IRubyObject[] args, Visibility visibility, boolean obj, boolean not)
Deprecated
since 10.0.
|
| public RubyArray | instanceMethods(ThreadContext context, IRubyObject[] args, Visibility visibility, boolean obj, boolean not)
|
| public RubyArray | instanceMethods(Visibility visibility, boolean includeSuper, boolean obj, boolean not)
Deprecated
since 10.0.
|
| private RubyArray | instanceMethods(ThreadContext context, Visibility visibility, boolean includeSuper, boolean obj, boolean not)
|
| public void | |
| public void | |
| protected void | |
| protected void | |
| private void | |
| protected void | |
| protected void | |
| public boolean | isClass()
Overrides org. Implements org. Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way. |
| public boolean | Returns: true if true, false if falseThe class var to determine "is defined?" name)Is class var defined? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | isMethodBuiltin(String methodName)
Return true if the given method is defined on this class and is a builtin, i.e. a method built-in to JRuby and loaded during its core boot process. |
| public boolean | isModule()
Overrides org. Implements org. Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way. |
| public boolean | |
| public boolean | |
| private boolean | isReifiable(RubyClass Object, RubyClass superClass)
Determine if a new child of the given class can have its variables reified. |
| protected boolean | |
| protected boolean | |
| public boolean | |
| public boolean | |
| public static boolean | |
| public static boolean | |
| private static RubyModule. | |
| private static IRubyObject | iterateConstantNoConstMissing(ThreadContext context, String name, RubyModule init, boolean inherit, boolean loadConstant)
|
| public < class or module types T extends RubyModule> T | Returns: itself for composblae APImethod to determine kind-of status kindOfSet the method for determining whether an Object is a kind of the supplied type. |
| public static TypePopulator | |
| public static void | |
| public static void | |
| public IRubyObject | |
| public RubyBoolean | |
| public RubyBoolean | |
| public IRubyObject | |
| public IRubyObject | |
| protected void | |
| private void | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | module_eval(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public static RubyArray | nesting(ThreadContext context, IRubyObject recv, Block block)
Return an array of nested modules or classes. |
| public static Map | |
| protected final MethodHandle | |
| public IncludedModuleWrapper | Returns: The module wrapper
Deprecated
Create a wrapper to use for including the specified module into this one. |
| public final IRubyObject | newMethod(IRubyObject receiver, String methodName, boolean bound, Visibility visibility)
Deprecated
since 10.0.
|
| public final IRubyObject | newMethod(IRubyObject receiver, String methodName, StaticScope refinedScope, boolean bound, Visibility visibility)
Deprecated
since 10.0.
|
| public final IRubyObject | newMethod(IRubyObject receiver, final String methodName, boolean bound, Visibility visibility, boolean respondToMissing)
Deprecated
since 10.0.
|
| public final IRubyObject | newMethod(IRubyObject receiver, final String methodName, StaticScope scope, boolean bound, Visibility visibility, boolean respondToMissing)
Deprecated
since 10.0.
|
| public IRubyObject | newMethod(IRubyObject receiver, final String methodName, boolean bound, Visibility visibility, boolean respondToMissing, boolean priv)
Deprecated
since 10.0.
|
| public IRubyObject | newMethod(IRubyObject receiver, final String methodName, StaticScope scope, boolean bound, Visibility visibility, boolean respondToMissing, boolean priv)
Deprecated
since 10.0.
|
| protected IRubyObject | newMethod(ThreadContext context, IRubyObject receiver, final String methodName, StaticScope scope, boolean bound, Visibility visibility, boolean respondToMissing, boolean priv)
|
| public static RubyModule | |
| public static RubyModule | newModule(Ruby runtime, String name, RubyModule parent, boolean setParent, String file, int line)
Deprecated
since 10.0.
|
| public static RubyModule | newModule(ThreadContext context, String name, RubyModule parent, boolean setParent, String file, int line)
rb_module_new/rb_define_module_id/rb_name_class/rb_set_class_path This is used by IR to define a new module. |
| public static RubyModule | |
| public static RubyModule | |
| public static Map | |
| public static Map | |
| public IRubyObject | op_cmp(ThreadContext context, IRubyObject obj)
Overrides org. rb_mod_cmp |
| public IRubyObject | |
| public RubyBoolean | op_eqq(ThreadContext context, IRubyObject obj)
Overrides org. Implements org. rb_mod_eqq |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. rb_obj_equal Will by default use identity equality to compare objects. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| pack-priv final void | populateInstanceMethodNames(ThreadContext context, final Set<String> seen, final RubyArray<T extends IRubyObject> ary, Visibility visibility, boolean obj, boolean not, boolean recur)
|
| public IRubyObject | |
| public RubyModule | |
| public RubyModule | |
| public IRubyObject | |
| public void | |
| public void | prependModule(ThreadContext context, RubyModule
The module to include module)Prepend a new module to this module or class. |
| public void | |
| public RubyModule | |
| public RubyModule | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | private_instance_methods(ThreadContext context, IRubyObject[] args)
rb_class_private_instance_methods |
| public IRubyObject | |
| public IRubyObject | |
| private RubyModule | Returns: The new module wrapper resulting from this includethe current thread context context, RubyModule The hierarchy target above which to include the wrapped module insertAbove, RubyModule The module to wrap and include moduleToInclude)Actually proceed with including the specified module above the given target in a hierarchy. |
| private RubyModule | Returns: The new module wrapper resulting from this prependThe hierarchy target below which to include the wrapped module insertBelow, RubyModule The module to wrap and prepend moduleToPrepend)Actually proceed with prepending the specified module below the given target in a hierarchy. |
| public RubyArray | |
| public RubyArray | protected_instance_methods(ThreadContext context, IRubyObject[] args)
rb_class_protected_instance_methods |
| public IRubyObject | |
| public IRubyObject | |
| public RubyModule | |
| public RubyModule | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyArray | |
| public RubyArray | |
| public RubyArray | |
| public IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public boolean | |
| public void | |
| public void | putAlias(ThreadContext context, String id, DynamicMethod method, String oldName)
Note Not safe for target methods that super, since the frame class will not reflect original source. |
| public void | |
| public void | putAlias(ThreadContext context, String id, CacheEntry entry, String oldName)
Alias the method contained in the given CacheEntry as a new entry in this module. |
| public DynamicMethod | |
| public DynamicMethod | Returns: methodthe current thread context context, String identifier string (8859_1). Matching entry in symbol table. id, DynamicMethod method)Note Internal API - only public as its used by generated code! |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private CacheEntry | refinedMethodOriginalMethodEntry(RubyModule overlay, String id, boolean cacheUndef, CacheEntry entry)
|
| public IRubyObject | |
| private static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyModule | |
| private void | |
| public final synchronized void | |
| public IRubyObject | |
| public IRubyObject | |
| public void | |
| public CacheEntry | |
| public final IRubyObject | |
| pack-priv IRubyObject | |
| public boolean | |
| public boolean | |
| public DynamicMethod | Returns: The method, or UndefinedMethod if not foundThe name of the method to search for name)Search through this module and supermodules for method definitions. |
| public IRubyObject | |
| public RubyString | |
| public RubyString | |
| public RubyString | |
| public RubyString | Returns: a properly encoded class name.Note getId() is only really valid for ASCII values. This should be favored over using it. Generate a fully-qualified class name or a #-style name for anonymous and singleton classes which is properly encoded. |
| protected RubyModule | |
| private CacheEntry | |
| public IRubyObject | Returns: the value of the specified internal variable if found, else nullthe internal variable name name)Behaves similarly to |
| public final DynamicMethod | Returns: The method, or UndefinedMethod if not foundThe name of the method to search for name)Search through this module and supermodules for method definitions. |
| protected DynamicMethod | |
| public CacheEntry | |
| public DynamicMethod | |
| public DynamicMethod | searchMethodLateral(String id)
Deprecated
Searches for a method up until the superclass, but include modules. |
| private RubyClass | |
| private RubyModule | |
| public CacheEntry | Returns: the CacheEntry corresponding to the method and this class's serial numberthe method name name)Search for the named method in this class and in superclasses, and if found return the CacheEntry representing the method and this class's serial number. |
| public final CacheEntry | Returns: The method, or UndefinedMethod if not foundThe name of the method to search for id, boolean Flag for caching UndefinedMethod. This should normally be true. cacheUndef)Search through this module and supermodules for method definitions. |
| private CacheEntry | |
| private CacheEntry | Returns: The method, or UndefinedMethod if not foundThe name of the method to search for id, final boolean Flag for caching UndefinedMethod. This should normally be true. cacheUndef)Search through this module and supermodules for method definitions after |
| public CacheEntry | Returns: the method or UndefinedMethodthe method name name, StaticScope the scope containing refinements to search refinedScope)Search for the named method in this class and in superclasses applying refinements from the given scope. |
| public IRubyObject | |
| private boolean | setAutoloadConstant(ThreadContext context, String name, IRubyObject value, String file, int line)
Set an Object as a defined constant in autoloading. |
| public void | setBaseName(String
the new base name of the class name)
Deprecated
since 10.0. Use
org. instead.
Set the base name of the class. |
| public void | setCacheProxy(boolean cacheProxy)
Set whether this Java proxy class should try to keep its instances idempotent and alive using the ObjectProxyCache. |
| pack-priv void | setClassIndex(ClassIndex
the ClassIndex for this type classIndex)
Deprecated
since 10.0. Use
org. instead.
Set the ClassIndex for this core class. |
| public IRubyObject | |
| public IRubyObject | setClassVar(ThreadContext context, String
The variable name to set name, IRubyObject The value to set it to value)Set the named class variable to the given value, provided freeze allows setting it. |
| public IRubyObject | |
| public IRubyObject | Returns: The result of setting the variable.The name to assign name, IRubyObject The value to assign to it; if an unnamed Module, also set its basename to name value)Set the named constant on this module. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | Returns: The result of setting the variable.The name to assign name, IRubyObject The value to assign to it; if an unnamed Module, also set its basename to name value, boolean whether a constant is private (hidden). This parameter is only for asserting it is explicitly
private. If it is false the entry may still remain private if the constant was already private
and its value is being updated. hidden, boolean warn, String file, int line)Set the named constant on this module. |
| public IRubyObject | |
| public IRubyObject | Returns: The result of setting the variable.The name to assign name, IRubyObject The value to assign to it; if an unnamed Module, also set its basename to name value)Set the named constant on this module. |
| public final void | |
| public final void | |
| public void | setInternalModuleVariable(final String
the internal variable name name, final IRubyObject the internal variable value value)Behaves similarly to |
| public void | setJavaProxy(boolean javaProxy)
Set whether this class is associated with (i.e. a proxy for) a normal Java class or interface. |
| public void | |
| public void | |
| public void | setMethodVisibility(ThreadContext context, IRubyObject[] methods, Visibility visibility)
set_method_visibility |
| public void | |
| private void | |
| public void | |
| public void | setSuperClass(RubyClass superClass)
Deprecated
since 10.0. Use
RubyModule#superClass(RubyClass) instead.
|
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | storeConstant(String name, IRubyObject value, boolean hidden, String file, int line)
Deprecated
since 10.0.
|
| public IRubyObject | storeConstant(ThreadContext context, String name, IRubyObject value, boolean hidden, String file, int line)
|
| public IRubyObject | |
| private IRubyObject | storeConstant(ThreadContext context, String name, IRubyObject value, boolean hidden, boolean deprecated)
|
| public RubyClass | |
| public < class or module type T extends RubyModule> T | Returns: itself for composable APIto be set superClass)Set this module/class super class. |
| public RubySymbol | |
| public RubySymbol | Returns: a properly encoded non-anonymous class path as a Symbol, or null.Generate a fully-qualified class name or a #-style name as a Symbol. |
| public void | |
| public void | |
| public < A module or class T extends RubyModule> T | |
| public IRubyObject | |
| public static boolean | |
| public RubyString | |
| public IRubyObject | |
| public <T> T | toJava(Class<T>
The target type to which the object should be converted. target)Overrides org. Implements org. Convert the object to the specified Java class, if possible. |
| public void | |
| public RubyModule | |
| public IRubyObject | |
| public static String | |
| public void | undefineMethod(String name)
Deprecated
since 10.0. Use
RubyModule#undefMethods(ThreadContext, String. instead.
|
| public <T extends RubyModule> T | Returns: this type for composable APIthe methods to undefine names)Undefine a method from this type. |
| public static RubyModule | |
| public static RubyModule | |
| public void | |
| private void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static void | |
| private static void | |
| private static void | |
| public boolean | |
| protected final String | |
| private String | |
| protected final String | |
| protected String | |
| protected String | |
| protected final String | |
| protected final String | Returns: the id for this valid constant name.object to verify as a valid constant. name)Validates name is a valid constant name and returns its id string. |
| protected final String | |
| private final String | |
| private RubyModule | |
| private static void | |
| private void |