Class Opcodes


  • public class Opcodes
    extends java.lang.Object
    • Field Detail

      • api

        public final int api
        Either the api level for dalvik opcodes, or the art version for art opcodes
      • artVersion

        public final int artVersion
    • 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()