Top Description Inners Fields Constructors Methods
org.jruby

public Class RubyObject

extends RubyBasicObject
Class Inheritance
Known Direct Subclasses
org.jruby.RubyObject.Data, org.jruby.RubyObjectSpace.AbstractWeakMap, org.jruby.RubyProc, org.jruby.RubyProcess.RubyStatus, org.jruby.RubyRandomBase, org.jruby.RubyRange, org.jruby.RubyRegexp, org.jruby.RubyString, org.jruby.RubySymbol, org.jruby.RubyThread, org.jruby.RubyThread.Backtrace, org.jruby.RubyThread.Location, org.jruby.RubyThreadGroup, org.jruby.RubyTime, org.jruby.RubyYielder, org.jruby.ext.date.RubyDate, org.jruby.ext.digest.RubyDigest.DigestClass, org.jruby.ext.digest.RubyDigest.DigestBase, org.jruby.ext.ffi.Enums, org.jruby.ext.ffi.MemoryObject, org.jruby.ext.ffi.StructLayout.Field, org.jruby.ext.ffi.StructLayout.ArrayProxy, org.jruby.ext.ffi.Type, org.jruby.ext.ffi.jffi.DynamicLibrary, org.jruby.ext.ffi.jffi.VariadicInvoker, org.jruby.ext.fiber.ThreadFiber, org.jruby.ext.jruby.JRubyExecutionContextLocal, org.jruby.ext.jruby.JRubyObjectInputStream, org.jruby.ext.monitor.Monitor, org.jruby.ext.pathname.RubyPathname, org.jruby.ext.ripper.RubyRipper, org.jruby.ext.set.RubySet, org.jruby.ext.socket.Addrinfo, org.jruby.ext.socket.Ifaddr, org.jruby.ext.socket.Option, org.jruby.ext.syslog.RubySyslog, org.jruby.ext.thread.ConditionVariable, org.jruby.ext.thread.Mutex, org.jruby.ext.thread.Queue, org.jruby.ext.tracepoint.TracePoint, org.jruby.ext.zlib.RubyGzipFile, org.jruby.ext.zlib.ZStream, org.jruby.java.proxies.ArrayJavaProxyCreator, org.jruby.java.proxies.JavaProxy, org.jruby.javasupport.JavaObject, org.jruby.javasupport.proxy.JavaProxyReflectionObject, org.jruby.AbstractRubyMethod, org.jruby.RubyArgsFile, org.jruby.RubyArithmeticSequence, org.jruby.RubyArray, org.jruby.RubyBinding, org.jruby.RubyBoolean, org.jruby.RubyChain, org.jruby.RubyClassPathVariable, org.jruby.RubyContinuation, org.jruby.RubyConverter, org.jruby.RubyDir, org.jruby.RubyEncoding, org.jruby.RubyEnumerator, org.jruby.RubyEnumerator.FeedValue, org.jruby.RubyException, org.jruby.RubyFileStat, org.jruby.RubyMatchData, org.jruby.RubyProducer, org.jruby.RubyStruct, org.jruby.RubyGenerator, org.jruby.RubyHash, org.jruby.RubyIO, org.jruby.RubyIOBuffer, org.jruby.RubyModule, org.jruby.RubyNameError.RubyNameErrorMessage, org.jruby.RubyNil, org.jruby.RubyNumeric
Annotations
@JRubyClass
name:Object
include:Kernel
Imports
java.io.IOException, .ObjectInputStream, .ObjectOutputStream, java.util.Set, java.util.function.BiConsumer, org.jruby.anno.JRubyClass, org.jruby.runtime.Block, .ClassIndex, .JavaSites.ObjectSites, .ObjectAllocator, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.marshal.DataType, org.jruby.util.cli.Options

RubyObject represents the implementation of the Object class in Ruby. As such, it defines very few methods of its own, inheriting most from the included Kernel module. Methods that are implemented here, such as "initialize" should be implemented with care; reification of Ruby classes into Java classes can produce conflicting method names in rare cases. See JRUBY-5906 for an example.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private static class

Field Summary

