public class IRWriterStream extends Object implements IRWriterEncoder
| Modifier and Type | Field and Description |
|---|---|
static byte |
ARRAY |
static byte |
DOUBLE |
static byte |
FALSE |
static byte |
FLOAT |
static byte |
FULL |
static byte |
INSTR |
static byte |
LONG |
static byte |
NULL |
static int |
NULL_STRING |
static int |
PRIMITIVE_BASE |
static int |
PROLOGUE_LENGTH |
static byte |
STRING |
static byte |
TRUE |
static int |
TWO_MEGS |
static int |
VERSION |
| Constructor and Description |
|---|
IRWriterStream(File file) |
IRWriterStream(OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
addScopeInstructionOffset(IRScope scope)
Record current offset as the beginning of specified scopes list of instructions.
|
void |
encode(boolean value) |
void |
encode(byte value) |
void |
encode(byte[] bytes) |
void |
encode(org.jruby.util.ByteList value) |
void |
encode(char value) |
void |
encode(double value) |
void |
encode(org.jcodings.Encoding encoding) |
void |
encode(float value) |
void |
encode(Instr instr) |
void |
encode(int value) |
void |
encode(IRScope value) |
void |
encode(IRScopeType value) |
void |
encode(long value) |
void |
encode(Operand operand) |
void |
encode(Operand[] operands) |
void |
encode(OperandType value) |
void |
encode(Operation value) |
void |
encode(RubyEvent event) |
void |
encode(Signature signature) |
void |
encode(StaticScope.Type value) |
void |
encode(String value) |
void |
encode(String[] values) |
void |
endEncoding(IRScope script) |
void |
endEncodingScopeHeader(IRScope scope) |
void |
endEncodingScopeHeaders(IRScope script) |
void |
endEncodingScopeInstrs(IRScope scope) |
int |
getScopeInstructionOffset(IRScope scope)
Get recorded offset for this scropes instruction list.
|
void |
startEncoding(IRScope script) |
void |
startEncodingScopeHeader(IRScope scope) |
void |
startEncodingScopeHeaders(IRScope script) |
void |
startEncodingScopeInstrs(IRScope scope) |
public static final int VERSION
public static final int TWO_MEGS
public static final int PRIMITIVE_BASE
public static final byte STRING
public static final byte TRUE
public static final byte FALSE
public static final byte ARRAY
public static final byte NULL
public static final byte INSTR
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
public static final byte FULL
public static final int PROLOGUE_LENGTH
public static final int NULL_STRING
public IRWriterStream(OutputStream stream)
public IRWriterStream(File file) throws FileNotFoundException
FileNotFoundExceptionpublic void addScopeInstructionOffset(IRScope scope)
public int getScopeInstructionOffset(IRScope scope)
public void encode(boolean value)
encode in interface IRWriterEncoderpublic void encode(byte value)
encode in interface IRWriterEncoderpublic void encode(char value)
encode in interface IRWriterEncoderpublic void encode(int value)
encode in interface IRWriterEncoderpublic void encode(long value)
encode in interface IRWriterEncoderpublic void encode(float value)
encode in interface IRWriterEncoderpublic void encode(double value)
encode in interface IRWriterEncoderpublic void encode(org.jruby.util.ByteList value)
encode in interface IRWriterEncoderpublic void encode(byte[] bytes)
encode in interface IRWriterEncoderpublic void encode(org.jcodings.Encoding encoding)
encode in interface IRWriterEncoderpublic void encode(String value)
encode in interface IRWriterEncoderpublic void encode(String[] values)
encode in interface IRWriterEncoderpublic void encode(Operand operand)
encode in interface IRWriterEncoderpublic void encode(Operand[] operands)
encode in interface IRWriterEncoderpublic void encode(Instr instr)
encode in interface IRWriterEncoderpublic void encode(IRScope value)
encode in interface IRWriterEncoderpublic void encode(IRScopeType value)
encode in interface IRWriterEncoderpublic void encode(Signature signature)
encode in interface IRWriterEncoderpublic void encode(RubyEvent event)
encode in interface IRWriterEncoderpublic void encode(StaticScope.Type value)
encode in interface IRWriterEncoderpublic void encode(Operation value)
encode in interface IRWriterEncoderpublic void encode(OperandType value)
encode in interface IRWriterEncoderpublic void startEncodingScopeHeader(IRScope scope)
startEncodingScopeHeader in interface IRWriterEncoderpublic void endEncodingScopeHeader(IRScope scope)
endEncodingScopeHeader in interface IRWriterEncoderpublic void startEncodingScopeInstrs(IRScope scope)
startEncodingScopeInstrs in interface IRWriterEncoderpublic void endEncodingScopeInstrs(IRScope scope)
endEncodingScopeInstrs in interface IRWriterEncoderpublic void startEncodingScopeHeaders(IRScope script)
startEncodingScopeHeaders in interface IRWriterEncoderpublic void endEncodingScopeHeaders(IRScope script)
endEncodingScopeHeaders in interface IRWriterEncoderpublic void startEncoding(IRScope script)
startEncoding in interface IRWriterEncoderpublic void endEncoding(IRScope script)
endEncoding in interface IRWriterEncoderCopyright © 2001-2015 JRuby. All Rights Reserved.