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 intapiEither the api level for dalvik opcodes, or the art version for art opcodesintartVersion
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpcodesforApi(int api)static OpcodesforArtVersion(int artVersion)static OpcodesforDexVersion(int dexVersion)static OpcodesgetDefault()OpcodegetOpcodeByName(java.lang.String opcodeName)OpcodegetOpcodeByValue(int opcodeValue)java.lang.ShortgetOpcodeValue(Opcode opcode)booleanisArt()
-
-
-
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()
-
-