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 classOpcode.Type
-
Field Summary
Fields Modifier and Type Field Description static intUNKNOWN_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 voidcopyMetadata(Opcode other)booleanequals(Object obj)ObjectNamegetObjectName()intgetOpcode()StringgetOperand()String[]getSignature()Opcode.TypegetType()inthashCode()booleanisPattern()booleanlesserEquals(Object obj)Match the 'important' parts of the opcode.booleanmatches(Opcode.Type type, String operand, String[] mbeanMethodSignature)booleanrequiresWriteAccess()voidsetOpcode(int number)booleansupportsUserTransactions()StringtoString()
-
-
-
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).
-
-