Interface XmlBytecodeEntry
-
- All Known Implementing Classes:
XmlInstruction,XmlLabel
public interface XmlBytecodeEntryXML representation of bytecode instruction or a label. Usually each method in bytecode contains a list of bytecode entries. Since they aren't always instructions, we call them entries.- Since:
- 0.1
-
-
Method Summary
All Methods Instance Methods Abstract 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
void writeTo(BytecodeMethod method)
Write instruction to the bytecode method.- Parameters:
method- Bytecode Method where instruction should be written.
-
hasOpcode
boolean hasOpcode(int opcode)
Check if instruction has opcode.- Parameters:
opcode- Opcode comparing with.- Returns:
- True if instruction has opcode.
-
replaceArguementsValues
void replaceArguementsValues(String old, String replacement)
Replace values of instruction arguments.- Parameters:
old- Old value.replacement- Which value to set instead.
-
node
Node node()
Xml node.- Returns:
- Xml node.
-
-