CodeTransform replacing all occurrences
of java.lang.classfile.Label in the transformed code with new instances.
All java.lang.classfile.instruction.LabelTarget instructions are adjusted accordingly.
Relabeled code graph is identical to the original.
Primary purpose of CodeRelabeler is for repeated injections of the same code blocks.
Repeated injection of the same code block must be relabeled, so each instance of
java. is bound in the target bytecode exactly once.
| Modifier and Type | Method and Description |
|---|---|
| public static CodeRelabeler | |
| public static CodeRelabeler | |
| public static CodeRelabeler | Returns: a new instance of CodeRelabelerfunction for remapping labels in the source code model mapFunction)Creates a new instance of CodeRelabeler using provided |
| of | back to summary |
|---|---|
| public static CodeRelabeler of() Creates a new instance of CodeRelabeler.
| |
| of | back to summary |
|---|---|
| public static CodeRelabeler of(Map<Label, Label> map) Creates a new instance of CodeRelabeler storing the label mapping into the provided map.
| |
| of | back to summary |
|---|---|
| public static CodeRelabeler of(BiFunction<Label, CodeBuilder, Label> mapFunction) Creates a new instance of CodeRelabeler using provided
| |