com.meyling.principia.io
Class ParsingTable
java.lang.Object
|
+--com.meyling.principia.io.ParsingTable
- public class ParsingTable
- extends Object
Table for Argument Positions.
- Version:
- $Revision 0.00.50$
- Author:
- Michael Meyling
|
Field Summary |
private Map |
table
table which maps an argument to its position |
|
Constructor Summary |
ParsingTable()
Constructs a new parsing table. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
table
private final Map table
- table which maps an argument to its position
ParsingTable
public ParsingTable()
- Constructs a new parsing table.
get
public final Position get(Argument argument)
- Get position of argument.
- Parameters:
argument - lookup information for this argument- Returns:
- position information
- Throws:
IllegalArgumentException - if argument is unknown
put
public final void put(Argument argument,
Position position)
- Put argument position.
- Parameters:
argument - lookup information for this argumentposition - argument has this position- Throws:
IllegalArgumentException - if argument was already there