Package org.jf.dexlib2.util
Class Preconditions
java.lang.Object
org.jf.dexlib2.util.Preconditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcheck35cAnd45ccRegisterCount(int registerCount) checkArrayPayloadElements(int elementWidth, L elements) static intcheckArrayPayloadElementWidth(int elementWidth) static intcheckByteCodeOffset(int offset) static intcheckByteLiteral(int literal) static intcheckByteRegister(int register) static intcheckFieldOffset(int fieldOffset) static voidcheckFormat(Opcode opcode, Format expectedFormat) static intcheckInlineIndex(int inlineIndex) static intcheckIntegerHatLiteral(int literal) static longcheckLongHatLiteral(long literal) static intcheckNibbleLiteral(int literal) static intcheckNibbleRegister(int register) static <T extends Reference>
TcheckReference(int referenceType, T reference) static intcheckRegisterRangeCount(int registerCount) static <C extends Collection<? extends SwitchElement>>
CcheckSequentialOrderedKeys(C elements) static intcheckShortCodeOffset(int offset) static intcheckShortLiteral(int literal) static intcheckShortRegister(int register) static voidcheckValueArg(int valueArg, int maxValue) static intcheckVerificationError(int verificationError) static intcheckVtableIndex(int vtableIndex)
-
Constructor Details
-
Preconditions
public Preconditions()
-
-
Method Details
-
checkFormat
-
checkNibbleRegister
public static int checkNibbleRegister(int register) -
checkByteRegister
public static int checkByteRegister(int register) -
checkShortRegister
public static int checkShortRegister(int register) -
checkNibbleLiteral
public static int checkNibbleLiteral(int literal) -
checkByteLiteral
public static int checkByteLiteral(int literal) -
checkShortLiteral
public static int checkShortLiteral(int literal) -
checkIntegerHatLiteral
public static int checkIntegerHatLiteral(int literal) -
checkLongHatLiteral
public static long checkLongHatLiteral(long literal) -
checkByteCodeOffset
public static int checkByteCodeOffset(int offset) -
checkShortCodeOffset
public static int checkShortCodeOffset(int offset) -
check35cAnd45ccRegisterCount
public static int check35cAnd45ccRegisterCount(int registerCount) -
checkRegisterRangeCount
public static int checkRegisterRangeCount(int registerCount) -
checkValueArg
public static void checkValueArg(int valueArg, int maxValue) -
checkFieldOffset
public static int checkFieldOffset(int fieldOffset) -
checkVtableIndex
public static int checkVtableIndex(int vtableIndex) -
checkInlineIndex
public static int checkInlineIndex(int inlineIndex) -
checkVerificationError
public static int checkVerificationError(int verificationError) -
checkSequentialOrderedKeys
public static <C extends Collection<? extends SwitchElement>> C checkSequentialOrderedKeys(C elements) -
checkArrayPayloadElementWidth
public static int checkArrayPayloadElementWidth(int elementWidth) -
checkArrayPayloadElements
-
checkReference
-