Modifier and TypeField and Description
public static final ObjectAllocator
IVAR_INSPECTING_OBJECT_ALLOCATOR

Allocator that inspects all methods for instance variables and chooses a concrete class to construct based on that.

public static final ObjectAllocator
OBJECT_ALLOCATOR

Default allocator instance for all Ruby objects.

public static final ObjectAllocator
Inherited from org.jruby.RubyBasicObject:
ALL_FBASICOBJECT_ALLOCATORCOMPARE_BY_IDENTITY_FERR_INSECURE_SET_INST_VARFALSE_FFL_USHIFTflagsFROZEN_FIS_OVERLAID_FmetaClassNEVERNIL_FREFINED_MODULE_FSTAMP_OFFSETTAINTED_FUNDEFUSER0_FUSER1_FUSER2_FUSER3_FUSER4_FUSER5_FUSER6_FUSER7_FUSER8_FUSER9_FUSERA_FVAR_TABLE_OFFSETvarTablevarTableStamp

Constructor Summary

AccessConstructor and Description
public
RubyObject(Ruby
the runtime
runtime
,
RubyClass
the metaclass
metaClass
)

Standard path for object creation.

public
RubyObject(RubyClass
the metaclass
metaClass
)

Path for objects that don't enter objectspace.

protected
RubyObject(Ruby runtime, RubyClass metaClass, boolean useObjectSpace, boolean canBeTainted)
Deprecated

protected
RubyObject(Ruby
the runtime
runtime
,
RubyClass
the metaclass
metaClass
,
boolean
to enable object space
useObjectSpace
)

Path for objects who want to decide whether they don't want to be in ObjectSpace even when it is on.

Method Summary

Modifier and TypeMethod and Description
public void
attachToObjectSpace()

Will make sure that this object is added to the current object space.

public final void
callInit(IRubyObject[]
args
args
,
Block
block
block
)

Call the Ruby initialize method with the supplied arguments and block.

public final void
callInit(Block
block
block
)

Call the Ruby initialize method with the supplied arguments and block.

public final void
callInit(IRubyObject
arg0
arg0
,
Block
block
block
)

Call the Ruby initialize method with the supplied arguments and block.

public final void
callInit(IRubyObject
arg0
arg0
,
IRubyObject
arg1
arg1
,
Block
block
block
)

Call the Ruby initialize method with the supplied arguments and block.

public final void
public final void
callInit(ThreadContext context, IRubyObject[] args, Block block)

public final void
callInit(ThreadContext context, Block block)

public final void
callInit(ThreadContext context, IRubyObject arg0, Block block)

public final void
callInit(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)

public final void
callInit(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)

public final IRubyObject
convertToType(RubyClass target, int convertMethodIndex)
Deprecated

public static IRubyObject
dig(ThreadContext context, IRubyObject obj, IRubyObject[] args, int idx)

public static IRubyObject
public static IRubyObject
protected static boolean

Returns:

true if eql
eqlInternal
(final ThreadContext
the thread context
context
,
final IRubyObject
first comparator
a
,
final IRubyObject
second comparator
b
)

Hides org.jruby.RubyBasicObject.eqlInternal.

Helper method for checking equality, first using Java identity equality, and then calling the "eql?" method.

public static boolean

Returns:

true if equal
equalInternal
(final ThreadContext
the thread context
context
,
final IRubyObject
first comparator
a
,
final IRubyObject
second comparator
b
)

Hides org.jruby.RubyBasicObject.equalInternal.

Helper method for checking equality, first using Java identity equality, and then calling the "==" method.

public boolean
equals(Object
object to compare
other
)

Overrides org.jruby.RubyBasicObject.equals.

This override does not do a "checked" dispatch.

private static boolean
fastNumEqualInternal(final ThreadContext context, final IRubyObject a, final IRubyObject b)

public static void
finishObjectClass(RubyClass
the object claass
Object
)

Will create the Ruby class Object in the runtime specified.

public ClassIndex
getNativeClassIndex()

Overrides org.jruby.RubyBasicObject.getNativeClassIndex.

Implements org.jruby.runtime.marshal.CoreObjectType.getNativeClassIndex.

