Package org.jf.dexlib2
Class Opcodes
java.lang.Object
org.jf.dexlib2.Opcodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intEither the api level for dalvik opcodes, or the art version for art opcodesfinal intprivate final Opcode[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpcodesforApi(int api) static OpcodesforArtVersion(int artVersion) static OpcodesforDexVersion(int dexVersion) static OpcodesgetOpcodeByName(String opcodeName) getOpcodeByValue(int opcodeValue) getOpcodeValue(Opcode opcode) booleanisArt()
-
Field Details
-
api
public final int apiEither the api level for dalvik opcodes, or the art version for art opcodes -
artVersion
public final int artVersion -
opcodesByValue
-
opcodeValues
-
opcodesByName
-
-
Constructor Details
-
Opcodes
private Opcodes(int api, int artVersion)
-
-
Method Details
-
forApi
-
forArtVersion
-
forDexVersion
-
getDefault
- Returns:
- a default Opcodes instance for when the exact Opcodes to use doesn't matter or isn't known
-
getOpcodeByName
-
getOpcodeByValue
-
getOpcodeValue
-
isArt
public boolean isArt()
-