public class TypeCollector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeCollector.VariableSummary
Pair of a variable name and a source location.
|
| Constructor and Description |
|---|
TypeCollector() |
| Modifier and Type | Method and Description |
|---|---|
Map<TypeCollector.VariableSummary,Value> |
getTypeInformation()
Returns the collected type information.
|
void |
presentTypeInformation()
Presents the collected type information using
System.out.println in the format
varname: location -> type |
void |
record(String variable_name,
SourceLocation source_location,
Value value)
Records a variable name along with its source location and abstract value.
|
public Map<TypeCollector.VariableSummary,Value> getTypeInformation()
public void presentTypeInformation()
System.out.println in the format
varname: location -> typepublic void record(String variable_name, SourceLocation source_location, Value value)
variable_name - the name of the variable to recordsource_location - the location in the source codevalue - the abstract value of the variableCopyright © 2012 Aarhus University