Class Opcode


  • public class Opcode
    extends Object
    • Field Detail

      • UNKNOWN_OPCODE

        public static int UNKNOWN_OPCODE
    • Constructor Detail

      • Opcode

        public Opcode​(ObjectName objectNamePattern,
                      Opcode.Type type,
                      boolean requiresWriteAccess,
                      String operand,
                      String[] methodSignature,
                      boolean supportsUserTx)
      • Opcode

        public Opcode​(int opcodeNumber,
                      ObjectName objectNamePattern,
                      Opcode.Type type,
                      boolean requiresWriteAccess,
                      String operand,
                      String[] methodSignature,
                      boolean supportsUserTx)
    • Method Detail

      • getObjectName

        public ObjectName getObjectName()
      • copyMetadata

        public void copyMetadata​(Opcode other)
      • requiresWriteAccess

        public boolean requiresWriteAccess()
      • getOperand

        public String getOperand()
      • getSignature

        public String[] getSignature()
      • getOpcode

        public int getOpcode()
      • setOpcode

        public void setOpcode​(int number)
      • isPattern

        public boolean isPattern()
      • supportsUserTransactions

        public boolean supportsUserTransactions()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • lesserEquals

        public boolean lesserEquals​(Object obj)

        Match the 'important' parts of the opcode. Used during opcode loading so we can update meta-information about an opcode (for example if the write permissions annotation changes for an MBean method - we don’t want a 'new' opcode in that case).