Package org.jf.dexlib2
Class Opcodes
- java.lang.Object
-
- org.jf.dexlib2.Opcodes
-
public class Opcodes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
api
Either the api level for dalvik opcodes, or the art version for art opcodesint
artVersion
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Opcodes
forApi(int api)
static Opcodes
forArtVersion(int artVersion)
static Opcodes
forDexVersion(int dexVersion)
static Opcodes
getDefault()
Opcode
getOpcodeByName(java.lang.String opcodeName)
Opcode
getOpcodeByValue(int opcodeValue)
java.lang.Short
getOpcodeValue(Opcode opcode)
boolean
isArt()
-
-
-
Method Detail
-
forApi
@Nonnull public static Opcodes forApi(int api)
-
forArtVersion
@Nonnull public static Opcodes forArtVersion(int artVersion)
-
forDexVersion
@Nonnull public static Opcodes forDexVersion(int dexVersion)
-
getDefault
@Nonnull public static Opcodes getDefault()
- Returns:
- a default Opcodes instance for when the exact Opcodes to use doesn't matter or isn't known
-
getOpcodeByName
@Nullable public Opcode getOpcodeByName(@Nonnull java.lang.String opcodeName)
-
getOpcodeByValue
@Nullable public Opcode getOpcodeByValue(int opcodeValue)
-
getOpcodeValue
@Nullable public java.lang.Short getOpcodeValue(@Nonnull Opcode opcode)
-
isArt
public boolean isArt()
-
-