Interface XmlBytecodeEntry
-
- All Known Implementing Classes:
XmlInstruction
,XmlLabel
public interface XmlBytecodeEntry
XML 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 boolean
hasOpcode(int opcode)
Check if instruction has opcode.Node
node()
Xml node.void
replaceArguementsValues(String old, String replacement)
Replace values of instruction arguments.void
writeTo(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.
-
-