private static class RubyClass.MarshalTuple
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
generation
The generation of the associated class at the time of creation
|
DynamicMethod |
method
The method associated with this tuple.
|
static RubyClass.MarshalTuple |
NULL_TUPLE
A "null" tuple, used as the default value for caches.
|
RubyClass.MarshalType |
type
The type of marshaling that will be performed
|
| Constructor and Description |
|---|
MarshalTuple(DynamicMethod method,
RubyClass.MarshalType type,
int generation)
Construct a new MarshalTuple with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(MarshalStream stream,
IRubyObject object)
Dump the given object to the given stream, using the appropriate
marshaling method.
|
public static final RubyClass.MarshalTuple NULL_TUPLE
public final DynamicMethod method
public final RubyClass.MarshalType type
public final int generation
public MarshalTuple(DynamicMethod method, RubyClass.MarshalType type, int generation)
method - The method to invoke, or null in the case of default
marshaling.type - The type of marshaling to perform, from @MarshalTypegeneration - The generation of the associated class at the time
of creation.public void dump(MarshalStream stream, IRubyObject object) throws java.io.IOException
stream - The stream to which to dumpobject - The object to dumpjava.io.IOException - If there is an IO error during dumping