Class Dop
java.lang.Object
com.android.dx.dex.code.Dop
Representation of an opcode.
- 
Constructor SummaryConstructorsConstructorDescriptionDop(int opcode, int family, int nextOpcode, InsnFormat format, boolean hasResult) Constructs an instance.
- 
Method SummaryModifier and TypeMethodDescriptionintGets the opcode family.Gets the instruction format.getName()Gets the opcode name.intGets the opcode value to try next when attempting to match an opcode to particular arguments.intGets the opcode value.Gets the opcode for the opposite test of this instance.booleanReturns whether this opcode uses a result register.toString()
- 
Constructor Details- 
DopConstructs an instance.- Parameters:
- opcode-- Opcodes.isValid();the opcode value itself
- family-- Opcodes.isValid();the opcode family
- nextOpcode-- Opcodes.isValid();what opcode (by number) to try next when attempting to match an opcode to particular arguments;- Opcodes.NO_NEXTto indicate that this is the last opcode to try in a particular chain
- format-- non-null;the instruction format
- hasResult- whether the opcode has a result register; if so it is always the first register
 
 
- 
- 
Method Details- 
toString
- 
getOpcodepublic int getOpcode()Gets the opcode value.- Returns:
- Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;the opcode value
 
- 
getFamilypublic int getFamily()Gets the opcode family. The opcode family is the unmarked (no "/...") opcode that has equivalent semantics to this one.- Returns:
- Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;the opcode family
 
- 
getFormatGets the instruction format.- Returns:
- non-null;the instruction format
 
- 
hasResultpublic boolean hasResult()Returns whether this opcode uses a result register.- Returns:
- trueiff this opcode uses a result register
 
- 
getName
- 
getNextOpcodepublic int getNextOpcode()Gets the opcode value to try next when attempting to match an opcode to particular arguments. This returnsOpcodes.NO_NEXTto indicate that this is the last opcode to try in a particular chain.- Returns:
- Opcodes.MIN_VALUE..Opcodes.MAX_VALUE;the opcode value
 
- 
getOppositeTestGets the opcode for the opposite test of this instance. This is only valid for opcodes which are in fact tests.- Returns:
- non-null;the opposite test
 
 
-