Top Inners Fields Constructors Methods
org.jruby

public final Class BasicObjectStub

extends Object
Class Inheritance
Imports
java.util.Collections, .List, java.util.function.BiConsumer, org.jruby.runtime.Helpers, .Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, .InstanceVariables, .InternalVariables, .RubyJavaObject, .Variable, org.jruby.util.TypeConverter

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final InternalVariables

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
public static IRubyObject
public static String
public static RubyString
public static IRubyObject
public static IRubyObject
public static IRubyObject
callMethod(IRubyObject self, ThreadContext context, String name, IRubyObject[] args)

public static IRubyObject
callMethod(IRubyObject self, ThreadContext context, String name, IRubyObject[] args, Block block)

public static IRubyObject
callMethod(IRubyObject self, ThreadContext context, int methodIndex, String name)

public static IRubyObject
callMethod(IRubyObject self, ThreadContext context, int methodIndex, String name, IRubyObject arg)

public static IRubyObject
callSuper(IRubyObject self, ThreadContext context, IRubyObject[] args, Block block)

public static IRubyObject
public static IRubyObject
public static RubyArray<T extends IRubyObject>
public static RubyFloat
public static RubyHash
public static RubyInteger
public static RubyInteger
convertToInteger(IRubyObject self, int convertMethodIndex, String convertMethod)

public static RubyInteger
convertToInteger(IRubyObject self, String convertMethod)

public static RubyString
public static void
public static Object
public static Object
public static void
public static IRubyObject
public static boolean
public static InstanceVariables
public static InternalVariables
public static Class<T>
public static RubyClass
public static Ruby
public static RubyClass
public static RubyClass
public static Object
getVariable(IRubyObject self, int index)

public static int
public static List<Variable<Object>>
public static List<String>
public static boolean
public static IRubyObject
public static IRubyObject
public static IRubyObject
private static StringBuilder
inspectObj(IRubyObject self, StringBuilder part)

inspect_obj The internal helper method that takes care of the part of the inspection that inspects instance variables.

public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static boolean
public static IRubyObject
public static IRubyObject
public static IRubyObject
public static void
public static boolean
public static void
setFrozen(IRubyObject self, boolean b)

public static void
setTaint(IRubyObject self, boolean b)

public static void
setUntrusted(IRubyObject self, boolean b)

public static void
setVariable(IRubyObject self, int index, Object value)

public static void
public static Object
toJava(IRubyObject self, Class<T> cls)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DUMMY_INTERNAL_VARIABLESback to summary
public static final InternalVariables DUMMY_INTERNAL_VARIABLES

Constructor Detail

BasicObjectStubback to summary
public BasicObjectStub()

Method Detail

