Package org.jruby.ir.persistence
Class IRReaderStream
java.lang.Object
org.jruby.ir.persistence.IRReaderStream
- All Implemented Interfaces:
IRReaderDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final int
static final int
static final int
static final byte
static final byte
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionIRReaderStream
(IRManager manager, byte[] bytes, String filename) IRReaderStream
(IRManager manager, File file, String filename) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(OperandType type) boolean
byte
byte[]
char
double
org.jcodings.Encoding
float
decodeInstructionsAt
(IRScope scope, int poolOffset, int offset) int
int[]
int
Label[]
long
Operand[]
String[]
dup()
Duplicate this decoder to isolate any state changes.getVars()
void
seek
(int headersOffset)
-
Field Details
-
VERSION
static final int VERSION- See Also:
-
TWO_MEGS
static final int TWO_MEGS- See Also:
-
PRIMITIVE_BASE
static final int PRIMITIVE_BASE -
STRING
static final byte STRING -
TRUE
static final byte TRUE- See Also:
-
FALSE
static final byte FALSE- See Also:
-
ARRAY
static final byte ARRAY -
NULL
static final byte NULL -
INSTR
static final byte INSTR -
LONG
static final byte LONG -
FLOAT
static final byte FLOAT -
DOUBLE
static final byte DOUBLE -
FULL
static final byte FULL- See Also:
-
PROLOGUE_LENGTH
static final int PROLOGUE_LENGTH- See Also:
-
NULL_STRING
static final int NULL_STRING- See Also:
-
USASCII
static final int USASCII- See Also:
-
UTF8
static final int UTF8- See Also:
-
-
Constructor Details
-
IRReaderStream
-
IRReaderStream
-
-
Method Details
-
dup
Description copied from interface:IRReaderDecoder
Duplicate this decoder to isolate any state changes.- Specified by:
dup
in interfaceIRReaderDecoder
- Returns:
- An identical decoder that's isolated from the original
-
getFilename
- Specified by:
getFilename
in interfaceIRReaderDecoder
-
decodeByteList
- Specified by:
decodeByteList
in interfaceIRReaderDecoder
-
decodeByteArray
public byte[] decodeByteArray()- Specified by:
decodeByteArray
in interfaceIRReaderDecoder
-
decodeEncoding
public org.jcodings.Encoding decodeEncoding()- Specified by:
decodeEncoding
in interfaceIRReaderDecoder
-
decodeLabel
- Specified by:
decodeLabel
in interfaceIRReaderDecoder
-
decodeLabelArray
- Specified by:
decodeLabelArray
in interfaceIRReaderDecoder
-
decodeRubyEvent
- Specified by:
decodeRubyEvent
in interfaceIRReaderDecoder
-
decodeSymbol
- Specified by:
decodeSymbol
in interfaceIRReaderDecoder
-
decodeString
- Specified by:
decodeString
in interfaceIRReaderDecoder
-
addScope
- Specified by:
addScope
in interfaceIRReaderDecoder
-
getCurrentScope
- Specified by:
getCurrentScope
in interfaceIRReaderDecoder
-
decodeStringArray
- Specified by:
decodeStringArray
in interfaceIRReaderDecoder
-
decodeIntArray
public int[] decodeIntArray()- Specified by:
decodeIntArray
in interfaceIRReaderDecoder
-
getVars
- Specified by:
getVars
in interfaceIRReaderDecoder
-
decodeInstructionsAt
- Specified by:
decodeInstructionsAt
in interfaceIRReaderDecoder
-
decodeInstr
- Specified by:
decodeInstr
in interfaceIRReaderDecoder
-
decodeIRScopeType
- Specified by:
decodeIRScopeType
in interfaceIRReaderDecoder
-
decodeTemporaryVariableType
- Specified by:
decodeTemporaryVariableType
in interfaceIRReaderDecoder
-
decodeStaticScopeType
- Specified by:
decodeStaticScopeType
in interfaceIRReaderDecoder
-
decodeOperation
- Specified by:
decodeOperation
in interfaceIRReaderDecoder
-
decodeOperand
- Specified by:
decodeOperand
in interfaceIRReaderDecoder
-
decodeVariable
- Specified by:
decodeVariable
in interfaceIRReaderDecoder
-
decodeOperandArray
- Specified by:
decodeOperandArray
in interfaceIRReaderDecoder
-
decodeOperandList
- Specified by:
decodeOperandList
in interfaceIRReaderDecoder
-
decodeOperandType
- Specified by:
decodeOperandType
in interfaceIRReaderDecoder
-
decodeBoolean
public boolean decodeBoolean()- Specified by:
decodeBoolean
in interfaceIRReaderDecoder
-
decodeByte
public byte decodeByte()- Specified by:
decodeByte
in interfaceIRReaderDecoder
-
decodeChar
public char decodeChar()- Specified by:
decodeChar
in interfaceIRReaderDecoder
-
decodeInt
public int decodeInt()- Specified by:
decodeInt
in interfaceIRReaderDecoder
-
decodeIntRaw
public int decodeIntRaw()- Specified by:
decodeIntRaw
in interfaceIRReaderDecoder
-
decodeLong
public long decodeLong()- Specified by:
decodeLong
in interfaceIRReaderDecoder
-
decodeDouble
public double decodeDouble()- Specified by:
decodeDouble
in interfaceIRReaderDecoder
-
decodeFloat
public float decodeFloat()- Specified by:
decodeFloat
in interfaceIRReaderDecoder
-
decodeScope
- Specified by:
decodeScope
in interfaceIRReaderDecoder
-
decodeSignature
- Specified by:
decodeSignature
in interfaceIRReaderDecoder
-
decodeIRFlags
- Specified by:
decodeIRFlags
in interfaceIRReaderDecoder
-
seek
public void seek(int headersOffset) - Specified by:
seek
in interfaceIRReaderDecoder
-
decode
-