java.lang.Object
simula.compiler.byteCodeEngineering.ByteCodeEngineering
Based on the 'ASM' Java bytecode manipulation and analysis framework.
Main page: https://asm.ow2.io/index.html
Wikipedia: https://en.wikipedia.org/wiki/ObjectWeb_ASM
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final boolean
DEBUG on/offprivate static final boolean
List ASM code on/off -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doRepairSingleByteCode
(String classFileName) Repair a single .class file.private void
dumpToFile
(byte[] bytes, String classFileName) Dump bytes to the given class file
-
Field Details
-
LIST_ASM_CODE
private static final boolean LIST_ASM_CODEList ASM code on/off- See Also:
-
DEBUG
private static final boolean DEBUGDEBUG on/off- See Also:
-
-
Constructor Details
-
ByteCodeEngineering
public ByteCodeEngineering()Create a new ByteCodeEngineering.
-
-
Method Details
-
doRepairSingleByteCode
Repair a single .class file.- Parameters:
classFileName
- the .class file name
-
dumpToFile
Dump bytes to the given class file- Parameters:
bytes
- the bytesclassFileName
- the class file
-