This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are.

public int

Returns:

the hash code
hashCode
()

Overrides org.jruby.RubyBasicObject.hashCode.

This override does not do "checked" dispatch since Object usually has #hash defined.

public static RubyString

Returns:

the string
inspect
(ThreadContext
the thread context
context
,
IRubyObject
the object to inspect
object
)

rb_inspect The internal helper that ensures a RubyString instance is returned so dangerous casting can be omitted Preferred over callMethod(context, "inspect")

private static boolean
private static boolean
private static boolean
public IRubyObject
op_eqq(ThreadContext context, IRubyObject other)

Overrides org.jruby.RubyBasicObject.op_eqq.

Implements org.jruby.runtime.builtin.IRubyObject.op_eqq.

rb_equal The Ruby "===" method is used by default in case/when statements.

public static void
puts(Object
to puts
obj
)
Deprecated no longer used - uses Java's System.out

Simple helper to print any objects.

private void
readObject(ObjectInputStream in)

Hides org.jruby.RubyBasicObject.readObject.

Tries to support Java unserialization of Ruby objects.

private static IRubyObject

Returns:

a new instance of the now-reified class
reifyAndAllocate
(Ruby
the current runtime
runtime
,
RubyClass
the target Ruby class
klass
)

Reify the class and allocate an instance.

private static JavaSites.ObjectSites
sites(ThreadContext context)

Hides org.jruby.RubyBasicObject.sites.

Retrieve the call sites for this class.

public IRubyObject
specificEval(ThreadContext context, RubyModule mod, IRubyObject[] args, Block block, EvalType evalType)
Deprecated

public RubyString

Returns:

the string.
toRubyString
(ThreadContext
thread context this is executing on.
context
)

The default toString method is just a wrapper that calls the Ruby "to_s" method.

public String

Returns:

string representation
toString
()

Overrides java.lang.Object.toString.

The default toString method is just a wrapper that calls the Ruby "to_s" method.

private void
writeObject(ObjectOutputStream out)

Hides org.jruby.RubyBasicObject.writeObject.

Tries to support Java serialization of Ruby objects.

Inherited from org.jruby.RubyBasicObject:
addFinalizeraddFinalizeranyToStringasJavaStringasStringcallMethodcallMethodcallMethodcallMethodcallMethodcallMethodcallMethodcallMethodcallMethodcallSupercheckArrayTypecheckCallMethodcheckCallMethodcheckFrozencheckStringTypecloneSetupcompareToconvertToArrayconvertToFloatconvertToHashconvertToIntegerconvertToIntegerconvertToIntegerconvertToStringcopyInstanceVariablesIntocopySpecialInstanceVariablesdataGetStructdataGetStructCheckeddataWrapStructdecodedefaultToJavadisplaydupdupFinalizerdupSetupensureInstanceVariablesSettableeqleql_peql_pequal_pevalUnderextendfastGetInstanceVariablefastGetInternalVariablefastHasInstanceVariablefastHasInternalVariablefastSetInstanceVariablefastSetInternalVariablefinishBasicObjectClassforEachInstanceVariableforEachInstanceVariableNamefreezefrozen_pgetCurrentContextgetFFIHandlegetFlaggetInstanceEvalClassgetInstanceEvalClassgetInstanceVariablegetInstanceVariableListgetInstanceVariableNameListgetInstanceVariablesgetInternalVariablegetInternalVariablesgetJavaClassgetMarshalVariableListgetMetaClassgetMetaClassgetNativeHandlegetNativeTypeIndexgetObjectIdgetRuntimegetSingletonClassgetSingletonClassClonegetSingletonClassCloneAndAttachgetSingletonClassCloneAndAttachgetTypegetVariablegetVariableCountgetVariableListgetVariableNameListhashhashhashyInspecthasInstanceVariablehasInstanceVariableshasInternalVariablehasVariablesidinfectByinfectByinfectByinitializeinitialize_copyinitialize_copyinspectinspectinspectHashCodeinstance_evalinstance_evalinstance_evalinstance_evalinstance_evalinstance_execinstance_of_pinstance_variable_defined_pinstance_variable_getinstance_variable_setinstance_variablesisBuiltinisClassisFalseisFrozenisImmediateisModuleisNilisSpecialConstisSpecialObjectisTaintisTrueisUntrustedkind_of_pmakeMetaClassmakeMetaClassmakeMetaClassBootstrapmethodmethodmethodmethod_missingmethodsmethodsmethodsImplnil_pnonFixnumHashCodenonFixnumHashCodeOBJ_INIT_COPYobjInitCopyop_cmpop_equalop_matchop_notop_not_equalop_not_matchprivate_methodsprotected_methodspublic_methodsrbClonerbClonerbInspectrecacheBuiltinMethodsremove_instance_variableremoveFinalizersremoveInstanceVariableremoveInternalVariablerespond_to_prespond_to_prespond_to_prespondsTorespondsToMissingrespondsToMissingsendsendsendsendsendsetFFIHandlesetFlagsetFrozensetInstanceVariablesetInternalVariablesetMetaClasssetNativeHandlesetTaintsetUntrustedsetVariablesingleton_methodsingleton_methodsingleton_method_addedsingleton_method_removedsingleton_method_undefinedsingleton_methodssingletonClassspecificEvalspecificEvalspecificEvalspecificEvalsyncVariablessyncVariablestainttainttaintedtainted_ptestFrozentestFrozento_ato_ato_sto_stoJavatrusttypeuntaintuntrustuntrusted_pvalidateInstanceVariablevalidateInstanceVariablevalidateInstanceVariablevariableTableContainsvariableTableFastContainsvariableTableFastFetchvariableTableFastStorevariableTableFetchvariableTableRemovevariableTableStorevariableTableSyncyieldUnderyieldUnder

