public class IRReaderStream extends Object implements IRReaderDecoder
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 |
---|
IRReaderStream(IRManager manager,
File file,
org.jruby.util.ByteList filename) |
IRReaderStream(IRManager manager,
InputStream stream,
org.jruby.util.ByteList filename) |
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 IRReaderStream(IRManager manager, InputStream stream, org.jruby.util.ByteList filename)
public org.jruby.util.ByteList getFilename()
getFilename
in interface IRReaderDecoder
public org.jruby.util.ByteList decodeByteList()
decodeByteList
in interface IRReaderDecoder
public byte[] decodeByteArray()
decodeByteArray
in interface IRReaderDecoder
public org.jcodings.Encoding decodeEncoding()
decodeEncoding
in interface IRReaderDecoder
public Label decodeLabel()
decodeLabel
in interface IRReaderDecoder
public Label[] decodeLabelArray()
decodeLabelArray
in interface IRReaderDecoder
public RubyEvent decodeRubyEvent()
decodeRubyEvent
in interface IRReaderDecoder
public String decodeString()
decodeString
in interface IRReaderDecoder
public void addScope(IRScope scope)
addScope
in interface IRReaderDecoder
public IRScope getCurrentScope()
getCurrentScope
in interface IRReaderDecoder
public String[] decodeStringArray()
decodeStringArray
in interface IRReaderDecoder
public int[] decodeIntArray()
decodeIntArray
in interface IRReaderDecoder
public Map<String,Operand> getVars()
getVars
in interface IRReaderDecoder
public List<Instr> decodeInstructionsAt(IRScope scope, int offset)
decodeInstructionsAt
in interface IRReaderDecoder
public Instr decodeInstr()
decodeInstr
in interface IRReaderDecoder
public IRScopeType decodeIRScopeType()
decodeIRScopeType
in interface IRReaderDecoder
public TemporaryVariableType decodeTemporaryVariableType()
decodeTemporaryVariableType
in interface IRReaderDecoder
public StaticScope.Type decodeStaticScopeType()
decodeStaticScopeType
in interface IRReaderDecoder
public Operation decodeOperation()
decodeOperation
in interface IRReaderDecoder
public Operand decodeOperand()
decodeOperand
in interface IRReaderDecoder
public Variable decodeVariable()
decodeVariable
in interface IRReaderDecoder
public Operand[] decodeOperandArray()
decodeOperandArray
in interface IRReaderDecoder
public List<Operand> decodeOperandList()
decodeOperandList
in interface IRReaderDecoder
public OperandType decodeOperandType()
decodeOperandType
in interface IRReaderDecoder
public boolean decodeBoolean()
decodeBoolean
in interface IRReaderDecoder
public byte decodeByte()
decodeByte
in interface IRReaderDecoder
public char decodeChar()
decodeChar
in interface IRReaderDecoder
public int decodeInt()
decodeInt
in interface IRReaderDecoder
public int decodeIntRaw()
decodeIntRaw
in interface IRReaderDecoder
public long decodeLong()
decodeLong
in interface IRReaderDecoder
public double decodeDouble()
decodeDouble
in interface IRReaderDecoder
public float decodeFloat()
decodeFloat
in interface IRReaderDecoder
public IRScope decodeScope()
decodeScope
in interface IRReaderDecoder
public Signature decodeSignature()
decodeSignature
in interface IRReaderDecoder
public void seek(int headersOffset)
seek
in interface IRReaderDecoder
public Operand decode(OperandType type)
Copyright © 2001-2016 JRuby. All Rights Reserved.