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 bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final intstatic final intstatic final intstatic final bytestatic final bytestatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionIRReaderStream(IRManager manager, byte[] bytes, String filename) IRReaderStream(IRManager manager, File file, String filename) -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(OperandType type) booleanbytebyte[]chardoubleorg.jcodings.EncodingfloatdecodeInstructionsAt(IRScope scope, int poolOffset, int offset) intint[]intLabel[]longOperand[]String[]dup()Duplicate this decoder to isolate any state changes.getVars()voidseek(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:IRReaderDecoderDuplicate this decoder to isolate any state changes.- Specified by:
dupin interfaceIRReaderDecoder- Returns:
- An identical decoder that's isolated from the original
-
getFilename
- Specified by:
getFilenamein interfaceIRReaderDecoder
-
decodeByteList
- Specified by:
decodeByteListin interfaceIRReaderDecoder
-
decodeByteArray
public byte[] decodeByteArray()- Specified by:
decodeByteArrayin interfaceIRReaderDecoder
-
decodeEncoding
public org.jcodings.Encoding decodeEncoding()- Specified by:
decodeEncodingin interfaceIRReaderDecoder
-
decodeLabel
- Specified by:
decodeLabelin interfaceIRReaderDecoder
-
decodeLabelArray
- Specified by:
decodeLabelArrayin interfaceIRReaderDecoder
-
decodeRubyEvent
- Specified by:
decodeRubyEventin interfaceIRReaderDecoder
-
decodeSymbol
- Specified by:
decodeSymbolin interfaceIRReaderDecoder
-
decodeString
- Specified by:
decodeStringin interfaceIRReaderDecoder
-
addScope
- Specified by:
addScopein interfaceIRReaderDecoder
-
getCurrentScope
- Specified by:
getCurrentScopein interfaceIRReaderDecoder
-
decodeStringArray
- Specified by:
decodeStringArrayin interfaceIRReaderDecoder
-
decodeIntArray
public int[] decodeIntArray()- Specified by:
decodeIntArrayin interfaceIRReaderDecoder
-
getVars
- Specified by:
getVarsin interfaceIRReaderDecoder
-
decodeInstructionsAt
- Specified by:
decodeInstructionsAtin interfaceIRReaderDecoder
-
decodeInstr
- Specified by:
decodeInstrin interfaceIRReaderDecoder
-
decodeIRScopeType
- Specified by:
decodeIRScopeTypein interfaceIRReaderDecoder
-
decodeTemporaryVariableType
- Specified by:
decodeTemporaryVariableTypein interfaceIRReaderDecoder
-
decodeStaticScopeType
- Specified by:
decodeStaticScopeTypein interfaceIRReaderDecoder
-
decodeOperation
- Specified by:
decodeOperationin interfaceIRReaderDecoder
-
decodeOperand
- Specified by:
decodeOperandin interfaceIRReaderDecoder
-
decodeVariable
- Specified by:
decodeVariablein interfaceIRReaderDecoder
-
decodeOperandArray
- Specified by:
decodeOperandArrayin interfaceIRReaderDecoder
-
decodeOperandList
- Specified by:
decodeOperandListin interfaceIRReaderDecoder
-
decodeOperandType
- Specified by:
decodeOperandTypein interfaceIRReaderDecoder
-
decodeBoolean
public boolean decodeBoolean()- Specified by:
decodeBooleanin interfaceIRReaderDecoder
-
decodeByte
public byte decodeByte()- Specified by:
decodeBytein interfaceIRReaderDecoder
-
decodeChar
public char decodeChar()- Specified by:
decodeCharin interfaceIRReaderDecoder
-
decodeInt
public int decodeInt()- Specified by:
decodeIntin interfaceIRReaderDecoder
-
decodeIntRaw
public int decodeIntRaw()- Specified by:
decodeIntRawin interfaceIRReaderDecoder
-
decodeLong
public long decodeLong()- Specified by:
decodeLongin interfaceIRReaderDecoder
-
decodeDouble
public double decodeDouble()- Specified by:
decodeDoublein interfaceIRReaderDecoder
-
decodeFloat
public float decodeFloat()- Specified by:
decodeFloatin interfaceIRReaderDecoder
-
decodeScope
- Specified by:
decodeScopein interfaceIRReaderDecoder
-
decodeSignature
- Specified by:
decodeSignaturein interfaceIRReaderDecoder
-
decodeIRFlags
- Specified by:
decodeIRFlagsin interfaceIRReaderDecoder
-
seek
public void seek(int headersOffset) - Specified by:
seekin interfaceIRReaderDecoder
-
decode
-