public class BooleanHelper extends Object
BooleanHelper class.
| Modifier and Type | Field and Description |
|---|---|
static int |
FALSE |
static int |
K
Constant
K=Integer.MAX_VALUE - 2 |
static int |
TRUE |
| Constructor and Description |
|---|
BooleanHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
booleanToInt(boolean b)
booleanToInt
|
static void |
clearStack()
clearStack
|
static int |
compareBoolean(int a,
int b)
compareBoolean
|
static int |
doubleSubG(double d1,
double d2)
Replacement function for double comparison
|
static int |
doubleSubL(double d1,
double d2) |
static int |
editDistance_old(String s,
String t)
editDistance_old
|
static int |
floatSubG(float f1,
float f2)
Replacement function for float comparison
|
static int |
floatSubL(float f1,
float f2) |
static int |
fromDouble(double d)
Deprecated.
|
static int |
fromFloat(float d)
Deprecated.
|
static int |
fromLong(long d)
Deprecated.
|
static int |
getDistance(int branchId,
int approximationLevel,
int value)
Retrieve the distance of a predicate with its given approximation level
|
static int |
IAND(int a,
int b)
IAND
|
static int |
instanceOf(Object o,
Class<?> c)
Replacement function for the Java instanceof instruction, which returns a
distance integer
|
static int |
intSub(int a,
int b)
intSub
|
static boolean |
intToBoolean(int x)
intToBoolean
|
static int |
IOR(int a,
int b)
IOR
|
static int |
isEqual(Object o1,
Object o2,
int opcode)
isEqual
|
static int |
isNull(Object o,
int opcode)
Replacement function for the Java IFNULL instruction, returning a
distance integer
|
static int |
IXOR(int a,
int b)
IXOR
|
static int |
longSub(long l1,
long l2)
Replacement function for long comparison
|
static int |
min(int a,
int b,
int c)
min
|
static double |
normalize(int distance)
FIXME: the use of this function needs to be clarified
|
static int |
objectEquals(Object obj1,
Object obj2)
Helper function that is called instead of Object.equals
|
static Object |
popParameter(Object o)
popParameter
|
static boolean |
popParameterBoolean()
popParameterBoolean
|
static boolean |
popParameterBooleanFromInt()
popParameterBooleanFromInt
|
static byte |
popParameterByte()
popParameterByte
|
static char |
popParameterChar()
popParameterChar
|
static double |
popParameterDouble()
popParameterDouble
|
static float |
popParameterFloat()
popParameterFloat
|
static int |
popParameterInt()
popParameterInt
|
static int |
popParameterIntFromBoolean()
popParameterIntFromBoolean
|
static long |
popParameterLong()
popParameterLong
|
static Object |
popParameterObject()
popParameterObject
|
static short |
popParameterShort()
popParameterShort
|
static void |
pushParameter(boolean o)
pushParameter
|
static void |
pushParameter(byte o)
pushParameter
|
static void |
pushParameter(char o)
pushParameter
|
static void |
pushParameter(double o)
pushParameter
|
static void |
pushParameter(float o)
pushParameter
|
static void |
pushParameter(int o)
pushParameter
|
static void |
pushParameter(long o)
pushParameter
|
static void |
pushParameter(Object o)
pushParameter
|
static void |
pushParameter(short o)
pushParameter
|
static void |
pushPredicate(int distance,
int branchId)
Keep track of the distance for this predicate
|
public static final int K
K=Integer.MAX_VALUE - 2public static final int TRUE
public static final int FALSE
public static void clearStack()
clearStack
public static int objectEquals(Object obj1, Object obj2)
public static void pushPredicate(int distance,
int branchId)
branchId - a int.distance - a int.public static int getDistance(int branchId,
int approximationLevel,
int value)
branchId - a int.approximationLevel - a int.value - a int.public static double normalize(int distance)
distance - public static int doubleSubG(double d1,
double d2)
d1 - a double.d2 - a double.public static int doubleSubL(double d1,
double d2)
public static int floatSubG(float f1,
float f2)
f1 - a float.f2 - a float.public static int floatSubL(float f1,
float f2)
public static int intSub(int a,
int b)
intSub
a - a int.b - a int.public static int longSub(long l1,
long l2)
l1 - a long.l2 - a long.@Deprecated public static int fromDouble(double d)
fromDouble
d - a double.@Deprecated public static int fromFloat(float d)
fromFloat
d - a float.@Deprecated public static int fromLong(long d)
fromLong
d - a long.public static int booleanToInt(boolean b)
booleanToInt
b - a boolean.public static boolean intToBoolean(int x)
intToBoolean
x - a int.public static int min(int a,
int b,
int c)
min
a - a int.b - a int.c - a int.public static int compareBoolean(int a,
int b)
compareBoolean
a - a int.b - a int.public static int instanceOf(Object o, Class<?> c)
public static int isNull(Object o, int opcode)
o - opcode - opcode - a int.public static int IOR(int a,
int b)
IOR
a - a int.b - a int.public static int IAND(int a,
int b)
IAND
a - a int.b - a int.public static int IXOR(int a,
int b)
IXOR
a - a int.b - a int.public static boolean popParameterBooleanFromInt()
popParameterBooleanFromInt
public static int popParameterIntFromBoolean()
popParameterIntFromBoolean
public static boolean popParameterBoolean()
popParameterBoolean
public static char popParameterChar()
popParameterChar
public static byte popParameterByte()
popParameterByte
public static short popParameterShort()
popParameterShort
public static int popParameterInt()
popParameterInt
public static float popParameterFloat()
popParameterFloat
public static long popParameterLong()
popParameterLong
public static double popParameterDouble()
popParameterDouble
public static Object popParameterObject()
popParameterObject
Object object.public static void pushParameter(boolean o)
pushParameter
o - a boolean.public static void pushParameter(char o)
pushParameter
o - a char.public static void pushParameter(byte o)
pushParameter
o - a byte.public static void pushParameter(short o)
pushParameter
o - a short.public static void pushParameter(int o)
pushParameter
o - a int.public static void pushParameter(float o)
pushParameter
o - a float.public static void pushParameter(long o)
pushParameter
o - a long.public static void pushParameter(double o)
pushParameter
o - a double.Copyright © 2010–2017 EvoSuite. All rights reserved.