|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyUndef
public class RubyUndef
Field Summary |
---|
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyUndef()
|
Method Summary | |
---|---|
void |
addFinalizer(RubyProc finalizer)
|
IRubyObject |
anyToString()
|
RubyString |
asString()
rb_obj_as_string |
java.lang.String |
asSymbol()
Convert the object into a symbol name if possible. |
IRubyObject |
callMethod(ThreadContext context,
int methodIndex,
java.lang.String string)
|
IRubyObject |
callMethod(ThreadContext context,
int methodIndex,
java.lang.String name,
IRubyObject arg)
|
IRubyObject |
callMethod(ThreadContext context,
int methodIndex,
java.lang.String name,
IRubyObject[] args)
|
IRubyObject |
callMethod(ThreadContext context,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType)
|
IRubyObject |
callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
IRubyObject |
callMethod(ThreadContext context,
RubyModule rubyclass,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String string)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String string,
Block aBlock)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String string,
IRubyObject arg)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String method,
IRubyObject[] rubyArgs)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String method,
IRubyObject[] rubyArgs,
Block block)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String name,
IRubyObject[] args,
CallType callType)
|
IRubyObject |
callMethod(ThreadContext context,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
IRubyObject |
callSuper(ThreadContext context,
IRubyObject[] args,
Block block)
|
IRubyObject |
checkArrayType()
|
IRubyObject |
checkStringType()
|
IRubyObject |
compilerCallMethod(ThreadContext context,
java.lang.String name,
IRubyObject[] args,
IRubyObject caller,
CallType callType,
Block block)
|
IRubyObject |
compilerCallMethodWithIndex(ThreadContext context,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
IRubyObject caller,
CallType callType,
Block block)
|
RubyArray |
convertToArray()
Methods which perform to_xxx if the object has such a method |
RubyFloat |
convertToFloat()
|
RubyHash |
convertToHash()
|
RubyInteger |
convertToInteger()
|
RubyString |
convertToString()
|
IRubyObject |
convertToType(RubyClass targetType,
int convertMethodIndex,
java.lang.String convertMethod,
boolean raiseOnError)
Converts this object to type 'targetType' using 'convertMethod' method (MRI: convert_type). |
IRubyObject |
convertToType(RubyClass targetType,
int convertMethodIndex,
java.lang.String convertMethod,
boolean raiseOnMissingMethod,
boolean raiseOnWrongTypeResult,
boolean allowNilThrough)
|
IRubyObject |
convertToTypeWithCheck(RubyClass targetType,
int convertMethodIndex,
java.lang.String convertMethod)
Higher level conversion utility similiar to convertToType but it can throw an additional TypeError during conversion (MRI: rb_check_convert_type). |
java.lang.Object |
dataGetStruct()
Our version of Data_Get_Struct. |
void |
dataWrapStruct(java.lang.Object obj)
Our version of Data_Wrap_Struct. |
IRubyObject |
dup()
RubyMethod dup. |
boolean |
eql(IRubyObject other)
|
boolean |
eqlInternal(ThreadContext context,
IRubyObject other)
|
IRubyObject |
equal(IRubyObject other)
|
IRubyObject |
equalInternal(ThreadContext context,
IRubyObject other)
|
IRubyObject |
evalSimple(ThreadContext context,
IRubyObject evalString,
java.lang.String file)
Evaluate the given string. |
IRubyObject |
evalWithBinding(ThreadContext context,
IRubyObject evalString,
IRubyObject binding,
java.lang.String file,
int lineNumber)
Evaluate the given string under the specified binding object. |
IRubyObject |
getInstanceVariable(java.lang.String string)
RubyMethod getInstanceVar. |
java.util.Map |
getInstanceVariables()
|
java.util.Map |
getInstanceVariablesSnapshot()
|
java.lang.Class |
getJavaClass()
RubyMethod getJavaClass. |
RubyClass |
getMetaClass()
RubyMethod getRubyClass. |
int |
getNativeTypeIndex()
Return the ClassIndex value for the native type this object was constructed from. |
Ruby |
getRuntime()
RubyMethod getRuntime. |
RubyClass |
getSingletonClass()
RubyMethod getSingletonClass. |
RubyClass |
getType()
RubyMethod getType. |
RubyFixnum |
id()
|
IRubyObject |
infectBy(IRubyObject obj)
Infect this object using the taint of another object |
IRubyObject |
inspect()
RubyMethod inspect. |
java.util.Iterator |
instanceVariableNames()
|
boolean |
isFrozen()
RubyMethod isFrozen. |
boolean |
isImmediate()
|
boolean |
isKindOf(RubyModule rubyClass)
RubyMethod isKindOf. |
boolean |
isNil()
RubyMethod isNil. |
boolean |
isSingleton()
|
boolean |
isTaint()
RubyMethod isTaint. |
boolean |
isTrue()
|
IRubyObject |
rbClone(Block unusedBlock)
RubyMethod rbClone. |
void |
removeFinalizers()
|
boolean |
respondsTo(java.lang.String string)
RubyMethod respondsTo. |
java.util.Map |
safeGetInstanceVariables()
Gets a copy of the instance variables for this object, if any exist. |
boolean |
safeHasInstanceVariables()
Returns true if the object has any instance variables, false otherwise. |
void |
setFrozen(boolean b)
RubyMethod setFrozen. |
IRubyObject |
setInstanceVariable(java.lang.String string,
IRubyObject rubyObject)
RubyMethod setInstanceVar. |
void |
setInstanceVariables(java.util.Map instanceVariables)
|
void |
setMetaClass(RubyClass metaClass)
|
void |
setTaint(boolean b)
RubyMethod setTaint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RubyUndef()
Method Detail |
---|
public void addFinalizer(RubyProc finalizer)
addFinalizer
in interface IRubyObject
public IRubyObject anyToString()
anyToString
in interface IRubyObject
public RubyString asString()
IRubyObject
asString
in interface IRubyObject
public java.lang.String asSymbol()
IRubyObject
asSymbol
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, RubyModule rubyclass, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, int methodIndex, java.lang.String name, IRubyObject arg)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, int methodIndex, java.lang.String name, IRubyObject[] args)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String name, IRubyObject[] args, CallType callType)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String string)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, int methodIndex, java.lang.String string)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String string, Block aBlock)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String string, IRubyObject arg)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String method, IRubyObject[] rubyArgs)
callMethod
in interface IRubyObject
public IRubyObject callMethod(ThreadContext context, java.lang.String method, IRubyObject[] rubyArgs, Block block)
callMethod
in interface IRubyObject
public IRubyObject callSuper(ThreadContext context, IRubyObject[] args, Block block)
callSuper
in interface IRubyObject
public IRubyObject checkArrayType()
checkArrayType
in interface IRubyObject
public IRubyObject checkStringType()
checkStringType
in interface IRubyObject
public IRubyObject compilerCallMethod(ThreadContext context, java.lang.String name, IRubyObject[] args, IRubyObject caller, CallType callType, Block block)
compilerCallMethod
in interface IRubyObject
public IRubyObject compilerCallMethodWithIndex(ThreadContext context, int methodIndex, java.lang.String name, IRubyObject[] args, IRubyObject caller, CallType callType, Block block)
compilerCallMethodWithIndex
in interface IRubyObject
public RubyArray convertToArray()
IRubyObject
convertToArray
in interface IRubyObject
public RubyFloat convertToFloat()
convertToFloat
in interface IRubyObject
public RubyHash convertToHash()
convertToHash
in interface IRubyObject
public RubyInteger convertToInteger()
convertToInteger
in interface IRubyObject
public RubyString convertToString()
convertToString
in interface IRubyObject
public IRubyObject convertToType(RubyClass targetType, int convertMethodIndex, java.lang.String convertMethod, boolean raiseOnError)
IRubyObject
convertToType
in interface IRubyObject
targetType
- is the type we are trying to convert toconvertMethod
- is the method to be called to try and convert to targeTyperaiseOnError
- will throw an Error if conversion does not work
public IRubyObject convertToType(RubyClass targetType, int convertMethodIndex, java.lang.String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
convertToType
in interface IRubyObject
public IRubyObject convertToTypeWithCheck(RubyClass targetType, int convertMethodIndex, java.lang.String convertMethod)
IRubyObject
convertToTypeWithCheck
in interface IRubyObject
targetType
- is the type we are trying to convert toconvertMethod
- is the method to be called to try and convert to targeType
public java.lang.Object dataGetStruct()
IRubyObject
dataGetStruct
in interface IRubyObject
public void dataWrapStruct(java.lang.Object obj)
IRubyObject
dataWrapStruct
in interface IRubyObject
obj
- the object to wrappublic IRubyObject dup()
IRubyObject
dup
in interface IRubyObject
public boolean eql(IRubyObject other)
eql
in interface IRubyObject
public boolean eqlInternal(ThreadContext context, IRubyObject other)
eqlInternal
in interface IRubyObject
public IRubyObject equal(IRubyObject other)
equal
in interface IRubyObject
public IRubyObject equalInternal(ThreadContext context, IRubyObject other)
equalInternal
in interface IRubyObject
public IRubyObject evalSimple(ThreadContext context, IRubyObject evalString, java.lang.String file)
IRubyObject
evalSimple
in interface IRubyObject
context
- TODOevalString
- The string containing the text to be evaluatedfile
- The filename to use when reporting errors during the evaluation
public IRubyObject evalWithBinding(ThreadContext context, IRubyObject evalString, IRubyObject binding, java.lang.String file, int lineNumber)
IRubyObject
evalWithBinding
in interface IRubyObject
context
- TODOevalString
- The string containing the text to be evaluatedbinding
- The binding object under which to perform the evaluationfile
- The filename to use when reporting errors during the evaluationlineNumber
- is the line number to pretend we are starting from
public IRubyObject getInstanceVariable(java.lang.String string)
IRubyObject
getInstanceVariable
in interface IRubyObject
public java.util.Map getInstanceVariables()
getInstanceVariables
in interface IRubyObject
public java.util.Map getInstanceVariablesSnapshot()
getInstanceVariablesSnapshot
in interface IRubyObject
public java.lang.Class getJavaClass()
IRubyObject
getJavaClass
in interface IRubyObject
public RubyClass getMetaClass()
IRubyObject
getMetaClass
in interface IRubyObject
public int getNativeTypeIndex()
IRubyObject
getNativeTypeIndex
in interface IRubyObject
public Ruby getRuntime()
IRubyObject
getRuntime
in interface IRubyObject
public RubyClass getSingletonClass()
IRubyObject
getSingletonClass
in interface IRubyObject
public RubyClass getType()
IRubyObject
getType
in interface IRubyObject
public RubyFixnum id()
id
in interface IRubyObject
public IRubyObject infectBy(IRubyObject obj)
IRubyObject
infectBy
in interface IRubyObject
public IRubyObject inspect()
IRubyObject
inspect
in interface IRubyObject
public java.util.Iterator instanceVariableNames()
instanceVariableNames
in interface IRubyObject
public boolean isFrozen()
IRubyObject
isFrozen
in interface IRubyObject
public boolean isImmediate()
isImmediate
in interface IRubyObject
public boolean isKindOf(RubyModule rubyClass)
IRubyObject
isKindOf
in interface IRubyObject
public boolean isNil()
IRubyObject
isNil
in interface IRubyObject
public boolean isSingleton()
isSingleton
in interface IRubyObject
public boolean isTaint()
IRubyObject
isTaint
in interface IRubyObject
public boolean isTrue()
isTrue
in interface IRubyObject
public IRubyObject rbClone(Block unusedBlock)
IRubyObject
rbClone
in interface IRubyObject
public void removeFinalizers()
removeFinalizers
in interface IRubyObject
public boolean respondsTo(java.lang.String string)
IRubyObject
respondsTo
in interface IRubyObject
public java.util.Map safeGetInstanceVariables()
IRubyObject
safeGetInstanceVariables
in interface IRubyObject
public boolean safeHasInstanceVariables()
IRubyObject
safeHasInstanceVariables
in interface IRubyObject
public void setFrozen(boolean b)
IRubyObject
setFrozen
in interface IRubyObject
public IRubyObject setInstanceVariable(java.lang.String string, IRubyObject rubyObject)
IRubyObject
setInstanceVariable
in interface IRubyObject
public void setInstanceVariables(java.util.Map instanceVariables)
setInstanceVariables
in interface IRubyObject
public void setMetaClass(RubyClass metaClass)
setMetaClass
in interface IRubyObject
public void setTaint(boolean b)
IRubyObject
setTaint
in interface IRubyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |