Class XmlLabel
- java.lang.Object
-
- org.eolang.jeo.representation.xmir.XmlLabel
-
- All Implemented Interfaces:
XmlBytecodeEntry
public final class XmlLabel extends Object implements XmlBytecodeEntry
XML representation of bytecode label.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description XmlLabel(org.eolang.jeo.representation.xmir.XmlNode node)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasOpcode(int opcode)Check if instruction has opcode.Nodenode()Xml node.voidreplaceArguementsValues(String old, String replacement)Replace values of instruction arguments.voidwriteTo(BytecodeMethod method)Write instruction to the bytecode method.
-
-
-
Method Detail
-
writeTo
public void writeTo(BytecodeMethod method)
Description copied from interface:XmlBytecodeEntryWrite instruction to the bytecode method.- Specified by:
writeToin interfaceXmlBytecodeEntry- Parameters:
method- Bytecode Method where instruction should be written.
-
hasOpcode
public boolean hasOpcode(int opcode)
Description copied from interface:XmlBytecodeEntryCheck if instruction has opcode.- Specified by:
hasOpcodein interfaceXmlBytecodeEntry- Parameters:
opcode- Opcode comparing with.- Returns:
- True if instruction has opcode.
-
replaceArguementsValues
public void replaceArguementsValues(String old, String replacement)
Description copied from interface:XmlBytecodeEntryReplace values of instruction arguments.- Specified by:
replaceArguementsValuesin interfaceXmlBytecodeEntry- Parameters:
old- Old value.replacement- Which value to set instead.
-
node
public Node node()
Description copied from interface:XmlBytecodeEntryXml node.- Specified by:
nodein interfaceXmlBytecodeEntry- Returns:
- Xml node.
-
-