Field Detail

IVAR_INSPECTING_OBJECT_ALLOCATORback to summary
public static final ObjectAllocator IVAR_INSPECTING_OBJECT_ALLOCATOR

Allocator that inspects all methods for instance variables and chooses a concrete class to construct based on that. This allows using specialized subclasses to hold instance variables in fields rather than always holding them in an array.

OBJECT_ALLOCATORback to summary
public static final ObjectAllocator OBJECT_ALLOCATOR

Default allocator instance for all Ruby objects. The only reason to not use this allocator is if you actually need to have all instances of something be a subclass of RubyObject.

See Also
org.jruby.runtime.ObjectAllocator
REIFYING_OBJECT_ALLOCATORback to summary
public static final ObjectAllocator REIFYING_OBJECT_ALLOCATOR

Constructor Detail

RubyObjectback to summary
public RubyObject(Ruby runtime, RubyClass metaClass)

Standard path for object creation. Objects are entered into ObjectSpace only if ObjectSpace is enabled.

Parameters
runtime:Ruby

the runtime

metaClass:RubyClass

the metaclass

RubyObjectback to summary
public RubyObject(RubyClass metaClass)

Path for objects that don't enter objectspace.

Parameters
metaClass:RubyClass

the metaclass

RubyObjectback to summary
protected RubyObject(Ruby runtime, RubyClass metaClass, boolean useObjectSpace, boolean canBeTainted)

Deprecated

Annotations
@Deprecated
RubyObjectback to summary
protected RubyObject(Ruby runtime, RubyClass metaClass, boolean useObjectSpace)

Path for objects who want to decide whether they don't want to be in ObjectSpace even when it is on. (notably used by objects being considered immediate, they'll always pass false here)

Parameters
runtime:Ruby

the runtime

metaClass:RubyClass

the metaclass

useObjectSpace:boolean

to enable object space

Method Detail

attachToObjectSpaceback to summary
public void attachToObjectSpace()

Will make sure that this object is added to the current object space.

See Also
org.jruby.runtime.ObjectSpace
callInitback to summary
public final void callInit(IRubyObject[] args, Block block)

Call the Ruby initialize method with the supplied arguments and block.

Parameters
args:IRubyObject[]

args

block:Block

block

callInitback to summary
public final void callInit(Block block)

Call the Ruby initialize method with the supplied arguments and block.

Parameters
block:Block

block

