public class BuildContextGenerator extends AbstractContextGenerator
Constructor and Description |
---|
BuildContextGenerator()
Creates a new context generator for making decisions about combining constitients togehter.
|
BuildContextGenerator(Dictionary dict) |
Modifier and Type | Method and Description |
---|---|
String[] |
getContext(Object o) |
String[] |
getContext(Parse[] constituents,
int index)
Returns the predictive context used to determine how constituent at the specified index
should be combined with other contisuents.
|
public BuildContextGenerator()
public BuildContextGenerator(Dictionary dict)
public String[] getContext(Parse[] constituents, int index)
constituents
- The constituents which have yet to be combined into new constituents.index
- The index of the constituent whcihi is being considered.Copyright © 2017 The Apache Software Foundation. All rights reserved.