Package org.jruby.ir.persistence
Class IRWriter
java.lang.Object
org.jruby.ir.persistence.IRWriter
Write IR data out to persistent store. IRReader is capable of re-reading this
information back into live IR data again. This class knows the logical order of how
information will be written out but the IRWriterEncoder actually knows how to encode that
information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpersist(IRWriterEncoder file, IRScope script) private static voidpersistScopeHeader(IRWriterEncoder file, IRScope scope) private static voidpersistScopeHeaders(IRWriterEncoder file, IRScope parent) private static voidpersistScopeInstrs(IRWriterEncoder file, IRScope scope) private static voidpersistScopeInstructions(IRWriterEncoder file, IRScope parent) private static voidpersistStaticScope(IRWriterEncoder file, StaticScope staticScope) static booleanshouldLog(IRWriterEncoder encoder)
-
Constructor Details
-
IRWriter
private IRWriter()
-
-
Method Details
-
persist
- Throws:
IOException
-
persistScopeInstructions
-
persistScopeInstrs
-
persistScopeHeaders
-
persistScopeHeader
-
persistStaticScope
-
shouldLog
-