callInitback to summary
public final void callInit(IRubyObject arg0, Block block)

Call the Ruby initialize method with the supplied arguments and block.

Parameters
arg0:IRubyObject

arg0

block:Block

block

callInitback to summary
public final void callInit(IRubyObject arg0, IRubyObject arg1, Block block)

Call the Ruby initialize method with the supplied arguments and block.

Parameters
arg0:IRubyObject

arg0

arg1:IRubyObject

arg1

block:Block

block

callInitback to summary
public final void callInit(IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
callInitback to summary
public final void callInit(ThreadContext context, IRubyObject[] args, Block block)
callInitback to summary
public final void callInit(ThreadContext context, Block block)
callInitback to summary
public final void callInit(ThreadContext context, IRubyObject arg0, Block block)
callInitback to summary
public final void callInit(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
callInitback to summary
public final void callInit(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
convertToTypeback to summary
public final IRubyObject convertToType(RubyClass target, int convertMethodIndex)

Deprecated

Annotations
@Deprecated
digback to summary
public static IRubyObject dig(ThreadContext context, IRubyObject obj, IRubyObject[] args, int idx)
dig1back to summary
public static IRubyObject dig1(ThreadContext context, IRubyObject obj, IRubyObject arg1)
dig2back to summary
public static IRubyObject dig2(ThreadContext context, IRubyObject obj, IRubyObject arg1, IRubyObject arg2)
eqlInternalback to summary
protected static boolean eqlInternal(final ThreadContext context, final IRubyObject a, final IRubyObject b)

Hides org.jruby.RubyBasicObject.eqlInternal.

Helper method for checking equality, first using Java identity equality, and then calling the "eql?" method.

Parameters
context:ThreadContext

the thread context

a:IRubyObject

first comparator

b:IRubyObject

second comparator

Returns:boolean

true if eql

equalInternalback to summary
public static boolean equalInternal(final ThreadContext context, final IRubyObject a, final IRubyObject b)

Hides org.jruby.RubyBasicObject.equalInternal.

Helper method for checking equality, first using Java identity equality, and then calling the "==" method.

Parameters
context:ThreadContext

the thread context

a:IRubyObject

first comparator

b:IRubyObject

second comparator

Returns:boolean

true if equal

equalsback to summary
public boolean equals(Object other)

Overrides org.jruby.RubyBasicObject.equals.

This override does not do a "checked" dispatch.

Parameters
other:Object

Doc from org.jruby.RubyBasicObject.equals.

object to compare

Returns:boolean

Doc from org.jruby.RubyBasicObject.equals.

true if equals

Annotations
@Override
See Also
RubyBasicObject#equals(Object)
fastNumEqualInternalback to summary
private static boolean fastNumEqualInternal(final ThreadContext context, final IRubyObject a, final IRubyObject b)
finishObjectClassback to summary
public static void finishObjectClass(RubyClass Object)

Will create the Ruby class Object in the runtime specified. This method needs to take the actual class as an argument because of the Object class' central part in runtime initialization.

Parameters
Object:RubyClass

the object claass

getNativeClassIndexback to summary
public ClassIndex getNativeClassIndex()

Overrides org.jruby.RubyBasicObject.getNativeClassIndex.

Implements org.jruby.runtime.marshal.CoreObjectType.getNativeClassIndex.

This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. Will generally return a value from org.jruby.runtime.ClassIndex

Returns:ClassIndex

Doc from org.jruby.runtime.marshal.CoreObjectType.getNativeClassIndex.

the ClassIndex of the native type this object was constructed from

Annotations
@Override
See Also
org.jruby.runtime.ClassIndex
hashCodeback to summary
public int hashCode()

Overrides org.jruby.RubyBasicObject.hashCode.

This override does not do "checked" dispatch since Object usually has #hash defined.

Returns:int

the hash code

Annotations
@Override
See Also
RubyBasicObject#hashCode()
inspectback to summary
public static RubyString inspect(ThreadContext context, IRubyObject object)

rb_inspect The internal helper that ensures a RubyString instance is returned so dangerous casting can be omitted Preferred over callMethod(context, "inspect")

Parameters
context:ThreadContext

the thread context

object:IRubyObject

the object to inspect

Returns:RubyString

the string

isArrayDigback to summary
private static boolean isArrayDig(IRubyObject obj, JavaSites.ObjectSites sites)
isHashDigback to summary
private static boolean isHashDig(IRubyObject obj, JavaSites.ObjectSites sites)
isStructDigback to summary
private static boolean isStructDig(IRubyObject obj, JavaSites.ObjectSites sites)
op_eqqback to summary
public IRubyObject op_eqq(ThreadContext context, IRubyObject other)

Overrides org.jruby.RubyBasicObject.op_eqq.

Implements org.jruby.runtime.builtin.IRubyObject.op_eqq.

rb_equal The Ruby "===" method is used by default in case/when statements. The Object implementation first checks Java identity equality and then calls the "==" method too.

Annotations
@Override
putsback to summary
public static void puts(Object obj)

Deprecated

no longer used - uses Java's System.out

Simple helper to print any objects.

Parameters
obj:Object

to puts

Annotations
@Deprecated
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Hides org.jruby.RubyBasicObject.readObject.

Tries to support Java unserialization of Ruby objects. This is still experimental and might not work.

reifyAndAllocateback to summary
private static IRubyObject reifyAndAllocate(Ruby runtime, RubyClass klass)

Reify the class and allocate an instance.

Parameters
runtime:Ruby

the current runtime

klass:RubyClass

the target Ruby class

Returns:IRubyObject

a new instance of the now-reified class

sitesback to summary
private static JavaSites.ObjectSites sites(ThreadContext context)

Hides org.jruby.RubyBasicObject.sites.

Doc from org.jruby.RubyBasicObject.sites.

Retrieve the call sites for this class. It is expected that all Java-based core classes that do call site caching will have a similar method.

specificEvalback to summary
public IRubyObject specificEval(ThreadContext context, RubyModule mod, IRubyObject[] args, Block block, EvalType evalType)

Deprecated

Annotations
@Deprecated
toRubyStringback to summary
public RubyString toRubyString(ThreadContext context)

The default toString method is just a wrapper that calls the Ruby "to_s" method. This will raise if it is not actually a Ruby String.

Parameters
context:ThreadContext

thread context this is executing on.

Returns:RubyString

the string.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

The default toString method is just a wrapper that calls the Ruby "to_s" method.

Returns:String

string representation

Annotations
@Override
writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException

Hides org.jruby.RubyBasicObject.writeObject.

Tries to support Java serialization of Ruby objects. This is still experimental and might not work.

org.jruby back to summary

public Class RubyObject.Data

extends RubyObject
implements DataType
Class Inheritance
All Implemented Interfaces
org.jruby.runtime.marshal.DataType

Field Summary

Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public
Data(Ruby runtime, RubyClass metaClass, Object data)

public
Data(RubyClass metaClass, Object data)

Method Summary

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Constructor Detail

Databack to summary
public Data(Ruby runtime, RubyClass metaClass, Object data)
Databack to summary
public Data(RubyClass metaClass, Object data)
org.jruby back to summary

private Class RubyObject.ObjectOutputter

extends Object
implements BiConsumer<String, IRubyObject>
Class Inheritance
All Implemented Interfaces
java.util.function.BiConsumer

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv boolean
pack-priv final ObjectOutputStream

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
accept(String
the first input argument
name
,
IRubyObject
the second input argument
value
)

Implements java.util.function.BiConsumer.accept.

Performs this operation on the given arguments.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
pack-priv int count
countingback to summary
pack-priv boolean counting
outback to summary
pack-priv final ObjectOutputStream out

Constructor Detail

ObjectOutputterback to summary
pack-priv ObjectOutputter(ObjectOutputStream out)

Method Detail

acceptback to summary
public void accept(String name, IRubyObject value)

Implements java.util.function.BiConsumer.accept.

Doc from java.util.function.BiConsumer.accept.

Performs this operation on the given arguments.

Parameters
name:String

the first input argument

value:IRubyObject

the second input argument

writeCountback to summary
public void writeCount()