public final class BasicObjectStub
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicObjectStub.DummyInstanceVariables |
static class |
BasicObjectStub.DummyInternalVariables |
| Modifier and Type | Field and Description |
|---|---|
static InternalVariables |
DUMMY_INTERNAL_VARIABLES |
| Constructor and Description |
|---|
BasicObjectStub() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addFinalizer(IRubyObject self,
IRubyObject finalizer) |
static IRubyObject |
anyToString(IRubyObject self) |
static java.lang.String |
asJavaString(IRubyObject self) |
static RubyString |
asString(IRubyObject self) |
static IRubyObject |
callMethod(IRubyObject self,
ThreadContext context,
int methodIndex,
java.lang.String name) |
static IRubyObject |
callMethod(IRubyObject self,
ThreadContext context,
int methodIndex,
java.lang.String name,
IRubyObject arg) |
static IRubyObject |
callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name) |
static IRubyObject |
callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name,
IRubyObject arg) |
static IRubyObject |
callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name,
IRubyObject[] args) |
static IRubyObject |
callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name,
IRubyObject[] args,
Block block) |
static IRubyObject |
callSuper(IRubyObject self,
ThreadContext context,
IRubyObject[] args,
Block block) |
static IRubyObject |
checkArrayType(IRubyObject self) |
static IRubyObject |
checkStringType(IRubyObject self) |
static RubyArray |
convertToArray(IRubyObject self) |
static RubyFloat |
convertToFloat(IRubyObject self) |
static RubyHash |
convertToHash(IRubyObject self) |
static RubyInteger |
convertToInteger(IRubyObject self) |
static RubyInteger |
convertToInteger(IRubyObject self,
int convertMethodIndex,
java.lang.String convertMethod) |
static RubyInteger |
convertToInteger(IRubyObject self,
java.lang.String convertMethod) |
static RubyString |
convertToString(IRubyObject self) |
static void |
copySpecialInstanceVariables(IRubyObject self,
IRubyObject clone) |
static java.lang.Object |
dataGetStruct(IRubyObject self) |
static java.lang.Object |
dataGetStructChecked(IRubyObject self) |
static void |
dataWrapStruct(IRubyObject self,
java.lang.Object obj) |
static IRubyObject |
dup(IRubyObject self) |
static boolean |
eql(IRubyObject self,
IRubyObject other) |
static InstanceVariables |
getInstanceVariables(IRubyObject self) |
static InternalVariables |
getInternalVariables(IRubyObject self) |
static java.lang.Class |
getJavaClass(IRubyObject self) |
static RubyClass |
getMetaClass(IRubyObject self) |
static Ruby |
getRuntime(IRubyObject self) |
static RubyClass |
getSingletonClass(IRubyObject self) |
static RubyClass |
getType(IRubyObject self) |
static java.lang.Object |
getVariable(IRubyObject self,
int index) |
static int |
getVariableCount(IRubyObject self) |
static java.util.List<Variable<java.lang.Object>> |
getVariableList(IRubyObject self) |
static java.util.List<java.lang.String> |
getVariableNameList(IRubyObject self) |
static boolean |
hasVariables(IRubyObject self) |
static IRubyObject |
id(IRubyObject self) |
static IRubyObject |
infectBy(IRubyObject self,
IRubyObject obj) |
static IRubyObject |
inspect(IRubyObject self) |
private static java.lang.StringBuilder |
inspectObj(IRubyObject self,
java.lang.StringBuilder part)
inspect_obj
The internal helper method that takes care of the part of the
inspection that inspects instance variables.
|
static boolean |
isClass(IRubyObject self) |
static boolean |
isFrozen(IRubyObject self) |
static boolean |
isImmediate(IRubyObject self) |
static boolean |
isModule(IRubyObject self) |
static boolean |
isNil(IRubyObject self) |
static boolean |
isTaint(IRubyObject self) |
static boolean |
isTrue(IRubyObject self) |
static boolean |
isUntrusted(IRubyObject self) |
static IRubyObject |
op_eqq(IRubyObject self,
ThreadContext context,
IRubyObject other) |
static IRubyObject |
op_equal(IRubyObject self,
ThreadContext context,
IRubyObject other) |
static IRubyObject |
rbClone(IRubyObject self) |
static void |
removeFinalizers(IRubyObject self) |
static boolean |
respondsTo(IRubyObject self,
java.lang.String name) |
static void |
setFrozen(IRubyObject self,
boolean b) |
static void |
setTaint(IRubyObject self,
boolean b) |
static void |
setUntrusted(IRubyObject self,
boolean b) |
static void |
setVariable(IRubyObject self,
int index,
java.lang.Object value) |
static void |
syncVariables(IRubyObject self,
java.util.List<Variable<java.lang.Object>> variables) |
static java.lang.Object |
toJava(IRubyObject self,
java.lang.Class cls) |
public static final InternalVariables DUMMY_INTERNAL_VARIABLES
public static IRubyObject callSuper(IRubyObject self, ThreadContext context, IRubyObject[] args, Block block)
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, java.lang.String name)
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, java.lang.String name, IRubyObject arg)
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, java.lang.String name, IRubyObject[] args)
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, java.lang.String name, IRubyObject[] args, Block block)
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, int methodIndex, java.lang.String name)
public static IRubyObject callMethod(IRubyObject self, ThreadContext context, int methodIndex, java.lang.String name, IRubyObject arg)
public static boolean isNil(IRubyObject self)
public static boolean isTrue(IRubyObject self)
public static boolean isTaint(IRubyObject self)
public static void setTaint(IRubyObject self, boolean b)
public static IRubyObject infectBy(IRubyObject self, IRubyObject obj)
public static boolean isFrozen(IRubyObject self)
public static void setFrozen(IRubyObject self, boolean b)
public static boolean isUntrusted(IRubyObject self)
public static void setUntrusted(IRubyObject self, boolean b)
public static boolean isImmediate(IRubyObject self)
public static RubyClass getMetaClass(IRubyObject self)
public static RubyClass getSingletonClass(IRubyObject self)
public static RubyClass getType(IRubyObject self)
public static boolean respondsTo(IRubyObject self, java.lang.String name)
public static Ruby getRuntime(IRubyObject self)
public static java.lang.Class getJavaClass(IRubyObject self)
public static java.lang.String asJavaString(IRubyObject self)
public static RubyString asString(IRubyObject self)
public static RubyArray convertToArray(IRubyObject self)
public static RubyHash convertToHash(IRubyObject self)
public static RubyFloat convertToFloat(IRubyObject self)
public static RubyInteger convertToInteger(IRubyObject self)
public static RubyInteger convertToInteger(IRubyObject self, int convertMethodIndex, java.lang.String convertMethod)
public static RubyInteger convertToInteger(IRubyObject self, java.lang.String convertMethod)
public static RubyString convertToString(IRubyObject self)
public static IRubyObject anyToString(IRubyObject self)
public static IRubyObject checkStringType(IRubyObject self)
public static IRubyObject checkArrayType(IRubyObject self)
public static java.lang.Object toJava(IRubyObject self, java.lang.Class cls)
public static IRubyObject dup(IRubyObject self)
public static IRubyObject inspect(IRubyObject self)
private static java.lang.StringBuilder inspectObj(IRubyObject self, java.lang.StringBuilder part)
public static IRubyObject rbClone(IRubyObject self)
public static boolean isModule(IRubyObject self)
public static boolean isClass(IRubyObject self)
public static void dataWrapStruct(IRubyObject self, java.lang.Object obj)
public static java.lang.Object dataGetStruct(IRubyObject self)
public static java.lang.Object dataGetStructChecked(IRubyObject self)
public static IRubyObject id(IRubyObject self)
public static IRubyObject op_equal(IRubyObject self, ThreadContext context, IRubyObject other)
public static IRubyObject op_eqq(IRubyObject self, ThreadContext context, IRubyObject other)
public static boolean eql(IRubyObject self, IRubyObject other)
public static void addFinalizer(IRubyObject self, IRubyObject finalizer)
public static void removeFinalizers(IRubyObject self)
public static boolean hasVariables(IRubyObject self)
public static int getVariableCount(IRubyObject self)
public static void syncVariables(IRubyObject self, java.util.List<Variable<java.lang.Object>> variables)
public static java.util.List<Variable<java.lang.Object>> getVariableList(IRubyObject self)
public static InstanceVariables getInstanceVariables(IRubyObject self)
public static InternalVariables getInternalVariables(IRubyObject self)
public static java.util.List<java.lang.String> getVariableNameList(IRubyObject self)
public static void copySpecialInstanceVariables(IRubyObject self, IRubyObject clone)
public static java.lang.Object getVariable(IRubyObject self, int index)
public static void setVariable(IRubyObject self, int index, java.lang.Object value)