public final enum

DOpcodeType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pnfsoftware.jeb.core.units.code.android.ir.DOpcodeType

Class Overview

This enumeration defines the opcode types of the intermediate representation (IR) instructions used by dexdec. An IR instruction has two optional operands, opnd1 and opnd2.

Note that the IR_ASSIGN opcode can only be the the first instruction of an exception handler block; the IR_JUMP, IR_JCOND, IR_SWITCH, IR_RETURN, IR_THROW can only be the last instruction of a basic block.

See Also

Summary

Enum Values
DOpcodeType  IR_ASSIGN  Assignment. 
DOpcodeType  IR_INVOKE  General method invocation
- opnd1: null
- opnd2: an IDInvokeInfo expression (call, new, new-array)  
DOpcodeType  IR_JCOND  Conditional jump
- opnd1: the IDTarget, branched to if the conditional expression is true
- opnd2: the conditional expression, IDPredicate  
DOpcodeType  IR_JUMP  Unconditional jump
- opnd1: the IDTarget
- opnd2: null  
DOpcodeType  IR_MONITOR_ENTER  Notify the beginning of a synchronized block of code. 
DOpcodeType  IR_MONITOR_EXIT  Notify the end of a synchronized block of code. 
DOpcodeType  IR_NOP  No-operation instruction
- opnd1: null
- opnd2: null  
DOpcodeType  IR_RETURN  Method return
- opnd1: null
- opnd2: optional return value (may be null), an IDExpression  
DOpcodeType  IR_STORE_EXCEPTION  Store a caught typed exception to a variable
Very restrictive opcode, to be used only at the beginning of exception handlers blocks. 
DOpcodeType  IR_SWITCH  Switch (n-way conditional jump)
- opnd1: the IDSwitchData
- opnd2: the switched-on IDExpression  
DOpcodeType  IR_THROW  Raise an error or exception
- opnd1: null
- opnd2: non-null throwable, an IDExpression (should be an instance of java.lang.Throwable)  
Public Methods
static DOpcodeType valueOf(String name)
final static DOpcodeType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DOpcodeType IR_ASSIGN

Assignment.
- opnd1: destination (left) member, IDExpression
- opnd2: source (right) member, IDExpression

public static final DOpcodeType IR_INVOKE

General method invocation
- opnd1: null
- opnd2: an IDInvokeInfo expression (call, new, new-array)

public static final DOpcodeType IR_JCOND

Conditional jump
- opnd1: the IDTarget, branched to if the conditional expression is true
- opnd2: the conditional expression, IDPredicate

public static final DOpcodeType IR_JUMP

Unconditional jump
- opnd1: the IDTarget
- opnd2: null

public static final DOpcodeType IR_MONITOR_ENTER

Notify the beginning of a synchronized block of code.
Ideally, should not be translated to opcodes: instead the structurer should combine these opcodes with try-catch block to build synchronized code blocks.
However, if this is not possible, invalid statements (similar to 'goto') should be issued.
- opnd1: null
- opnd2: the lock object IDExpression

public static final DOpcodeType IR_MONITOR_EXIT

Notify the end of a synchronized block of code.
Ideally, should not be translated to opcodes: instead the structurer should combine these opcodes with try-catch block to build synchronized code blocks.
However, if this is not possible, invalid statements (similar to 'goto') should be issued.
- opnd1: null
- opnd2: the lock object IDExpression

public static final DOpcodeType IR_NOP

No-operation instruction
- opnd1: null
- opnd2: null

public static final DOpcodeType IR_RETURN

Method return
- opnd1: null
- opnd2: optional return value (may be null), an IDExpression

public static final DOpcodeType IR_STORE_EXCEPTION

Store a caught typed exception to a variable
Very restrictive opcode, to be used only at the beginning of exception handlers blocks. (equivalent to Dalvik's move-exception.)
- opnd1: IDVar
- opnd2: null

public static final DOpcodeType IR_SWITCH

Switch (n-way conditional jump)
- opnd1: the IDSwitchData
- opnd2: the switched-on IDExpression

public static final DOpcodeType IR_THROW

Raise an error or exception
- opnd1: null
- opnd2: non-null throwable, an IDExpression (should be an instance of java.lang.Throwable)

Public Methods

public static DOpcodeType valueOf (String name)

public static final DOpcodeType[] values ()