public class Scope extends Object
| Constructor and Description |
|---|
Scope()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<VariableReference> |
getElements(Type type)
Get all elements in scope of type
|
Object |
getObject(VariableReference reference)
Get current value of variable
|
Collection<Object> |
getObjects()
Get all objects in scope
|
Collection<Object> |
getObjects(Type type)
Get all objects of a given type in scope
|
Collection<VariableReference> |
getVariables()
Get all variableReferences in scope
|
void |
printPool()
Debug output
|
void |
setObject(VariableReference reference,
Object o)
Set variable to new value
|
String |
toString() |
public void setObject(VariableReference reference, Object o)
reference - VariableReferenceo - Valuepublic void printPool()
public Object getObject(VariableReference reference)
reference - VariableReference we are looking forpublic List<VariableReference> getElements(Type type)
type - Class we are looking forpublic Collection<Object> getObjects()
public Collection<VariableReference> getVariables()
public Collection<Object> getObjects(Type type)
type - a Type object.Copyright © 2010–2017 EvoSuite. All rights reserved.