Class Opcode
- java.lang.Object
-
- com.opencloud.rhino.management.opcode.Opcode
-
public class Opcode extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Opcode.Type
-
Field Summary
Fields Modifier and Type Field Description static int
UNKNOWN_OPCODE
-
Constructor Summary
Constructors Constructor Description Opcode(int opcodeNumber, ObjectName objectNamePattern, Opcode.Type type, boolean requiresWriteAccess, String operand, String[] methodSignature, boolean supportsUserTx)
Opcode(ObjectName objectNamePattern, Opcode.Type type, boolean requiresWriteAccess, String operand, String[] methodSignature, boolean supportsUserTx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyMetadata(Opcode other)
boolean
equals(Object obj)
ObjectName
getObjectName()
int
getOpcode()
String
getOperand()
String[]
getSignature()
Opcode.Type
getType()
int
hashCode()
boolean
isPattern()
boolean
lesserEquals(Object obj)
Match the 'important' parts of the opcode.boolean
matches(Opcode.Type type, String operand, String[] mbeanMethodSignature)
boolean
requiresWriteAccess()
void
setOpcode(int number)
boolean
supportsUserTransactions()
String
toString()
-
-
-
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()
-
getType
public Opcode.Type getType()
-
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()
-
matches
public boolean matches(Opcode.Type type, String operand, String[] mbeanMethodSignature)
-
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).
-
-