public class OpcodeManager extends Object
Constructor and Description |
---|
OpcodeManager() |
Modifier and Type | Method and Description |
---|---|
Opcode[] |
addOpcode(Opcode newOpcode) |
Opcode |
getOpcode(ObjectName objectName,
Opcode.Type type,
String operand) |
Opcode |
getOpcode(ObjectName objectName,
Opcode.Type type,
String operand,
String[] methodSignature)
Returns the OpcodeData for the specified ObjectName + args, or null if no opcode exists for that operation.
|
LinkedList<Opcode> |
getOpcodes() |
void |
loadOpcodes(LinkedList<Opcode> newOpcodes) |
void |
loadOpcodesFromResource() |
void |
updateOpcodeNumbers() |
public void loadOpcodes(LinkedList<Opcode> newOpcodes)
public void loadOpcodesFromResource() throws IOException
IOException
public LinkedList<Opcode> getOpcodes()
public Opcode getOpcode(ObjectName objectName, Opcode.Type type, String operand)
public Opcode getOpcode(ObjectName objectName, Opcode.Type type, String operand, String[] methodSignature)
Returns the OpcodeData for the specified ObjectName + args, or null if no opcode exists for that operation. Favors exact matches over pattern matches.
objectName
- methodSignature
- public Opcode[] addOpcode(Opcode newOpcode)
public void updateOpcodeNumbers()