public void dumpSymbol(String value) throws IOException { write(':'); writeString(value); }
public void dumpSymbol(String value) throws IOException { write(':'); writeString(value); }
public static void marshalTo(RubyClass clazz, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(clazz); output.writeString(MarshalStream.getPathFromClass(clazz)); }
public static void marshalTo(RubyFloat aFloat, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(aFloat); output.writeString(aFloat.marshalDump()); }
public static void marshalTo(RubyClass clazz, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(clazz); output.writeString(MarshalStream.getPathFromClass(clazz)); }
public static void marshalTo(RubyModule module, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(module); output.writeString(MarshalStream.getPathFromClass(module)); }
public static void marshalTo(RubyClass clazz, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(clazz); output.writeString(MarshalStream.getPathFromClass(clazz)); }
public static void marshalTo(RubyFloat aFloat, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(aFloat); output.writeString(aFloat.marshalDump()); }
public static void marshalTo(RubyModule module, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(module); output.writeString(MarshalStream.getPathFromClass(module)); }
public static void marshalTo(RubyFloat aFloat, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(aFloat); output.writeString(aFloat.marshalDump()); }
public static void marshalTo(RubyModule module, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(module); output.writeString(MarshalStream.getPathFromClass(module)); }
public static void marshalTo(RubyModule module, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(module); output.writeString(MarshalStream.getPathFromClass(module)); }
public static void marshalTo(RubyFloat aFloat, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(aFloat); output.writeString(aFloat.marshalDump()); }
public static void marshalTo(RubyClass clazz, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(clazz); output.writeString(MarshalStream.getPathFromClass(clazz)); }
public static void marshalTo(RubyRegexp regexp, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(regexp); output.writeString(regexp.str); int options = regexp.pattern.getOptions() & EMBEDDABLE; if (regexp.getOptions().isFixed()) options |= RE_FIXED; output.writeByte(options); } }
public static void marshalTo(RubyRegexp regexp, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(regexp); output.writeString(regexp.str); int options = regexp.pattern.getOptions() & EMBEDDABLE; if (regexp.getOptions().isFixed()) options |= ARG_ENCODING_FIXED; output.writeByte(options); }
public static void marshalTo(RubyRegexp regexp, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(regexp); output.writeString(regexp.str); int options = regexp.pattern.getOptions() & EMBEDDABLE; if (regexp.getOptions().isFixed()) options |= RE_FIXED; output.writeByte(options); } }
public static void marshalTo(RubyRegexp regexp, MarshalStream output) throws java.io.IOException { output.registerLinkTarget(regexp); output.writeString(regexp.str); int options = regexp.pattern.getOptions() & EMBEDDABLE; if (regexp.getOptions().isFixed()) options |= ARG_ENCODING_FIXED; output.writeByte(options); }
private void userCommon(IRubyObject value, DynamicMethod method) throws IOException { RubyFixnum depthLimitFixnum = runtime.newFixnum(depthLimit); IRubyObject dumpResult; if (method != null) { dumpResult = method.call(runtime.getCurrentContext(), value, value.getMetaClass(), "_dump", depthLimitFixnum); } else { dumpResult = value.callMethod(runtime.getCurrentContext(), "_dump", depthLimitFixnum); } if (!(dumpResult instanceof RubyString)) { throw runtime.newTypeError(dumpResult, runtime.getString()); } RubyString marshaled = (RubyString)dumpResult; boolean hasVars; if (hasVars = marshaled.hasVariables()) { write(TYPE_IVAR); } write(TYPE_USERDEF); RubyClass metaclass = value.getMetaClass().getRealClass(); writeAndRegisterSymbol(metaclass.getName()); writeString(marshaled.getByteList()); if (hasVars) { dumpVariables(marshaled.getVariableList()); } registerLinkTarget(value); }
private void userCommon(IRubyObject value, DynamicMethod method) throws IOException { RubyFixnum depthLimitFixnum = runtime.newFixnum(depthLimit); IRubyObject dumpResult; if (method != null) { dumpResult = method.call(runtime.getCurrentContext(), value, value.getMetaClass(), "_dump", depthLimitFixnum); } else { dumpResult = value.callMethod(runtime.getCurrentContext(), "_dump", depthLimitFixnum); } if (!(dumpResult instanceof RubyString)) { throw runtime.newTypeError(dumpResult, runtime.getString()); } RubyString marshaled = (RubyString)dumpResult; boolean hasVars; if (hasVars = marshaled.hasVariables()) { write(TYPE_IVAR); } write(TYPE_USERDEF); RubyClass metaclass = value.getMetaClass().getRealClass(); writeAndRegisterSymbol(metaclass.getName()); writeString(marshaled.getByteList()); if (hasVars) { dumpVariables(marshaled.getVariableList()); } registerLinkTarget(value); }