Package org.zeroturnaround.javarebel
Interface ClassBytecodeProcessor
public interface ClassBytecodeProcessor
A bytecode processor callback that is used by JavaRebel to process class
bytecode before loading the class.
- Since:
- 1.2
- Author:
- Jevgeni Kabanov
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault intpriority()Returns the priority of the processor that defines the order of processor invocation.default byte[]process(ClassLoader cl, String classname, byte[] bytecode) default byte[]process(Object module, ClassLoader cl, String classname, byte[] bytecode)
-
Method Details
-
process
- Parameters:
cl- the ClassLoader the class will be loaded inclassname- the name of the class to be definedbytecode- original bytecode- Returns:
- modified or unmodified bytecode.
-
process
- Parameters:
module- the Module the class will be loaded incl- the ClassLoader the class will be loaded inclassname- the name of the class to be definedbytecode- original bytecode- Returns:
- modified or unmodified bytecode.
-
priority
default int priority()Returns the priority of the processor that defines the order of processor invocation. First run the processor with greatest priority value. Negative values are the latest.- Returns:
- the priority of the processor
- Since:
- 2018.2.5
-