org.jruby
Class BasicObjectStub
java.lang.Object
org.jruby.BasicObjectStub
public final class BasicObjectStub
- extends java.lang.Object
Method Summary |
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)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DUMMY_INTERNAL_VARIABLES
public static final InternalVariables DUMMY_INTERNAL_VARIABLES
BasicObjectStub
public BasicObjectStub()
callSuper
public static IRubyObject callSuper(IRubyObject self,
ThreadContext context,
IRubyObject[] args,
Block block)
callMethod
public static IRubyObject callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name)
callMethod
public static IRubyObject callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name,
IRubyObject arg)
callMethod
public static IRubyObject callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name,
IRubyObject[] args)
callMethod
public static IRubyObject callMethod(IRubyObject self,
ThreadContext context,
java.lang.String name,
IRubyObject[] args,
Block block)
callMethod
public static IRubyObject callMethod(IRubyObject self,
ThreadContext context,
int methodIndex,
java.lang.String name)
callMethod
public static IRubyObject callMethod(IRubyObject self,
ThreadContext context,
int methodIndex,
java.lang.String name,
IRubyObject arg)
isNil
public static boolean isNil(IRubyObject self)
isTrue
public static boolean isTrue(IRubyObject self)
isTaint
public static boolean isTaint(IRubyObject self)
setTaint
public static void setTaint(IRubyObject self,
boolean b)
infectBy
public static IRubyObject infectBy(IRubyObject self,
IRubyObject obj)
isFrozen
public static boolean isFrozen(IRubyObject self)
setFrozen
public static void setFrozen(IRubyObject self,
boolean b)
isUntrusted
public static boolean isUntrusted(IRubyObject self)
setUntrusted
public static void setUntrusted(IRubyObject self,
boolean b)
isImmediate
public static boolean isImmediate(IRubyObject self)
getMetaClass
public static RubyClass getMetaClass(IRubyObject self)
getSingletonClass
public static RubyClass getSingletonClass(IRubyObject self)
getType
public static RubyClass getType(IRubyObject self)
respondsTo
public static boolean respondsTo(IRubyObject self,
java.lang.String name)
getRuntime
public static Ruby getRuntime(IRubyObject self)
getJavaClass
public static java.lang.Class getJavaClass(IRubyObject self)
asJavaString
public static java.lang.String asJavaString(IRubyObject self)
asString
public static RubyString asString(IRubyObject self)
convertToArray
public static RubyArray convertToArray(IRubyObject self)
convertToHash
public static RubyHash convertToHash(IRubyObject self)
convertToFloat
public static RubyFloat convertToFloat(IRubyObject self)
convertToInteger
public static RubyInteger convertToInteger(IRubyObject self)
convertToInteger
public static RubyInteger convertToInteger(IRubyObject self,
int convertMethodIndex,
java.lang.String convertMethod)
convertToInteger
public static RubyInteger convertToInteger(IRubyObject self,
java.lang.String convertMethod)
convertToString
public static RubyString convertToString(IRubyObject self)
anyToString
public static IRubyObject anyToString(IRubyObject self)
checkStringType
public static IRubyObject checkStringType(IRubyObject self)
checkArrayType
public static IRubyObject checkArrayType(IRubyObject self)
toJava
public static java.lang.Object toJava(IRubyObject self,
java.lang.Class cls)
dup
public static IRubyObject dup(IRubyObject self)
inspect
public static IRubyObject inspect(IRubyObject self)
rbClone
public static IRubyObject rbClone(IRubyObject self)
isModule
public static boolean isModule(IRubyObject self)
isClass
public static boolean isClass(IRubyObject self)
dataWrapStruct
public static void dataWrapStruct(IRubyObject self,
java.lang.Object obj)
dataGetStruct
public static java.lang.Object dataGetStruct(IRubyObject self)
dataGetStructChecked
public static java.lang.Object dataGetStructChecked(IRubyObject self)
id
public static IRubyObject id(IRubyObject self)
op_equal
public static IRubyObject op_equal(IRubyObject self,
ThreadContext context,
IRubyObject other)
op_eqq
public static IRubyObject op_eqq(IRubyObject self,
ThreadContext context,
IRubyObject other)
eql
public static boolean eql(IRubyObject self,
IRubyObject other)
addFinalizer
public static void addFinalizer(IRubyObject self,
IRubyObject finalizer)
removeFinalizers
public static void removeFinalizers(IRubyObject self)
hasVariables
public static boolean hasVariables(IRubyObject self)
getVariableCount
public static int getVariableCount(IRubyObject self)
syncVariables
public static void syncVariables(IRubyObject self,
java.util.List<Variable<java.lang.Object>> variables)
getVariableList
public static java.util.List<Variable<java.lang.Object>> getVariableList(IRubyObject self)
getInstanceVariables
public static InstanceVariables getInstanceVariables(IRubyObject self)
getInternalVariables
public static InternalVariables getInternalVariables(IRubyObject self)
getVariableNameList
public static java.util.List<java.lang.String> getVariableNameList(IRubyObject self)
copySpecialInstanceVariables
public static void copySpecialInstanceVariables(IRubyObject self,
IRubyObject clone)
getVariable
public static java.lang.Object getVariable(IRubyObject self,
int index)
setVariable
public static void setVariable(IRubyObject self,
int index,
java.lang.Object value)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.