public final class ParamSymbols<S extends ParamSymbol>
extends java.lang.Object
Constructor and Description |
---|
ParamSymbols(ErrorStream error)
Construct symbol table with denoted error stream.
|
Modifier and Type | Method and Description |
---|---|
S |
get(TypeExpression[] atypes)
Returns value associated to argument types.
|
java.util.Collection<S> |
getSymbols()
Return collection of symbols in table.
|
boolean |
put(S value)
Puts symbol into table to be looked up for the symbol's argument types.
|
public ParamSymbols(ErrorStream error)
error
- the error stream.public java.util.Collection<S> getSymbols()
public boolean put(S value)
value
- the symbol.public S get(TypeExpression[] atypes)
atypes
- the array of argument types serving as key.