public class NullStatement extends PrimitiveStatement<Void>
AbstractStatement.Executervalueassertions, comment, logger, retval, tc| Constructor and Description |
|---|
NullStatement(TestCase tc,
Type type)
Constructor for NullStatement.
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
copy(TestCase newTestCase,
int offset)
copy
|
void |
delta()
Add a random delta to the value
|
Throwable |
execute(Scope scope,
PrintStream out)
This method executes the statement under the given scope.
|
GenericAccessibleObject<?> |
getAccessibleObject()
Returns the accessibleObject which is used to generate this kind of
statement E.g.
|
List<VariableReference> |
getUniqueVariableReferences()
getUniqueVariableReferences
|
Set<VariableReference> |
getVariableReferences()
getVariableReferences
|
void |
randomize()
Set to a random value
|
void |
replace(VariableReference var1,
VariableReference var2)
Replace a VariableReference with another one
|
boolean |
same(Statement s)
Allows the comparing of Statements between TestCases.
|
void |
zero()
Reset value to default value 0
|
changeClassLoader, equals, getPrimitiveStatement, getPrimitiveStatement, getRandomStatement, getValue, hashCode, hasMoreThanOneValue, isAssignmentStatement, mutate, setValue, toStringaddAssertion, addComment, clone, clone, copyAssertions, exceptionHandler, getAssertionCode, getAssertionReferences, getAssertions, getCode, getCode, getComment, getDeclaredExceptions, getExceptionClass, getNumParameters, getPosition, getReturnClass, getReturnType, getReturnValue, getTestCase, hasAssertions, isAccessible, isDeclaredException, isReflectionStatement, isValid, negate, references, removeAssertion, removeAssertions, setAssertions, setRetvalpublic Throwable execute(Scope scope, PrintStream out) throws InvocationTargetException, IllegalArgumentException, IllegalAccessException, InstantiationException
execute in interface Statementexecute in class PrimitiveStatement<Void>scope - the scope under which the statement is executedout - a PrintStream object.InvocationTargetException - if any.IllegalArgumentException - if any.IllegalAccessException - if any.InstantiationException - if any.public List<VariableReference> getUniqueVariableReferences()
getUniqueVariableReferences
getUniqueVariableReferences in interface StatementgetUniqueVariableReferences in class PrimitiveStatement<Void>List object.public Set<VariableReference> getVariableReferences()
getVariableReferences
getVariableReferences in interface StatementgetVariableReferences in class PrimitiveStatement<Void>Set object.public void replace(VariableReference var1, VariableReference var2)
replace in interface Statementreplace in class PrimitiveStatement<Void>var1 - The old variablevar2 - The new variablepublic boolean same(Statement s)
public GenericAccessibleObject<?> getAccessibleObject()
getAccessibleObject in interface StatementgetAccessibleObject in class PrimitiveStatement<Void>AccessibleObject object.public void delta()
delta in class PrimitiveStatement<Void>public void zero()
zero in class PrimitiveStatement<Void>public void randomize()
randomize in class PrimitiveStatement<Void>Copyright © 2010–2017 EvoSuite. All rights reserved.