public class GenericDataAbstractor extends Object implements OperandPerturbator
Modifier and Type | Class and Description |
---|---|
class |
GenericDataAbstractor.Valuation |
Modifier and Type | Field and Description |
---|---|
protected int |
choices |
protected boolean |
isStatic |
protected MethodInfo |
mi |
protected int |
nParams |
protected int |
operandSize |
protected String[] |
paramNames |
protected String[] |
paramTypeNames |
protected byte[] |
paramTypes |
protected Random |
randomizer |
protected StackFrame |
stackFrame |
protected GenericDataAbstractor.Valuation |
valuation |
protected Vector<GenericDataAbstractor.Valuation> |
valuations |
Constructor and Description |
---|
GenericDataAbstractor(Config conf,
String keyPrefix) |
Modifier and Type | Method and Description |
---|---|
ChoiceGenerator<?> |
createChoiceGenerator(String id,
StackFrame frame,
Object refObject) |
Class<? extends ChoiceGenerator<?>> |
getChoiceGeneratorType() |
boolean |
perturb(ChoiceGenerator<?> cg,
StackFrame frame) |
int[] |
populateBoolean(MethodInfo mi,
String name) |
int[] |
populateByte(MethodInfo mi,
String name) |
int[] |
populateChar(MethodInfo mi,
String name) |
int[] |
populateDouble(MethodInfo mi,
String name) |
int[] |
populateFloat(MethodInfo mi,
String name) |
int[] |
populateInt(MethodInfo mi,
String name) |
int[] |
populateLong(MethodInfo mi,
String name) |
int[] |
populateShort(MethodInfo mi,
String name) |
void |
populateValuations(StackFrame frame,
int paramIndex,
int dataIndex) |
void |
setMethodInfo(MethodInfo m,
StackFrame frame) |
protected MethodInfo mi
protected StackFrame stackFrame
protected int nParams
protected byte[] paramTypes
protected String[] paramTypeNames
protected String[] paramNames
protected Vector<GenericDataAbstractor.Valuation> valuations
protected int choices
protected int operandSize
protected GenericDataAbstractor.Valuation valuation
protected boolean isStatic
protected Random randomizer
public void setMethodInfo(MethodInfo m, StackFrame frame)
public int[] populateBoolean(MethodInfo mi, String name)
public int[] populateChar(MethodInfo mi, String name)
public int[] populateByte(MethodInfo mi, String name)
public int[] populateInt(MethodInfo mi, String name)
public int[] populateShort(MethodInfo mi, String name)
public int[] populateLong(MethodInfo mi, String name)
public int[] populateFloat(MethodInfo mi, String name)
public int[] populateDouble(MethodInfo mi, String name)
public void populateValuations(StackFrame frame, int paramIndex, int dataIndex)
public ChoiceGenerator<?> createChoiceGenerator(String id, StackFrame frame, Object refObject)
createChoiceGenerator
in interface OperandPerturbator
public boolean perturb(ChoiceGenerator<?> cg, StackFrame frame)
perturb
in interface OperandPerturbator
public Class<? extends ChoiceGenerator<?>> getChoiceGeneratorType()
getChoiceGeneratorType
in interface OperandPerturbator