public class StdTypeEnvironment extends Object implements TypeInferer.Environment
| Constructor and Description |
|---|
StdTypeEnvironment() |
StdTypeEnvironment(Map<WyalFile.VariableDeclaration,WyalFile.Type> refinements) |
| Modifier and Type | Method and Description |
|---|---|
Set<WyalFile.VariableDeclaration> |
getRefinedVariables() |
WyalFile.Type |
getType(WyalFile.VariableDeclaration var)
Return the current type associated with a given variable.
|
TypeInferer.Environment |
refineType(WyalFile.VariableDeclaration var,
WyalFile.Type refinement)
Refine the type associated with a given variable declaration in this
environment, which produces a completely new environment containing
the refined type.
|
String |
toString() |
public StdTypeEnvironment()
public StdTypeEnvironment(Map<WyalFile.VariableDeclaration,WyalFile.Type> refinements)
public WyalFile.Type getType(WyalFile.VariableDeclaration var)
TypeInferer.EnvironmentgetType in interface TypeInferer.Environmentpublic TypeInferer.Environment refineType(WyalFile.VariableDeclaration var, WyalFile.Type refinement)
TypeInferer.EnvironmentrefineType in interface TypeInferer.Environmentpublic Set<WyalFile.VariableDeclaration> getRefinedVariables()
getRefinedVariables in interface TypeInferer.EnvironmentCopyright © 2017. All rights reserved.