Class BytecodeMethodBuilder
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeMethodBuilder
Bytecode method builder.
- Since:
- 0.6
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeMethodBuilder(BytecodeClass clazz, BytecodeMethod method) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlabel()Add label.Add instruction.trycatch(BytecodeEntry entry) Add try-catch block.up()Return to the original class.
-
Constructor Details
-
BytecodeMethodBuilder
Constructor.- Parameters:
clazz- Class.method- Method.
-
-
Method Details
-
up
Return to the original class.- Returns:
- Original class.
-
label
-
label
Add label.- Parameters:
uid- Label uid.- Returns:
- This object.
-
opcode
Add instruction.- Parameters:
opcode- Opcode.args- Arguments.- Returns:
- This object.
-
trycatch
Add try-catch block.- Parameters:
entry- Try-catch block.- Returns:
- This object.
-