-
- All Implemented Interfaces:
public class ByteCodeReaderConverts code to a list of instructions as defined in the package org.gjt.jclasslib.code.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ByteCodeReaderINSTANCE
-
Method Summary
Modifier and Type Method Description final static ArrayList<Instruction>readByteCode(ByteArray code, Array<Instruction> prependInstructions)Converts the code to a list of instructions. final static ArrayList<Instruction>readByteCode(ByteArray code)Converts the code to a list of instructions. final InstructioncreateInstruction(Opcode opcode, Boolean wide)Create an instruction for the specified opcode final InstructioncreateInstruction(Opcode opcode)Create an instruction for the specified opcode -
-
Method Detail
-
readByteCode
@JvmOverloads() final static ArrayList<Instruction> readByteCode(ByteArray code, Array<Instruction> prependInstructions)
Converts the code to a list of instructions.
- Parameters:
code- the code as an array of bytes from which to read the instructionsprependInstructions- an array of instructions that is prepended, may be null
-
readByteCode
@JvmOverloads() final static ArrayList<Instruction> readByteCode(ByteArray code)
Converts the code to a list of instructions.
- Parameters:
code- the code as an array of bytes from which to read the instructions
-
createInstruction
@JvmOverloads() final Instruction createInstruction(Opcode opcode, Boolean wide)
Create an instruction for the specified opcode
- Parameters:
opcode- the opcodewide- if the instruction is a wide instruction
-
createInstruction
@JvmOverloads() final Instruction createInstruction(Opcode opcode)
Create an instruction for the specified opcode
- Parameters:
opcode- the opcode
-
-
-
-