public class IndexedFieldParser extends Object implements Parser<IndexedFieldParser.Result>
Syntax examples:
Person.lastNamePerson.friends.elementPerson.grades.key| Modifier and Type | Class and Description |
|---|---|
static class |
IndexedFieldParser.Result
Result returned from an
IndexedFieldParser parse. |
| Constructor and Description |
|---|
IndexedFieldParser() |
| Modifier and Type | Method and Description |
|---|---|
protected Predicate<? super Field<?>> |
getFieldFilter() |
protected Predicate<? super SimpleField<?>> |
getSubFieldFilter() |
IndexedFieldParser.Result |
parse(ParseSession session,
ParseContext ctx,
boolean complete)
Parse text from the given parse context.
|
public IndexedFieldParser.Result parse(ParseSession session, ParseContext ctx, boolean complete)
ParserGenerally speaking, this method may assume that any whitespace allowed before the item being parsed has already been skipped over (that's a matter for the containing parser).
parse in interface Parser<IndexedFieldParser.Result>session - parse sessionctx - input to parsecomplete - false if parse is "for real", true if only for tab completion calculationprotected Predicate<? super SimpleField<?>> getSubFieldFilter()
Copyright © 2017. All rights reserved.