public class UndefinedValue extends Operand implements IRubyObject
| Modifier and Type | Field and Description |
|---|---|
static UndefinedValue |
UNDEFINED |
EMPTY_ARRAYNULL_ARRAY| Modifier and Type | Method and Description |
|---|---|
void |
addFinalizer(IRubyObject finalizer) |
void |
addUsedVariables(List<Variable> l)
Append the list of variables used in this operand to the input list -- force every operand
to implement this because a missing implementation can cause bad failures.
|
IRubyObject |
anyToString() |
String |
asJavaString()
Convert the object into a symbol name if possible.
|
RubyString |
asString()
rb_obj_as_string
|
IRubyObject |
callMethod(ThreadContext context,
int methodIndex,
String name)
Deprecated.
|
IRubyObject |
callMethod(ThreadContext context,
int methodIndex,
String name,
IRubyObject arg)
Deprecated.
|
IRubyObject |
callMethod(ThreadContext context,
String name) |
IRubyObject |
callMethod(ThreadContext context,
String name,
IRubyObject arg) |
IRubyObject |
callMethod(ThreadContext context,
String name,
IRubyObject[] args) |
IRubyObject |
callMethod(ThreadContext context,
String name,
IRubyObject[] args,
Block block) |
IRubyObject |
callSuper(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated.
|
boolean |
canCopyPropagate()
Can we replace every use of a variable 'v' that contains the value of this operand
with the operand itself? This takes importance when there are at least two uses
of 'v' within this scope.
|
IRubyObject |
checkArrayType() |
IRubyObject |
checkCallMethod(ThreadContext context,
String name) |
IRubyObject |
checkStringType() |
IRubyObject |
checkStringType19() |
Operand |
cloneForInlining(CloneInfo ii) |
RubyArray |
convertToArray()
Methods which perform to_xxx if the object has such a method
|
RubyFloat |
convertToFloat() |
RubyHash |
convertToHash() |
RubyInteger |
convertToInteger() |
RubyInteger |
convertToInteger(int convertMethodIndex,
String convertMethod)
Deprecated.
|
RubyInteger |
convertToInteger(String convertMethod) |
RubyString |
convertToString() |
void |
copySpecialInstanceVariables(IRubyObject clone) |
Object |
dataGetStruct()
Our version of Data_Get_Struct.
|
Object |
dataGetStructChecked() |
void |
dataWrapStruct(Object obj)
Our version of Data_Wrap_Struct.
|
IRubyObject |
dup()
RubyMethod dup.
|
boolean |
eql(IRubyObject other) |
InstanceVariables |
getInstanceVariables() |
InternalVariables |
getInternalVariables() |
Class |
getJavaClass()
RubyMethod getJavaClass.
|
RubyClass |
getMetaClass()
RubyMethod getRubyClass.
|
OperandType |
getOperandType() |
Ruby |
getRuntime()
RubyMethod getRuntime.
|
RubyClass |
getSingletonClass()
RubyMethod getSingletonClass.
|
RubyClass |
getType()
RubyMethod getType.
|
Object |
getVariable(int index) |
int |
getVariableCount() |
List<Variable<Object>> |
getVariableList() |
List<String> |
getVariableNameList() |
boolean |
hasVariables()
Returns true if object has any variables, defined as:
instance variables
class variables
constants
internal variables, such as those used when marshalling Ranges and Exceptions
|
IRubyObject |
id() |
IRubyObject |
infectBy(IRubyObject obj)
Infect this object using the taint of another object
|
IRubyObject |
inspect()
RubyMethod inspect.
|
boolean |
isClass() |
boolean |
isFrozen()
RubyMethod isFrozen.
|
boolean |
isImmediate() |
boolean |
isModule() |
boolean |
isNil()
RubyMethod isNil.
|
boolean |
isSpecialConst() |
boolean |
isTaint()
RubyMethod isTaint.
|
boolean |
isTrue() |
boolean |
isUntrusted()
RubyMethod isUntrusted.
|
IRubyObject |
op_eqq(ThreadContext context,
IRubyObject other) |
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other) |
IRubyObject |
rbClone()
RubyMethod rbClone.
|
void |
removeFinalizers() |
boolean |
respondsTo(String string)
RubyMethod respondsTo.
|
boolean |
respondsToMissing(String string)
RubyMethod respondsTo.
|
boolean |
respondsToMissing(String string,
boolean priv)
RubyMethod respondsTo.
|
Object |
retrieve(ThreadContext context,
IRubyObject self,
StaticScope currScope,
DynamicScope currDynScope,
Object[] temp) |
void |
setFrozen(boolean b)
RubyMethod setFrozen.
|
void |
setTaint(boolean b)
RubyMethod setTaint.
|
void |
setUntrusted(boolean b)
RubyMethod setUntrusted.
|
void |
setVariable(int index,
Object value) |
void |
syncVariables(IRubyObject source)
Sets object's variables to those in the supplied object,
removing/replacing any previously defined variables of the same name.
|
void |
syncVariables(List<Variable<Object>> variables)
Deprecated.
|
Object |
toJava(Class cls)
Convert the object to the specified Java class, if possible.
|
String |
toString() |
void |
visit(IRVisitor visitor) |
encode, getSimplifiedOperand, getValue, hasKnownValuepublic static final UndefinedValue UNDEFINED
public OperandType getOperandType()
getOperandType in class Operandpublic void addUsedVariables(List<Variable> l)
OperandaddUsedVariables in class Operandpublic Operand cloneForInlining(CloneInfo ii)
cloneForInlining in class Operandpublic boolean canCopyPropagate()
OperandcanCopyPropagate in class Operandpublic Object retrieve(ThreadContext context, IRubyObject self, StaticScope currScope, DynamicScope currDynScope, Object[] temp)
@Deprecated public IRubyObject callSuper(ThreadContext context, IRubyObject[] args, Block block)
callSuper in interface IRubyObjectpublic IRubyObject callMethod(ThreadContext context, String name)
callMethod in interface IRubyObjectpublic IRubyObject callMethod(ThreadContext context, String name, IRubyObject arg)
callMethod in interface IRubyObjectpublic IRubyObject callMethod(ThreadContext context, String name, IRubyObject[] args)
callMethod in interface IRubyObjectpublic IRubyObject callMethod(ThreadContext context, String name, IRubyObject[] args, Block block)
callMethod in interface IRubyObject@Deprecated public IRubyObject callMethod(ThreadContext context, int methodIndex, String name)
callMethod in interface IRubyObject@Deprecated public IRubyObject callMethod(ThreadContext context, int methodIndex, String name, IRubyObject arg)
callMethod in interface IRubyObjectpublic IRubyObject checkCallMethod(ThreadContext context, String name)
checkCallMethod in interface IRubyObjectpublic boolean isNil()
IRubyObjectisNil in interface IRubyObjectpublic boolean isTrue()
isTrue in interface IRubyObjectpublic boolean isTaint()
isTaint in interface IRubyObjectpublic void setTaint(boolean b)
setTaint in interface IRubyObjectb - public IRubyObject infectBy(IRubyObject obj)
infectBy in interface IRubyObjectobj - public boolean isFrozen()
isFrozen in interface IRubyObjectpublic void setFrozen(boolean b)
setFrozen in interface IRubyObjectb - public boolean isUntrusted()
isUntrusted in interface IRubyObjectpublic void setUntrusted(boolean b)
setUntrusted in interface IRubyObjectb - public boolean isImmediate()
isImmediate in interface IRubyObjectpublic boolean isSpecialConst()
isSpecialConst in interface IRubyObjectpublic RubyClass getMetaClass()
getMetaClass in interface IRubyObjectpublic RubyClass getSingletonClass()
getSingletonClass in interface IRubyObjectpublic RubyClass getType()
getType in interface IRubyObjectpublic boolean respondsTo(String string)
respondsTo in interface IRubyObjectstring - public boolean respondsToMissing(String string)
respondsToMissing in interface IRubyObjectstring - public boolean respondsToMissing(String string, boolean priv)
respondsToMissing in interface IRubyObjectstring - public Ruby getRuntime()
getRuntime in interface IRubyObjectpublic Class getJavaClass()
getJavaClass in interface IRubyObjectpublic String asJavaString()
asJavaString in interface IRubyObjectpublic RubyString asString()
asString in interface IRubyObjectpublic RubyArray convertToArray()
convertToArray in interface IRubyObjectpublic RubyHash convertToHash()
convertToHash in interface IRubyObjectpublic RubyFloat convertToFloat()
convertToFloat in interface IRubyObjectpublic RubyInteger convertToInteger()
convertToInteger in interface IRubyObject@Deprecated public RubyInteger convertToInteger(int convertMethodIndex, String convertMethod)
convertToInteger in interface IRubyObjectpublic RubyInteger convertToInteger(String convertMethod)
convertToInteger in interface IRubyObjectpublic RubyString convertToString()
convertToString in interface IRubyObjectpublic IRubyObject anyToString()
anyToString in interface IRubyObjectpublic IRubyObject checkStringType()
checkStringType in interface IRubyObjectpublic IRubyObject checkStringType19()
checkStringType19 in interface IRubyObjectpublic IRubyObject checkArrayType()
checkArrayType in interface IRubyObjectpublic Object toJava(Class cls)
toJava in interface IRubyObjectcls - The target type to which the object should be converted.public IRubyObject dup()
dup in interface IRubyObjectpublic IRubyObject inspect()
inspect in interface IRubyObjectpublic IRubyObject rbClone()
rbClone in interface IRubyObjectpublic boolean isModule()
isModule in interface IRubyObject(someObject instanceof RubyModule) instead.public boolean isClass()
isClass in interface IRubyObject(someObject instanceof RubyClass/MetaClass) instead.public void dataWrapStruct(Object obj)
dataWrapStruct in interface IRubyObjectobj - the object to wrappublic Object dataGetStruct()
dataGetStruct in interface IRubyObjectpublic Object dataGetStructChecked()
dataGetStructChecked in interface IRubyObjectpublic IRubyObject id()
id in interface IRubyObjectpublic IRubyObject op_equal(ThreadContext context, IRubyObject other)
op_equal in interface IRubyObjectpublic IRubyObject op_eqq(ThreadContext context, IRubyObject other)
op_eqq in interface IRubyObjectpublic boolean eql(IRubyObject other)
eql in interface IRubyObjectpublic void addFinalizer(IRubyObject finalizer)
addFinalizer in interface IRubyObjectpublic void removeFinalizers()
removeFinalizers in interface IRubyObjectpublic boolean hasVariables()
hasVariables in interface IRubyObjectpublic int getVariableCount()
getVariableCount in interface IRubyObject@Deprecated public void syncVariables(List<Variable<Object>> variables)
syncVariables in interface IRubyObjectvariables - the variables to be set for objectpublic void syncVariables(IRubyObject source)
syncVariables in interface IRubyObjectsource - the source object containing the variables to syncpublic List<Variable<Object>> getVariableList()
getVariableList in interface IRubyObjectpublic InstanceVariables getInstanceVariables()
getInstanceVariables in interface IRubyObjectpublic InternalVariables getInternalVariables()
getInternalVariables in interface IRubyObjectpublic List<String> getVariableNameList()
getVariableNameList in interface IRubyObjectpublic void copySpecialInstanceVariables(IRubyObject clone)
copySpecialInstanceVariables in interface IRubyObjectpublic Object getVariable(int index)
getVariable in interface IRubyObjectpublic void setVariable(int index,
Object value)
setVariable in interface IRubyObjectCopyright © 2001-2015 JRuby. All Rights Reserved.