Class BytecodeMethod
- java.lang.Object
-
- org.eolang.jeo.representation.bytecode.BytecodeMethod
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BytecodeMethodentry(BytecodeEntry entry)Add some bytecode entry.BytecodeMethodlabel(String label)Add label.BytecodeMethodlabel(org.objectweb.asm.Label label)Add label.BytecodeMethodopcode(int opcode, Object... args)Add instruction.StringtestCode()Generate test Java code.BytecodeMethodtrycatch(BytecodeEntry entry)Add try-catch block.BytecodeClassup()Return to the original class.
-
-
-
Method Detail
-
up
public BytecodeClass up()
Return to the original class.- Returns:
- Original class.
-
label
public BytecodeMethod label(String label)
Add label.- Parameters:
label- Label.- Returns:
- This object.
-
label
public BytecodeMethod label(org.objectweb.asm.Label label)
Add label.- Parameters:
label- Label.- Returns:
- This object.
-
opcode
public BytecodeMethod opcode(int opcode, Object... args)
Add instruction.- Parameters:
opcode- Opcode.args- Arguments.- Returns:
- This object.
-
trycatch
public BytecodeMethod trycatch(BytecodeEntry entry)
Add try-catch block.- Parameters:
entry- Try-catch block.- Returns:
- This object.
-
entry
public BytecodeMethod entry(BytecodeEntry entry)
Add some bytecode entry.- Parameters:
entry- Entry.- Returns:
- This object.
-
-