public class Preconditions
extends java.lang.Object
| Constructor and Description |
|---|
Preconditions() |
| Modifier and Type | Method and Description |
|---|---|
static int |
check35cAnd45ccRegisterCount(int registerCount) |
static <L extends java.util.List<? extends java.lang.Number>> |
checkArrayPayloadElements(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> |
checkReference(int referenceType,
T reference) |
static int |
checkRegisterRangeCount(int registerCount) |
static <C extends java.util.Collection<? extends SwitchElement>> |
checkSequentialOrderedKeys(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) |
public static int checkNibbleRegister(int register)
public static int checkByteRegister(int register)
public static int checkShortRegister(int register)
public static int checkNibbleLiteral(int literal)
public static int checkByteLiteral(int literal)
public static int checkShortLiteral(int literal)
public static int checkIntegerHatLiteral(int literal)
public static long checkLongHatLiteral(long literal)
public static int checkByteCodeOffset(int offset)
public static int checkShortCodeOffset(int offset)
public static int check35cAnd45ccRegisterCount(int registerCount)
public static int checkRegisterRangeCount(int registerCount)
public static void checkValueArg(int valueArg,
int maxValue)
public static int checkFieldOffset(int fieldOffset)
public static int checkVtableIndex(int vtableIndex)
public static int checkInlineIndex(int inlineIndex)
public static int checkVerificationError(int verificationError)
public static <C extends java.util.Collection<? extends SwitchElement>> C checkSequentialOrderedKeys(C elements)
public static int checkArrayPayloadElementWidth(int elementWidth)
public static <L extends java.util.List<? extends java.lang.Number>> L checkArrayPayloadElements(int elementWidth,
L elements)
public static <T extends Reference> T checkReference(int referenceType, T reference)