public class PathExtractor
extends java.lang.Object
com.sun.speech.freetts.interpretCartPaths - default false com.sun.speech.freetts.lazyCartCompile - default truecom.sun.speech.freetts.interpretCartPaths Instances of this class will optionally pre-compile the paths. Pre-compiling paths reduces the processing time and objects needed to extract a feature or an item based upon a path.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INTERPRET_PATHS_PROPERTY
If this system property is set to true, paths will not be compiled.
|
static java.lang.String |
LAZY_COMPILE_PROPERTY
If this system property is set to true, CART feature/item paths will
only be compiled as needed.
|
| Constructor and Description |
|---|
PathExtractor(java.lang.String pathAndFeature,
boolean wantFeature)
Creates a path for the given feature.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
findFeature(Item item)
Finds the feature associated with this Path.
|
Item |
findItem(Item item)
Finds the item associated with this Path.
|
java.lang.String |
toString() |
public static final java.lang.String INTERPRET_PATHS_PROPERTY
public static final java.lang.String LAZY_COMPILE_PROPERTY
public PathExtractor(java.lang.String pathAndFeature,
boolean wantFeature)
pathAndFeature - string to usewantFeature - do we need featurespublic Item findItem(Item item)
item - the item to start atpublic java.lang.Object findFeature(Item item)
item - the item to start atpublic java.lang.String toString()
toString in class java.lang.Object