| java.lang.Object org.jruby.RubyObject
All known Subclasses: org.jruby.RubyMethod, org.jruby.RubyModule, org.jruby.RubyArray, org.jruby.RubyThreadGroup, org.jruby.RubyFileStat, org.jruby.RubyNumeric, org.jruby.javasupport.JavaObject, org.jruby.RubyIO, org.jruby.RubyArgsFile, org.jruby.RubyMatchData, org.jruby.RubyRegexp, org.jruby.RubyHash, org.jruby.RubyString, org.jruby.RubyStruct, org.jruby.RubyRange, org.jruby.RubyStringScanner, org.jruby.RubyIconv, org.jruby.RubyThread, org.jruby.RubyProc, org.jruby.javasupport.proxy.JavaProxyReflectionObject, org.jruby.RubyBoolean, org.jruby.javasupport.JavaAccessibleObject, org.jruby.RubyTime, org.jruby.RubyBinding, org.jruby.RubyException, org.jruby.RubyEnumerator, org.jruby.RubyDir, org.jruby.RubyNil, org.jruby.RubyClassPathVariable, org.jruby.RubyStringIO, org.jruby.RubySymbol,
Inner Class :public class Finalizer implements Finalizable | |
Method Summary | |
public void | addFinalizer(RubyProc finalizer) | public IRubyObject | anyToString() | public RubyString | asString() | public String | asSymbol() | public void | attachToObjectSpace() | public void | callInit(IRubyObject[] args, Block block) | public IRubyObject | callMethod(ThreadContext context, String name, IRubyObject[] args) | public IRubyObject | callMethod(ThreadContext context, String name, IRubyObject[] args, Block block) | public IRubyObject | callMethod(ThreadContext context, String name, IRubyObject[] args, CallType callType) | public IRubyObject | callMethod(ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block) | public IRubyObject | callMethod(ThreadContext context, int methodIndex, String name, IRubyObject arg) | public IRubyObject | callMethod(ThreadContext context, int methodIndex, String name, IRubyObject[] args) | public IRubyObject | callMethod(ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType) | public IRubyObject | callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType) | public IRubyObject | callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block) | public IRubyObject | callMethod(ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block) | public IRubyObject | callMethod(ThreadContext context, String name) | public IRubyObject | callMethod(ThreadContext context, int methodIndex, String name) | public IRubyObject | callMethod(ThreadContext context, String name, Block block) | public IRubyObject | callMethod(ThreadContext context, String name, IRubyObject arg) | public static IRubyObject | callMethodMissing(ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, int methodIndex, IRubyObject[] args, IRubyObject self, CallType callType, Block block) | public static IRubyObject | callMethodMissing(ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block) | public IRubyObject | callSuper(ThreadContext context, IRubyObject[] args, Block block) | public IRubyObject | checkArrayType() | protected void | checkFrozen() | public IRubyObject | checkStringType() | public IRubyObject | compilerCallMethod(ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block) | public IRubyObject | compilerCallMethodWithIndex(ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block) Used by the compiler to ease calling indexed methods, also to handle visibility. | public RubyArray | convertToArray() | public RubyFloat | convertToFloat() | public RubyHash | convertToHash() | public RubyInteger | convertToInteger() | public RubyString | convertToString() | public IRubyObject | convertToType(RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise) | public IRubyObject | convertToType(RubyClass targetType, int convertMethodIndex, boolean raise) | public IRubyObject | convertToType(RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough) | public IRubyObject | convertToTypeWithCheck(RubyClass targetType, int convertMethodIndex, String convertMethod) | public static RubyClass | createObjectClass(Ruby runtime, RubyClass objectClass) | public synchronized Object | dataGetStruct() | public synchronized void | dataWrapStruct(Object obj) | public IRubyObject | display(IRubyObject[] args) | protected IRubyObject | doClone() | public IRubyObject | dup() | public boolean | eql(IRubyObject other) rb_eql
this method is not defind for Ruby objects directly. | final public boolean | eqlInternal(ThreadContext context, IRubyObject other) | public IRubyObject | equal(IRubyObject other) | final public IRubyObject | equalInternal(ThreadContext context, IRubyObject other) | public boolean | equals(Object other) This method is just a wrapper around the Ruby "==" method,
provided so that RubyObjects can be used as keys in the Java
HashMap object underlying RubyHash. | public IRubyObject | evalSimple(ThreadContext context, IRubyObject src, String file) | public IRubyObject | evalUnder(RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line) | public IRubyObject | evalWithBinding(ThreadContext context, IRubyObject src, IRubyObject scope, String file, int lineNumber) | public IRubyObject | extend(IRubyObject[] args) | public IRubyObject | freeze() Freeze an object. | public RubyBoolean | frozen() | public IRubyObject | getInstanceVariable(String name) | public Map | getInstanceVariables() | public Map | getInstanceVariablesSnapshot() Returns an unmodifiable snapshot of the current state of instance variables. | public Class | getJavaClass() | final public RubyClass | getMetaClass() if exist return the meta-class else return the type of the object. | public int | getNativeTypeIndex() This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are. | public Ruby | getRuntime() Getter for property ruby. | public RubyClass | getSingletonClass() | public RubyClass | getSingletonClassClone() | public RubyClass | getType() | public RubyFixnum | hash() | public int | hashCode() | public synchronized RubyFixnum | id() Return the internal id of an object. | public synchronized RubyFixnum | id_deprecated() | public IRubyObject | infectBy(IRubyObject obj) | public IRubyObject | inherited(IRubyObject arg, Block block) | public static void | initCopy(IRubyObject clone, IRubyObject original) | public IRubyObject | initialize(IRubyObject[] args, Block block) | public IRubyObject | initialize_copy(IRubyObject original) | public IRubyObject | inspect() | public Iterator | instanceVariableNames() | public IRubyObject | instance_eval(IRubyObject[] args, Block block) | public IRubyObject | instance_exec(IRubyObject[] args, Block block) | public RubyBoolean | instance_of(IRubyObject type) | public IRubyObject | instance_variable_get(IRubyObject var) | public IRubyObject | instance_variable_set(IRubyObject var, IRubyObject value) | public RubyArray | instance_variables() | final public boolean | isFalse() | public boolean | isFrozen() Gets the frozen. | public boolean | isImmediate() | public boolean | isKindOf(RubyModule type) | public boolean | isNil() | public boolean | isSingleton() | public boolean | isTaint() Gets the taint. | final public boolean | isTrue() | public RubyBoolean | kind_of(IRubyObject type) | public RubyClass | makeMetaClass(RubyClass superClass, SinglyLinkedList parentCRef) Create a new meta class. | public IRubyObject | match(IRubyObject arg) | public IRubyObject | method(IRubyObject symbol) | public IRubyObject | methods(IRubyObject[] args) | public IRubyObject | nil_p() | public IRubyObject | obj_equal(IRubyObject obj) | public IRubyObject | private_methods(IRubyObject[] args) | public IRubyObject | protected_methods(IRubyObject[] args) | public IRubyObject | public_methods(IRubyObject[] args) | public static void | puts(Object obj) | public IRubyObject | rbClone(Block unusedBlock) | public void | removeFinalizers() | public IRubyObject | removeInstanceVariable(String name) | public IRubyObject | remove_instance_variable(IRubyObject name, Block block) | public RubyBoolean | respond_to(IRubyObject[] args) respond_to?( aSymbol, includePriv=false ) -> true or false
Returns true if this object responds to the given method. | public boolean | respondsTo(String name) | public Map | safeGetInstanceVariables() | public boolean | safeHasInstanceVariables() | public IRubyObject | send(IRubyObject[] args, Block block) send( aSymbol [, args ]* ) -> anObject
Invokes the method identified by aSymbol, passing it any arguments
specified. | public void | setFrozen(boolean frozen) Sets the frozen. | public IRubyObject | setInstanceVariable(String name, IRubyObject value, String taintError, String freezeError) | public IRubyObject | setInstanceVariable(String name, IRubyObject value) | public void | setInstanceVariables(Map instanceVariables) | public void | setMetaClass(RubyClass metaClass) | public void | setTaint(boolean taint) Sets the taint. | public RubyArray | singleton_methods(IRubyObject[] args) | public IRubyObject | specificEval(RubyModule mod, IRubyObject[] args, Block block) | public IRubyObject | taint() | public RubyBoolean | tainted() | protected void | testFrozen(String message) | public String | toString() | public IRubyObject | to_s() | public static String | trueFalseNil(IRubyObject v) | public static String | trueFalseNil(String v) | public RubyClass | type() | public RubyClass | type_deprecated() | public IRubyObject | untaint() |
instanceVariables | protected Map instanceVariables(Code) | | |
isTrue | protected boolean isTrue(Code) | | |
attachToObjectSpace | public void attachToObjectSpace()(Code) | | |
checkFrozen | protected void checkFrozen()(Code) | | |
convertToType | public IRubyObject convertToType(RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)(Code) | | |
eql | public boolean eql(IRubyObject other)(Code) | | rb_eql
this method is not defind for Ruby objects directly.
notably overriden by RubyFixnum, RubyString, RubySymbol - these do a short-circuit calls.
see: rb_any_cmp() in hash.c
do not confuse this method with eql_p methods (which it calls by default), eql is mainly used for hash key comparison
|
equals | public boolean equals(Object other)(Code) | | This method is just a wrapper around the Ruby "==" method,
provided so that RubyObjects can be used as keys in the Java
HashMap object underlying RubyHash.
|
getInstanceVariables | public Map getInstanceVariables()(Code) | | |
getInstanceVariablesSnapshot | public Map getInstanceVariablesSnapshot()(Code) | | Returns an unmodifiable snapshot of the current state of instance variables.
This method synchronizes access to avoid deadlocks.
|
getMetaClass | final public RubyClass getMetaClass()(Code) | | if exist return the meta-class else return the type of the object.
|
getNativeTypeIndex | public int getNativeTypeIndex()(Code) | | This is overridden in the other concrete Java builtins to provide a fast way
to determine what type they are.
|
getRuntime | public Ruby getRuntime()(Code) | | Getter for property ruby.
Value of property ruby. |
getSingletonClass | public RubyClass getSingletonClass()(Code) | | rb_singleton_class
|
getSingletonClassClone | public RubyClass getSingletonClassClone()(Code) | | rb_singleton_class_clone
|
hashCode | public int hashCode()(Code) | | |
id | public synchronized RubyFixnum id()(Code) | | Return the internal id of an object.
CRuby function: rb_obj_id
|
isFalse | final public boolean isFalse()(Code) | | |
isFrozen | public boolean isFrozen()(Code) | | Gets the frozen.
Returns a boolean |
isImmediate | public boolean isImmediate()(Code) | | |
isNil | public boolean isNil()(Code) | | |
isSingleton | public boolean isSingleton()(Code) | | |
isTaint | public boolean isTaint()(Code) | | Gets the taint.
Returns a boolean |
isTrue | final public boolean isTrue()(Code) | | |
rbClone | public IRubyObject rbClone(Block unusedBlock)(Code) | | rb_obj_clone
should be overriden only by: Proc, Method, UnboundedMethod, Binding
|
removeFinalizers | public void removeFinalizers()(Code) | | |
respond_to | public RubyBoolean respond_to(IRubyObject[] args)(Code) | | respond_to?( aSymbol, includePriv=false ) -> true or false
Returns true if this object responds to the given method. Private
methods are included in the search only if the optional second
parameter evaluates to true.
true if this responds to the given method |
safeGetInstanceVariables | public Map safeGetInstanceVariables()(Code) | | |
safeHasInstanceVariables | public boolean safeHasInstanceVariables()(Code) | | |
send | public IRubyObject send(IRubyObject[] args, Block block)(Code) | | send( aSymbol [, args ]* ) -> anObject
Invokes the method identified by aSymbol, passing it any arguments
specified. You can use __send__ if the name send clashes with an
existing method in this object.
class Klass
def hello(*args)
"Hello " + args.join(' ')
end
end
k = Klass.new
k.send :hello, "gentle", "readers"
the result of invoking the method identified by aSymbol. |
setFrozen | public void setFrozen(boolean frozen)(Code) | | Sets the frozen.
Parameters: frozen - The frozen to set |
setInstanceVariables | public void setInstanceVariables(Map instanceVariables)(Code) | | |
setTaint | public void setTaint(boolean taint)(Code) | | Sets the taint.
Parameters: taint - The taint to set |
testFrozen | protected void testFrozen(String message)(Code) | | rb_frozen_class_p
|
|
|