public abstract class SymbolicFunction extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SymbolicEnvironment |
env |
| Constructor and Description |
|---|
SymbolicFunction(SymbolicEnvironment env,
String owner,
String name,
String desc) |
| Modifier and Type | Method and Description |
|---|---|
IntegerConstraint |
beforeExecuteFunction()
This callback-method is invoked by the VM before the actual execution of
the method.
|
abstract Object |
executeFunction()
Returns new symbolic return value.
|
protected Object |
getConcArgument(int i)
Returns the i-th concrete parameter.
|
protected boolean |
getConcBooleanArgument(int i)
Returns the i-th concrete parameter.
|
protected boolean |
getConcBooleanRetVal()
Returns the concrete return value of the concrete method execution.
|
protected byte |
getConcByteArgument(int i)
Returns the i-th concrete parameter.
|
protected byte |
getConcByteRetVal()
Returns the concrete return value of the concrete method execution.
|
protected char |
getConcCharArgument(int i)
Returns the i-th concrete parameter.
|
protected char |
getConcCharRetVal()
Returns the concrete return value of the concrete method execution.
|
protected double |
getConcDoubleArgument(int i)
Returns the i-th concrete parameter.
|
protected double |
getConcDoubleRetVal()
Returns the concrete return value of the concrete method execution.
|
protected float |
getConcFloatArgument(int i)
Returns the i-th concrete parameter.
|
protected float |
getConcFloatRetVal()
Returns the concrete return value of the concrete method execution.
|
protected int |
getConcIntArgument(int i)
Returns the i-th concrete parameter.
|
protected int |
getConcIntRetVal()
Returns the concrete return value of the concrete method execution.
|
protected long |
getConcLongArgument(int i)
Returns the i-th concrete parameter.
|
protected long |
getConcLongRetVal()
Returns the concrete return value of the concrete method execution.
|
protected Object |
getConcReceiver()
For non-static method invocations (neither constructors) returns the
concrete method receiver.
|
protected Object |
getConcRetVal()
Returns the concrete return value of the concrete method execution.
|
protected short |
getConcShortArgument(int i)
Returns the i-th concrete parameter.
|
protected short |
getConcShortRetVal()
Returns the concrete return value of the concrete method execution.
|
String |
getDesc() |
String |
getName() |
String |
getOwner() |
protected ReferenceExpression |
getSymbArgument(int i)
Returns the i-th symbolic parameter.
|
protected IntegerValue |
getSymbIntegerArgument(int i)
Returns the i-th symbolic parameter.
|
protected IntegerValue |
getSymbIntegerRetVal()
Returns the symbolic return value.
|
protected RealValue |
getSymbRealArgument(int i)
Returns the i-th symbolic parameter.
|
protected RealValue |
getSymbRealRetVal()
Returns the symbolic return value.
|
protected ReferenceConstant |
getSymbReceiver()
For non-static method invocations (not constructors) returns the symbolic
receiver.
|
protected ReferenceExpression |
getSymbRetVal()
Returns the symbolic return value.
|
protected final SymbolicEnvironment env
public SymbolicFunction(SymbolicEnvironment env, String owner, String name, String desc)
public final String getOwner()
public final String getName()
protected final ReferenceConstant getSymbReceiver()
protected final Object getConcReceiver()
protected final int getConcIntArgument(int i)
i - the parameter index.protected final short getConcShortArgument(int i)
i - the parameter index.protected final char getConcCharArgument(int i)
i - the parameter index.protected final double getConcDoubleArgument(int i)
i - the parameter index.protected final float getConcFloatArgument(int i)
i - the parameter index.protected final boolean getConcBooleanArgument(int i)
i - the parameter index.protected final byte getConcByteArgument(int i)
i - the parameter index.protected final long getConcLongArgument(int i)
i - the parameter index.protected final Object getConcArgument(int i)
i - the parameter index.protected final IntegerValue getSymbIntegerArgument(int i)
i - the parameter index.protected final RealValue getSymbRealArgument(int i)
i - the parameter index.protected final ReferenceExpression getSymbArgument(int i)
i - the parameter index.protected final ReferenceExpression getSymbRetVal()
protected final IntegerValue getSymbIntegerRetVal()
protected final RealValue getSymbRealRetVal()
public abstract Object executeFunction()
getSymbRetVal, getSymbRealRetVal and
getSymbIntegerRetVal methods.protected final int getConcIntRetVal()
protected final short getConcShortRetVal()
protected final char getConcCharRetVal()
protected final double getConcDoubleRetVal()
protected final float getConcFloatRetVal()
protected final boolean getConcBooleanRetVal()
protected final byte getConcByteRetVal()
protected final long getConcLongRetVal()
protected final Object getConcRetVal()
public final String getDesc()
public IntegerConstraint beforeExecuteFunction()
Copyright © 2010–2017 EvoSuite. All rights reserved.