addFinalizerback to summary
public static void addFinalizer(IRubyObject self, IRubyObject finalizer)
anyToStringback to summary
public static IRubyObject anyToString(IRubyObject self)
asJavaStringback to summary
public static String asJavaString(IRubyObject self)
asStringback to summary
public static RubyString asString(IRubyObject self)
callMethodback to summary
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, String name)
callMethodback to summary
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, String name, IRubyObject arg)
callMethodback to summary
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, String name, IRubyObject[] args)
callMethodback to summary
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, String name, IRubyObject[] args, Block block)
callMethodback to summary
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, int methodIndex, String name)
callMethodback to summary
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, int methodIndex, String name, IRubyObject arg)
callSuperback to summary
public static IRubyObject callSuper(IRubyObject self, ThreadContext context, IRubyObject[] args, Block block)
checkArrayTypeback to summary
public static IRubyObject checkArrayType(IRubyObject self)
checkStringTypeback to summary
public static IRubyObject checkStringType(IRubyObject self)
convertToArrayback to summary
public static RubyArray<T extends IRubyObject> convertToArray(IRubyObject self)
convertToFloatback to summary
public static RubyFloat convertToFloat(IRubyObject self)
convertToHashback to summary
public static RubyHash convertToHash(IRubyObject self)
convertToIntegerback to summary
public static RubyInteger convertToInteger(IRubyObject self)
convertToIntegerback to summary
public static RubyInteger convertToInteger(IRubyObject self, int convertMethodIndex, String convertMethod)
convertToIntegerback to summary
public static RubyInteger convertToInteger(IRubyObject self, String convertMethod)
convertToStringback to summary
public static RubyString convertToString(IRubyObject self)
copySpecialInstanceVariablesback to summary
public static void copySpecialInstanceVariables(IRubyObject self, IRubyObject clone)
dataGetStructback to summary
public static Object dataGetStruct(IRubyObject self)
dataGetStructCheckedback to summary
public static Object dataGetStructChecked(IRubyObject self)
dataWrapStructback to summary
public static void dataWrapStruct(IRubyObject self, Object obj)
dupback to summary
public static IRubyObject dup(IRubyObject self)
eqlback to summary
public static boolean eql(IRubyObject self, IRubyObject other)
getInstanceVariablesback to summary
public static InstanceVariables getInstanceVariables(IRubyObject self)
getInternalVariablesback to summary
public static InternalVariables getInternalVariables(IRubyObject self)
getJavaClassback to summary
public static Class<T> getJavaClass(IRubyObject self)
getMetaClassback to summary
public static RubyClass getMetaClass(IRubyObject self)
getRuntimeback to summary
public static Ruby getRuntime(IRubyObject self)
getSingletonClassback to summary
public static RubyClass getSingletonClass(IRubyObject self)
getTypeback to summary
public static RubyClass getType(IRubyObject self)
getVariableback to summary
public static Object getVariable(IRubyObject self, int index)
getVariableCountback to summary
public static int getVariableCount(IRubyObject self)
getVariableListback to summary
public static List<Variable<Object>> getVariableList(IRubyObject self)
getVariableNameListback to summary
public static List<String> getVariableNameList(IRubyObject self)
hasVariablesback to summary
public static boolean hasVariables(IRubyObject self)
idback to summary
public static IRubyObject id(IRubyObject self)
infectByback to summary
public static IRubyObject infectBy(IRubyObject self, IRubyObject obj)
inspectback to summary
public static IRubyObject inspect(IRubyObject self)
inspectObjback to summary
private static StringBuilder inspectObj(IRubyObject self, StringBuilder part)

inspect_obj The internal helper method that takes care of the part of the inspection that inspects instance variables.

isClassback to summary
public static boolean isClass(IRubyObject self)
isFrozenback to summary
public static boolean isFrozen(IRubyObject self)
isImmediateback to summary
public static boolean isImmediate(IRubyObject self)
isModuleback to summary
public static boolean isModule(IRubyObject self)
isNilback to summary
public static boolean isNil(IRubyObject self)
isTaintback to summary
public static boolean isTaint(IRubyObject self)
isTrueback to summary
public static boolean isTrue(IRubyObject self)
isUntrustedback to summary
public static boolean isUntrusted(IRubyObject self)
op_eqqback to summary
public static IRubyObject op_eqq(IRubyObject self, ThreadContext context, IRubyObject other)
op_equalback to summary
public static IRubyObject op_equal(IRubyObject self, ThreadContext context, IRubyObject other)
rbCloneback to summary
public static IRubyObject rbClone(IRubyObject self)
removeFinalizersback to summary
public static void removeFinalizers(IRubyObject self)
respondsToback to summary
public static boolean respondsTo(IRubyObject self, String name)
setFrozenback to summary
public static void setFrozen(IRubyObject self, boolean b)
setTaintback to summary
public static void setTaint(IRubyObject self, boolean b)
setUntrustedback to summary
public static void setUntrusted(IRubyObject self, boolean b)
setVariableback to summary
public static void setVariable(IRubyObject self, int index, Object value)
syncVariablesback to summary
public static void syncVariables(IRubyObject self, List<Variable<Object>> variables)
toJavaback to summary
public static Object toJava(IRubyObject self, Class<T> cls)
org.jruby back to summary

public Class BasicObjectStub.DummyInstanceVariables

extends Object
implements InstanceVariables
Class Inheritance
All Implemented Interfaces
org.jruby.runtime.builtin.InstanceVariables
Annotations
@SuppressWarnings:deprecation

