Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.dex.code

public final Class Dop

extends Object
Class Inheritance
Imports
org.droidparts.dexmaker.dx.io.OpcodeInfo, .Opcodes

Representation of an opcode.

Field Summary

Modifier and TypeField and Description
private final int
family

Opcodes.isValid(); the opcode family

private final InsnFormat
format

non-null; the instruction format

private final boolean
hasResult

whether this opcode uses a result register

private final int
nextOpcode

Opcodes.isValid(); what opcode (by number) to try next when attempting to match an opcode to particular arguments; Opcodes.NO_NEXT to indicate that this is the last opcode to try in a particular chain

private final int
opcode

Opcodes.isValid(); the opcode value itself

Constructor Summary

AccessConstructor and Description
public
Dop(int
Opcodes.isValid(); the opcode value itself
opcode
,
int
Opcodes.isValid(); the opcode family
family
,
int
Opcodes.isValid(); what opcode (by number) to try next when attempting to match an opcode to particular arguments; Opcodes.NO_NEXT to indicate that this is the last opcode to try in a particular chain
nextOpcode
,
InsnFormat
non-null; the instruction format
format
,
boolean
whether the opcode has a result register; if so it is always the first register
hasResult
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode family
getFamily
()

Gets the opcode family.

public InsnFormat

Returns:

non-null; the instruction format
getFormat
()

Gets the instruction format.

public String

Returns:

non-null; the opcode name
getName
()

Gets the opcode name.

public int

Returns:

Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode value
getNextOpcode
()

Gets the opcode value to try next when attempting to match an opcode to particular arguments.

public int

Returns:

Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode value
getOpcode
()

Gets the opcode value.

public Dop

Returns:

non-null; the opposite test
getOppositeTest
()

Gets the opcode for the opposite test of this instance.

public boolean

Returns:

true iff this opcode uses a result register
hasResult
()

Returns whether this opcode uses a result register.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

familyback to summary
private final int family

Opcodes.isValid(); the opcode family

formatback to summary
private final InsnFormat format

non-null; the instruction format

hasResultback to summary
private final boolean hasResult

whether this opcode uses a result register

nextOpcodeback to summary
private final int nextOpcode

Opcodes.isValid(); what opcode (by number) to try next when attempting to match an opcode to particular arguments; Opcodes.NO_NEXT to indicate that this is the last opcode to try in a particular chain

opcodeback to summary
private final int opcode

Opcodes.isValid(); the opcode value itself

Constructor Detail

Dopback to summary
public Dop(int opcode, int family, int nextOpcode, InsnFormat format, boolean hasResult)

Constructs an instance.

Parameters
opcode:int

Opcodes.isValid(); the opcode value itself

family:int

Opcodes.isValid(); the opcode family

nextOpcode:int

Opcodes.isValid(); what opcode (by number) to try next when attempting to match an opcode to particular arguments; Opcodes.NO_NEXT to indicate that this is the last opcode to try in a particular chain

format:InsnFormat

non-null; the instruction format

hasResult:boolean

whether the opcode has a result register; if so it is always the first register

Method Detail

getFamilyback to summary
public int getFamily()

Gets the opcode family. The opcode family is the unmarked (no "/...") opcode that has equivalent semantics to this one.

Returns:int

Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode family

getFormatback to summary
public InsnFormat getFormat()

Gets the instruction format.

Returns:InsnFormat

non-null; the instruction format

getNameback to summary
public String getName()

Gets the opcode name.

Returns:String

non-null; the opcode name

getNextOpcodeback to summary
public int getNextOpcode()

Gets the opcode value to try next when attempting to match an opcode to particular arguments. This returns Opcodes.NO_NEXT to indicate that this is the last opcode to try in a particular chain.

Returns:int

Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode value

getOpcodeback to summary
public int getOpcode()

Gets the opcode value.

Returns:int

Opcodes.MIN_VALUE..Opcodes.MAX_VALUE; the opcode value

getOppositeTestback to summary
public Dop getOppositeTest()

Gets the opcode for the opposite test of this instance. This is only valid for opcodes which are in fact tests.

Returns:Dop

non-null; the opposite test

hasResultback to summary
public boolean hasResult()

Returns whether this opcode uses a result register.

Returns:boolean

true iff this opcode uses a result register

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override