public abstract class Dictionary extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Dictionary.Entry |
| Constructor and Description |
|---|
Dictionary() |
| Modifier and Type | Method and Description |
|---|---|
abstract Dictionary.Entry |
lookup(int pos)
look for a dictionary entry matching the token sequence beginning at
token
pos. |
Dictionary.Entry |
lookup(String[] tokens,
int pos)
look for a dictionary entry matching the token sequence beginning at
position
pos of token sequence tokens. |
abstract void |
lookupStart(String[] tokens)
initializes the dictionary look-up process for the text consisting of
tokens
tokens. |
public abstract void lookupStart(String[] tokens)
tokens.public abstract Dictionary.Entry lookup(int pos)
pos.pos - the position within the token array passed to lookupStartnull if no entry matchespublic Dictionary.Entry lookup(String[] tokens, int pos)
pos of token sequence tokens.null if no entry matchesCopyright © 2016 New York University. All rights reserved.