public class ConstantValue extends VariableReferenceImpl
ConstantValue class.
changeListener, stPosition, testCase, type| Constructor and Description |
|---|
ConstantValue(TestCase testCase,
GenericClass type)
Constructor for ConstantValue.
|
ConstantValue(TestCase testCase,
GenericClass type,
Object value) |
ConstantValue(TestCase testCase,
Type type)
Constructor for ConstantValue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeClassLoader(ClassLoader loader)
changeClassLoader
|
VariableReference |
clone(TestCase newTestCase)
Create a copy of the current variable for new test
|
VariableReference |
copy(TestCase newTestCase,
int offset)
Create a copy of the current variable for new test
|
String |
getName()
Return name for source code representation
|
Object |
getObject(Scope scope)
Return the actual object represented by this variable for a given scope
|
int |
getStPosition()
The position of the statement, defining this VariableReference, in the
testcase.
|
Object |
getValue()
Getter for the field
value. |
boolean |
same(VariableReference r)
same
|
void |
setValue(Object value)
Setter for the field
value. |
clone, compareTo, getAdditionalVariableReference, getClassName, getComponentClass, getComponentName, getComponentType, getDefaultValue, getDefaultValueString, getDistance, getGenericClass, getOriginalCode, getSimpleClassName, getTestCase, getType, getVariableClass, isAccessible, isArray, isArrayIndex, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isEnum, isFieldReference, isPrimitive, isString, isVoid, isWrapperType, loadBytecode, replaceAdditionalVariableReference, setAdditionalVariableReference, setDistance, setObject, setOriginalCode, setType, storeBytecode, toStringpublic ConstantValue(TestCase testCase, GenericClass type)
Constructor for ConstantValue.
testCase - a TestCase object.type - a GenericClass object.public ConstantValue(TestCase testCase, GenericClass type, Object value)
public VariableReference copy(TestCase newTestCase, int offset)
copy in interface VariableReferencecopy in class VariableReferenceImplnewTestCase - a TestCase object.offset - a int.VariableReference object.public VariableReference clone(TestCase newTestCase)
VariableReferenceImplclone in interface VariableReferenceclone in class VariableReferenceImplnewTestCase - a TestCase object.VariableReference object.public void setValue(Object value)
Setter for the field value.
value - a Object object.public int getStPosition()
getStPosition in interface VariableReferencegetStPosition in class VariableReferenceImplpublic String getName()
getName in interface VariableReferencegetName in class VariableReferenceImplString object.public Object getObject(Scope scope)
getObject in interface VariableReferencegetObject in class VariableReferenceImplscope - The scope of the test case executionObject object.public boolean same(VariableReference r)
same
same in interface VariableReferencesame in class VariableReferenceImplr - a VariableReference object.public void changeClassLoader(ClassLoader loader)
VariableReferenceImplchangeClassLoader
changeClassLoader in interface VariableReferencechangeClassLoader in class VariableReferenceImplloader - a ClassLoader object.Copyright © 2010–2017 EvoSuite. All rights reserved.