| Modifier and Type | Field and Description |
|---|---|
| public static final IRubyObject[] |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default IRubyObject | |
| public IRubyObject | |
| public static IRubyObject[] | |
| public String | |
| public RubyString | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public default IRubyObject | Returns: the string if so
Deprecated
Use
checkStringType() instead.
is this a string? |
| public RubyArray | |
| public RubyFloat | |
| public RubyHash | |
| public RubyInteger | |
| public RubyInteger | Returns: an integer valuemethod to use e.g. to_i convertMethod)Converts this Ruby object to an Integer. |
| public default RubyInteger | Returns: integerindex convertMethodIndex, String conversion method name convertMethod)
Deprecated
convert this object to an integer |
| public RubyString | |
| public void | |
| public Object | |
| public Object | |
| public void | |
| public IRubyObject | |
| public default IRubyObject | |
| public boolean | |
| public InstanceVariables | |
| public InternalVariables | |
| public Class | |
| public default List | Returns: a mutable list of all marshalable variables (ivar/internal)all marshable values |
| public RubyClass | |
| public Ruby | |
| public RubyClass | |
| public RubyClass | |
| public Object | |
| public int | Returns: the count of all variables (ivar/cvar/constant/internal)how many variables? |
| public List | |
| public List | Returns: a list of all variable names (ivar/cvar/constant/internal)list of all variable names |
| public boolean | Returns: true if object has any variables, else falseReturns true if object has any variables, defined as:
|
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public default IRubyObject | |
| public boolean | Returns: true if an object is Ruby Class instance (note that it will return false for Ruby singleton classes).If is_a? |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if an object is Ruby Module instance (note that it will return false for Ruby Classes).If is_a? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public default void | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | Returns: booleanmethod name string, boolean private? priv)RubyMethod respondsTo. |
| public void | |
| public void | |
| public void | |
| public void | |
| public default RubyClass | |
| public void | syncVariables(List<Variable<Object>>
the variables to be set for object variables)
Deprecated
Sets object's variables to those in the supplied list, removing/replacing any previously defined variables. |
| public void | syncVariables(IRubyObject
the source object containing the variables to sync source)Sets object's variables to those in the supplied object, removing/replacing any previously defined variables of the same name. |
| public < type T> T |
| NULL_ARRAY | back to summary |
|---|---|
| public static final IRubyObject[] NULL_ARRAY | |
| addFinalizer | back to summary |
|---|---|
| public void addFinalizer(IRubyObject finalizer)
Deprecated
| |
| addFinalizer | back to summary |
|---|---|
public default IRubyObject addFinalizer(ThreadContext context, IRubyObject finalizer)
| |
| anyToString | back to summary |
|---|---|
| public IRubyObject anyToString() make this object into a string (hopefully)
| |
| array | back to summary |
|---|---|
| public static IRubyObject[] array(int length) | |
| asJavaString | back to summary |
|---|---|
| public String asJavaString() Convert the object into a symbol name if possible.
| |
| asString | back to summary |
|---|---|
| public RubyString asString() rb_obj_as_string
| |
| callMethod | back to summary |
|---|---|
| public IRubyObject callMethod(ThreadContext context, String name) | |
| callMethod | back to summary |
|---|---|
| public IRubyObject callMethod(ThreadContext context, String name, IRubyObject arg) | |
| callMethod | back to summary |
|---|---|
| public IRubyObject callMethod(ThreadContext context, String name, IRubyObject[] args) | |
| callMethod | back to summary |
|---|---|
| public IRubyObject callMethod(ThreadContext context, String name, IRubyObject[] args, Block block) | |
| callMethod | back to summary |
|---|---|
| public IRubyObject callMethod(ThreadContext context, int methodIndex, String name)
Deprecated
| |
| callMethod | back to summary |
|---|---|
| public IRubyObject callMethod(ThreadContext context, int methodIndex, String name, IRubyObject arg)
Deprecated
| |
| callSuper | back to summary |
|---|---|
| public IRubyObject callSuper(ThreadContext context, IRubyObject[] args, Block block)
Deprecated
| |
| checkArrayType | back to summary |
|---|---|
| public IRubyObject checkArrayType() is this an array if so return it otherwise nil
| |
| checkCallMethod | back to summary |
|---|---|
| public IRubyObject checkCallMethod(ThreadContext context, String name) | |
| checkCallMethod | back to summary |
|---|---|
| public IRubyObject checkCallMethod(ThreadContext context, JavaSites. | |
| checkStringType | back to summary |
|---|---|
| public IRubyObject checkStringType() is this a string if so return it otherwise nil
| |
| checkStringType19 | back to summary |
|---|---|
| public default IRubyObject checkStringType19()
Deprecated Use is this a string?
| |
| convertToArray | back to summary |
|---|---|
| public RubyArray Converts this Ruby object to an Array.
| |
| convertToFloat | back to summary |
|---|---|
| public RubyFloat convertToFloat() Converts this Ruby object to a Float (using to_f).
| |
| convertToHash | back to summary |
|---|---|
| public RubyHash convertToHash() Converts this Ruby object to a Hash.
| |
| convertToInteger | back to summary |
|---|---|
| public RubyInteger convertToInteger() Converts this Ruby object to an Integer. Uses the default conversion method (to_int).
| |
| convertToInteger | back to summary |
|---|---|
| public RubyInteger convertToInteger(String convertMethod) Converts this Ruby object to an Integer.
| |
| convertToInteger | back to summary |
|---|---|
| public default RubyInteger convertToInteger(int convertMethodIndex, String convertMethod)
Deprecated
convert this object to an integer
| |
| convertToString | back to summary |
|---|---|
| public RubyString convertToString() Converts this Ruby object to a String.
| |
| copySpecialInstanceVariables | back to summary |
|---|---|
| public void copySpecialInstanceVariables(IRubyObject clone) | |
| dataGetStruct | back to summary |
|---|---|
| public Object dataGetStruct() Our version of Data_Get_Struct. Returns a wrapped data value if there is one, otherwise returns null.
| |
| dataGetStructChecked | back to summary |
|---|---|
| public Object dataGetStructChecked()
Deprecated
| |
| dataWrapStruct | back to summary |
|---|---|
| public void dataWrapStruct(Object obj) Our version of Data_Wrap_Struct. This method will just set a private pointer to the object provided. This pointer is transient and will not be accessible from Ruby.
| |
| dup | back to summary |
|---|---|
| public IRubyObject dup() RubyMethod dup.
| |
| dup | back to summary |
|---|---|
| public default IRubyObject dup(ThreadContext context) RubyMethod dup.
| |
| eql | back to summary |
|---|---|
| public boolean eql(IRubyObject other) | |
| getInstanceVariables | back to summary |
|---|---|
| public InstanceVariables getInstanceVariables() | |
| getInternalVariables | back to summary |
|---|---|
| public InternalVariables getInternalVariables() | |
| getJavaClass | back to summary |
|---|---|
| public Class RubyMethod getJavaClass.
| |
| getMarshalVariableList | back to summary |
|---|---|
| public default List all marshable values | |
| getMetaClass | back to summary |
|---|---|
| public RubyClass getMetaClass() Retrieve | |
| getRuntime | back to summary |
|---|---|
| public Ruby getRuntime() RubyMethod getRuntime.
| |
| getSingletonClass | back to summary |
|---|---|
| public RubyClass getSingletonClass() Retrieve
| |
| getType | back to summary |
|---|---|
| public RubyClass getType() RubyMethod getType.
| |
| getVariable | back to summary |
|---|---|
| public Object getVariable(int index) | |
| getVariableCount | back to summary |
|---|---|
| public int getVariableCount() how many variables?
| |
| getVariableList | back to summary |
|---|---|
| public List list of all variables | |
| getVariableNameList | back to summary |
|---|---|
| public List list of all variable names | |
| hasVariables | back to summary |
|---|---|
| public boolean hasVariables() Returns true if object has any variables, defined as:
| |
| id | back to summary |
|---|---|
| public IRubyObject id() The id of the object
| |
| infectBy | back to summary |
|---|---|
| public IRubyObject infectBy(IRubyObject obj)
Deprecated
| |
| inspect | back to summary |
|---|---|
| public IRubyObject inspect() RubyMethod inspect.
| |
| inspect | back to summary |
|---|---|
| public default IRubyObject inspect(ThreadContext context) | |
| isClass | back to summary |
|---|---|
| public boolean isClass() If is_a? semantics is required, use
| |
| isFrozen | back to summary |
|---|---|
| public boolean isFrozen() RubyMethod isFrozen.
| |
| isImmediate | back to summary |
|---|---|
| public boolean isImmediate() Is this an immediate object
| |
| isModule | back to summary |
|---|---|
| public boolean isModule() If is_a? semantics is required, use
| |
| isNil | back to summary |
|---|---|
| public boolean isNil() Check whether this object is nil. MRI: NIL_P macro
| |
| isSpecialConst | back to summary |
|---|---|
| public boolean isSpecialConst() Is this a special constant
| |
| isTaint | back to summary |
|---|---|
| public boolean isTaint()
Deprecated
| |
| isTrue | back to summary |
|---|---|
| public boolean isTrue() Check whether this object is truthy.
| |
| isUntrusted | back to summary |
|---|---|
| public boolean isUntrusted() RubyMethod isUntrusted.
| |
| marshalLiveVariables | back to summary |
|---|---|
| public default void marshalLiveVariables(MarshalDumper stream, ThreadContext context, RubyOutputStream out) | |
| op_eqq | back to summary |
|---|---|
| public IRubyObject op_eqq(ThreadContext context, IRubyObject other) | |
| op_equal | back to summary |
|---|---|
| public IRubyObject op_equal(ThreadContext context, IRubyObject other) | |
| rbClone | back to summary |
|---|---|
| public IRubyObject rbClone() RubyMethod clone.
| |
| removeFinalizers | back to summary |
|---|---|
| public void removeFinalizers() | |
| respondsTo | back to summary |
|---|---|
| public boolean respondsTo(String string) RubyMethod respondsTo.
| |
| respondsToMissing | back to summary |
|---|---|
| public boolean respondsToMissing(String string) RubyMethod respondsTo.
| |
| respondsToMissing | back to summary |
|---|---|
| public boolean respondsToMissing(String string, boolean priv) RubyMethod respondsTo.
| |
| setFrozen | back to summary |
|---|---|
| public void setFrozen(boolean b) RubyMethod setFrozen.
| |
| setTaint | back to summary |
|---|---|
| public void setTaint(boolean taint)
Deprecated
| |
| setUntrusted | back to summary |
|---|---|
| public void setUntrusted(boolean b) RubyMethod setUntrusted.
| |
| setVariable | back to summary |
|---|---|
| public void setVariable(int index, Object value) | |
| singletonClass | back to summary |
|---|---|
public default RubyClass singletonClass(ThreadContext context)
| |
| syncVariables | back to summary |
|---|---|
| public void syncVariables(List<Variable<Object>> variables)
Deprecated
Sets object's variables to those in the supplied list, removing/replacing any previously defined variables. Applies to all variable types (ivar/cvar/constant/internal).
| |
| syncVariables | back to summary |
|---|---|
| public void syncVariables(IRubyObject source) Sets object's variables to those in the supplied object, removing/replacing any previously defined variables of the same name. Applies to all variable types (ivar/cvar/constant/internal).
| |
| toJava | back to summary |
|---|---|
| public <T> T toJava(Class<T> type) Convert the object to the specified Java class, if possible.
| |