public class Dictionary extends Object
Token,
Classifier| Constructor and Description |
|---|
Dictionary()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String v,
int t)
Adds the specified string/type to the dictionary.
|
boolean |
add(Token t)
Adds the specified token to the dictionary.
|
Token |
find(String v)
Attempts to find the specified string in the dictionary.
|
int |
getMaxID()
Returns the largest ID.
|
void |
setMaxID(int i)
Sets the largest ID.
|
String |
toString()
Formats the dictionary as a String.
|
public int getMaxID()
public void setMaxID(int i)
public boolean add(Token t)
t - The token to add.public boolean add(String v, int t)
v - The string value.t - The type.public Token find(String v)
v - The string value.Copyright © 2023. All rights reserved.