Class OpcodeManager
- java.lang.Object
-
- com.opencloud.rhino.management.opcode.OpcodeManager
-
public class OpcodeManager extends Object
-
-
Constructor Summary
Constructors Constructor Description OpcodeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
loadOpcodes
public void loadOpcodes(LinkedList<Opcode> newOpcodes)
-
loadOpcodesFromResource
public void loadOpcodesFromResource() throws IOException
- Throws:
IOException
-
getOpcodes
public LinkedList<Opcode> getOpcodes()
-
getOpcode
public Opcode getOpcode(ObjectName objectName, Opcode.Type type, String operand)
-
getOpcode
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.
- Parameters:
objectName
-methodSignature
-
-
addOpcode
public Opcode[] addOpcode(Opcode newOpcode)
- Returns:
- \{} if the opcode unchanged, \{ newOpcode } for new opcodes, \{ oldOpcode, newOpcode } for changed opcodes
-
updateOpcodeNumbers
public void updateOpcodeNumbers()
-
-