abstract class SimpleParser extends StructuredParser
AbstractParser.Submodes
braceLevelURL, environment, indexFacts, language, submodes, tokens
Modifier | Constructor and Description |
---|---|
protected |
SimpleParser(ParserEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
protected Item |
anyItems(boolean topLevel)
A collection of one or more items.
|
private Item |
anyItemsBody(boolean topLevel) |
protected abstract Item |
combineItems(Item topLevelItem,
Item item) |
private Item |
getItemAsPositiveItem(Item item,
NotItem not)
Returns the content of the given item as an item to be added as a positive item.
|
protected Item |
handleComposite(boolean topLevel) |
private boolean |
needNewTopLevel(Item topLevelItem,
Item item)
Says whether we need a new top level item given the new item
|
protected abstract Item |
negativeItem() |
protected Item |
positiveItem() |
private NotItem |
removeNot(CompositeItem composite)
Removes and returns the first not found in the composite,
or returns null if there's none
|
compositeItem, indexableItem, setSubmodeFromIndex
normalize, parse, parse, parseItems, segment, setState, simplifyPhrases, tokenize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse
protected SimpleParser(ParserEnvironment environment)
protected Item handleComposite(boolean topLevel)
handleComposite
in class StructuredParser
protected abstract Item negativeItem()
protected Item anyItems(boolean topLevel)
private Item anyItemsBody(boolean topLevel)
private boolean needNewTopLevel(Item topLevelItem, Item item)
private NotItem removeNot(CompositeItem composite)
protected Item positiveItem()
Copyright © 2018. All rights reserved.