Field Summary

Modifier and TypeField and Description
private final IRubyObject

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
copyInstanceVariablesInto(InstanceVariables
the thing to copy into
other
)

Implements org.jruby.runtime.builtin.InstanceVariables.copyInstanceVariablesInto.

Copies all instance variables from the given object into the receiver

public IRubyObject
public boolean
public IRubyObject
public IRubyObject
getInstanceVariable(String
the name of an instance variable
name
)

Implements org.jruby.runtime.builtin.InstanceVariables.getInstanceVariable.

Returns the named instance variable if present, else null.

public List<Variable<IRubyObject>>
public List<String>
public boolean
hasInstanceVariable(String
the name of an instance variable
name
)

Implements org.jruby.runtime.builtin.InstanceVariables.hasInstanceVariable.

Returns true if object has the named instance variable.

public IRubyObject
removeInstanceVariable(String
the name of the variable to remove
name
)

Implements org.jruby.runtime.builtin.InstanceVariables.removeInstanceVariable.

Removes the named instance variable, if present, returning its value.

public IRubyObject
setInstanceVariable(String
the name of an instance variable
name
,
IRubyObject
the value to be set
value
)

Implements org.jruby.runtime.builtin.InstanceVariables.setInstanceVariable.

Sets the named instance variable to the specified value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nilback to summary
private final IRubyObject nil

Constructor Detail

DummyInstanceVariablesback to summary
public DummyInstanceVariables(IRubyObject nil)

Method Detail

copyInstanceVariablesIntoback to summary
public void copyInstanceVariablesInto(InstanceVariables other)

Implements org.jruby.runtime.builtin.InstanceVariables.copyInstanceVariablesInto.

Doc from org.jruby.runtime.builtin.InstanceVariables.copyInstanceVariablesInto.

Copies all instance variables from the given object into the receiver

Parameters
other:InstanceVariables

the thing to copy into

fastGetInstanceVariableback to summary
public IRubyObject fastGetInstanceVariable(String internedName)

Implements org.jruby.runtime.builtin.InstanceVariables.fastGetInstanceVariable.

fastHasInstanceVariableback to summary
public boolean fastHasInstanceVariable(String internedName)

Implements org.jruby.runtime.builtin.InstanceVariables.fastHasInstanceVariable.

fastSetInstanceVariableback to summary
public IRubyObject fastSetInstanceVariable(String internedName, IRubyObject value)

Implements org.jruby.runtime.builtin.InstanceVariables.fastSetInstanceVariable.

getInstanceVariableback to summary
public IRubyObject getInstanceVariable(String name)

Implements org.jruby.runtime.builtin.InstanceVariables.getInstanceVariable.

Doc from org.jruby.runtime.builtin.InstanceVariables.getInstanceVariable.

Returns the named instance variable if present, else null.

Parameters
name:String

the name of an instance variable

Returns:IRubyObject

the named instance variable if present, else null

getInstanceVariableListback to summary
public List<Variable<IRubyObject>> getInstanceVariableList()

Implements org.jruby.runtime.builtin.InstanceVariables.getInstanceVariableList.

Doc from org.jruby.runtime.builtin.InstanceVariables.getInstanceVariableList.

list of instance variables

Returns:List<Variable<IRubyObject>>

instance variables

getInstanceVariableNameListback to summary
public List<String> getInstanceVariableNameList()

Implements org.jruby.runtime.builtin.InstanceVariables.getInstanceVariableNameList.

Doc from org.jruby.runtime.builtin.InstanceVariables.getInstanceVariableNameList.

list of instance variables as Strings

Returns:List<String>

instance variable names

hasInstanceVariableback to summary
public boolean hasInstanceVariable(String name)

Implements org.jruby.runtime.builtin.InstanceVariables.hasInstanceVariable.

Doc from org.jruby.runtime.builtin.InstanceVariables.hasInstanceVariable.

Returns true if object has the named instance variable.

Parameters
name:String

the name of an instance variable

Returns:boolean

true if object has the named instance variable.

