Package org.jf.dexlib2.util
Class Preconditions
- java.lang.Object
-
- org.jf.dexlib2.util.Preconditions
-
public class Preconditions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Preconditions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
check35cAnd45ccRegisterCount(int registerCount)
static <L extends java.util.List<? extends java.lang.Number>>
LcheckArrayPayloadElements(int elementWidth, L elements)
static int
checkArrayPayloadElementWidth(int elementWidth)
static int
checkByteCodeOffset(int offset)
static int
checkByteLiteral(int literal)
static int
checkByteRegister(int register)
static int
checkFieldOffset(int fieldOffset)
static void
checkFormat(Opcode opcode, Format expectedFormat)
static int
checkInlineIndex(int inlineIndex)
static int
checkIntegerHatLiteral(int literal)
static long
checkLongHatLiteral(long literal)
static int
checkNibbleLiteral(int literal)
static int
checkNibbleRegister(int register)
static <T extends Reference>
TcheckReference(int referenceType, T reference)
static int
checkRegisterRangeCount(int registerCount)
static <C extends java.util.Collection<? extends SwitchElement>>
CcheckSequentialOrderedKeys(C elements)
static int
checkShortCodeOffset(int offset)
static int
checkShortLiteral(int literal)
static int
checkShortRegister(int register)
static void
checkValueArg(int valueArg, int maxValue)
static int
checkVerificationError(int verificationError)
static int
checkVtableIndex(int vtableIndex)
-
-
-
Method Detail
-
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 java.util.Collection<? extends SwitchElement>> C checkSequentialOrderedKeys(C elements)
-
checkArrayPayloadElementWidth
public static int checkArrayPayloadElementWidth(int elementWidth)
-
checkArrayPayloadElements
public static <L extends java.util.List<? extends java.lang.Number>> L checkArrayPayloadElements(int elementWidth, L elements)
-
checkReference
public static <T extends Reference> T checkReference(int referenceType, T reference)
-
-