public class Opcode extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Opcode.Type |
Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_OPCODE |
Constructor and Description |
---|
Opcode(int opcodeNumber,
ObjectName objectNamePattern,
Opcode.Type type,
boolean requiresWriteAccess,
String operand,
String[] methodSignature) |
Opcode(ObjectName objectNamePattern,
Opcode.Type type,
boolean requiresWriteAccess,
String operand,
String[] methodSignature) |
Modifier and Type | Method and 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) |
String |
toString() |
public Opcode(ObjectName objectNamePattern, Opcode.Type type, boolean requiresWriteAccess, String operand, String[] methodSignature)
public Opcode(int opcodeNumber, ObjectName objectNamePattern, Opcode.Type type, boolean requiresWriteAccess, String operand, String[] methodSignature)
public ObjectName getObjectName()
public Opcode.Type getType()
public void copyMetadata(Opcode other)
public boolean requiresWriteAccess()
public String getOperand()
public String[] getSignature()
public int getOpcode()
public void setOpcode(int number)
public boolean isPattern()
public boolean matches(Opcode.Type type, String operand, String[] mbeanMethodSignature)
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).