removeInstanceVariableback to summary
public IRubyObject removeInstanceVariable(String name)

Implements org.jruby.runtime.builtin.InstanceVariables.removeInstanceVariable.

Doc from org.jruby.runtime.builtin.InstanceVariables.removeInstanceVariable.

Removes the named instance variable, if present, returning its value.

Parameters
name:String

the name of the variable to remove

Returns:IRubyObject

the value of the remove variable, if present; else null

setInstanceVariableback to summary
public IRubyObject setInstanceVariable(String name, IRubyObject value)

Implements org.jruby.runtime.builtin.InstanceVariables.setInstanceVariable.

Doc from org.jruby.runtime.builtin.InstanceVariables.setInstanceVariable.

Sets the named instance variable to the specified value.

Parameters
name:String

the name of an instance variable

value:IRubyObject

the value to be set

Returns:IRubyObject

value

org.jruby back to summary

public Class BasicObjectStub.DummyInternalVariables

extends Object
implements InternalVariables
Class Inheritance
All Implemented Interfaces
org.jruby.runtime.builtin.InternalVariables
Annotations
@SuppressWarnings:deprecation

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
public boolean
public void
public Object
getInternalVariable(String
the name of an internal variable
name
)

Implements org.jruby.runtime.builtin.InternalVariables.getInternalVariable.

Returns the named internal variable if present, else null.

public boolean
hasInternalVariable(String
the name of an internal variable
name
)

Implements org.jruby.runtime.builtin.InternalVariables.hasInternalVariable.

Returns true if object has the named internal variable.

public Object
removeInternalVariable(String
the name of the variable to remove
name
)

Implements org.jruby.runtime.builtin.InternalVariables.removeInternalVariable.

Removes the named internal variable, if present, returning its value.

public void
setInternalVariable(String
the name of an internal variable
name
,
Object
the value to be set
value
)

Implements org.jruby.runtime.builtin.InternalVariables.setInternalVariable.

Sets the named internal variable to the specified value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DummyInternalVariablesback to summary
public DummyInternalVariables()

Method Detail

fastGetInternalVariableback to summary
public Object fastGetInternalVariable(String internedName)

Implements org.jruby.runtime.builtin.InternalVariables.fastGetInternalVariable.

fastHasInternalVariableback to summary
public boolean fastHasInternalVariable(String internedName)

Implements org.jruby.runtime.builtin.InternalVariables.fastHasInternalVariable.

fastSetInternalVariableback to summary
public void fastSetInternalVariable(String internedName, Object value)

Implements org.jruby.runtime.builtin.InternalVariables.fastSetInternalVariable.

getInternalVariableback to summary
public Object getInternalVariable(String name)

Implements org.jruby.runtime.builtin.InternalVariables.getInternalVariable.

Doc from org.jruby.runtime.builtin.InternalVariables.getInternalVariable.

Returns the named internal variable if present, else null. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of an internal variable

Returns:Object

the named internal variable if present, else null

hasInternalVariableback to summary
public boolean hasInternalVariable(String name)

Implements org.jruby.runtime.builtin.InternalVariables.hasInternalVariable.

Doc from org.jruby.runtime.builtin.InternalVariables.hasInternalVariable.

Returns true if object has the named internal variable. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of an internal variable

Returns:boolean

true if object has the named internal variable.

removeInternalVariableback to summary
public Object removeInternalVariable(String name)

Implements org.jruby.runtime.builtin.InternalVariables.removeInternalVariable.

Doc from org.jruby.runtime.builtin.InternalVariables.removeInternalVariable.

Removes the named internal variable, if present, returning its value. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of the variable to remove

Returns:Object

the value of the remove variable, if present; else null

setInternalVariableback to summary
public void setInternalVariable(String name, Object value)

Implements org.jruby.runtime.builtin.InternalVariables.setInternalVariable.

Doc from org.jruby.runtime.builtin.InternalVariables.setInternalVariable.

Sets the named internal variable to the specified value. Use only for internal variables (not ivar/cvar/constant).

Parameters
name:String

the name of an internal variable

value:Object

the value to be set