Class BytecodeLabel
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeLabel
- All Implemented Interfaces:
BytecodeEntry
,Testable
Mark label instruction.
- Since:
- 0.1
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeLabel
(byte[] uid) Constructor.BytecodeLabel
(String identifier) Constructor.BytecodeLabel
(String identifier, AllLabels labels) Constructor.BytecodeLabel
(org.objectweb.asm.Label label, AllLabels labels) Constructor. -
Method Summary
-
Constructor Details
-
BytecodeLabel
public BytecodeLabel(byte[] uid) Constructor.- Parameters:
uid
- Label identifier.
-
BytecodeLabel
Constructor.- Parameters:
identifier
- Label identifier.
-
BytecodeLabel
Constructor.- Parameters:
identifier
- Label identifier.labels
- All labels.
-
BytecodeLabel
Constructor.- Parameters:
label
- Label.labels
- All labels.
-
-
Method Details
-
writeTo
public void writeTo(org.objectweb.asm.MethodVisitor visitor) Description copied from interface:BytecodeEntry
Write instruction to the method visitor.- Specified by:
writeTo
in interfaceBytecodeEntry
- Parameters:
visitor
- Method visitor.
-
directives
- Specified by:
directives
in interfaceBytecodeEntry
-
isLabel
public boolean isLabel()- Specified by:
isLabel
in interfaceBytecodeEntry
-
isOpcode
public boolean isOpcode()- Specified by:
isOpcode
in interfaceBytecodeEntry
-
impact
public int impact()- Specified by:
impact
in interfaceBytecodeEntry
-
testCode
Description copied from interface:Testable
Generate test Java code.
-