public class LogicTypeTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static BitType |
bitType |
static BooleanType |
booleanType |
static IntType |
intType |
static NatType |
natType |
static RealType |
realType |
static StringType |
stringType |
Constructor and Description |
---|
LogicTypeTable(ErrorStream error)
Construct a table for making types unique.
|
Modifier and Type | Method and Description |
---|---|
Type |
process(Type type)
Return (if possible) canonical version of the type
|
void |
resetStateContext()
Reset the current state context.
|
LogicChecking |
setChecker(LogicChecking checker)
Set checker to be used for type-checking terms in types;
must be called before process() is called.
|
void |
setStateContext(StateType stateType,
Name[] stateVars,
Name[] stateExcs)
Set the current state context.
|
public static final BooleanType booleanType
public static final BitType bitType
public static final NatType natType
public static final IntType intType
public static final RealType realType
public static final StringType stringType
public LogicTypeTable(ErrorStream error)
error
- the stream on which to print errors.public LogicChecking setChecker(LogicChecking checker)
checker
- the checker for type-checking terms in types
(null means that no checker is in use)public void setStateContext(StateType stateType, Name[] stateVars, Name[] stateExcs)
stateType
- the current state type.stateVars
- the assignable variables.stateExcs
- the throwable exceptions.public void resetStateContext()