public class ByteCodeReader extends Object
Modifier and Type | Method and Description |
---|---|
static ArrayList<AbstractInstruction> |
readByteCode(byte[] code)
Converts the code to a list of instructions.
|
static ArrayList<AbstractInstruction> |
readByteCode(byte[] code,
AbstractInstruction[] prependInstructions)
Converts the code to a list of instructions.
|
public static ArrayList<AbstractInstruction> readByteCode(byte[] code) throws IOException
code
- the code as an array of bytes from which to read the instructionsIOException
- if an exception occurs with the codepublic static ArrayList<AbstractInstruction> readByteCode(byte[] code, AbstractInstruction[] prependInstructions) throws IOException
code
- the code as an array of bytes from which to read the instructionsprependInstructions
- an array of instructions that is prepended, may be nullIOException
- if an exception occurs with the code