This class implements the "Advanced Search Mode" described in the help
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | GrammarBasedSearchRule.
Search results in boolean. |
| public static class | |
| public static enum | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private String | |
| private final EnumSet | |
| private List | |
| private ParseTree |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | applyRule(String query, BibEntry bibEntry)
Implements org.
|
| public String | |
| public EnumSet | |
| public ParseTree | |
| private void | |
| public static boolean | |
| public boolean |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Hides org. | |
| query | back to summary |
|---|---|
| private String query | |
| searchFlags | back to summary |
|---|---|
| private final EnumSet<SearchRules. Hides org. | |
| searchResults | back to summary |
|---|---|
| private List<SearchResult> searchResults | |
| tree | back to summary |
|---|---|
| private ParseTree tree | |
| GrammarBasedSearchRule | back to summary |
|---|---|
| public GrammarBasedSearchRule(EnumSet<SearchRules. | |
| applyRule | back to summary |
|---|---|
| public boolean applyRule(String query, BibEntry bibEntry) Implements org.
| |
| getQuery | back to summary |
|---|---|
| public String getQuery() | |
| getSearchFlags | back to summary |
|---|---|
| public EnumSet Overrides org. | |
| getTree | back to summary |
|---|---|
| public ParseTree getTree() | |
| init | back to summary |
|---|---|
| private void init(String query) throws ParseCancellationException | |
| isValid | back to summary |
|---|---|
| public static boolean isValid(EnumSet<SearchRules. | |
| validateSearchStrings | back to summary |
|---|---|
| public boolean validateSearchStrings(String query) Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final BibEntry | |
| private final EnumSet |
| Access | Constructor and Description |
|---|---|
| public |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| searchFlags | back to summary |
|---|---|
| private final EnumSet<SearchRules. | |
| BibtexSearchVisitor | back to summary |
|---|---|
| public BibtexSearchVisitor(EnumSet<SearchRules. | |
| comparison | back to summary |
|---|---|
| public boolean comparison(String field, GrammarBasedSearchRule. | |
| visitBinaryExpression | back to summary |
|---|---|
| public Boolean visitBinaryExpression(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by the The default implementation returns the result of calling
| |
| visitComparison | back to summary |
|---|---|
| public Boolean visitComparison(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by The default implementation returns the result of calling
| |
| visitParenExpression | back to summary |
|---|---|
| public Boolean visitParenExpression(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by the The default implementation returns the result of calling
| |
| visitStart | back to summary |
|---|---|
| public Boolean visitStart(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by The default implementation returns the result of calling
| |
| visitUnaryExpression | back to summary |
|---|---|
| public Boolean visitUnaryExpression(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by the The default implementation returns the result of calling
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Pattern | |
| private final GrammarBasedSearchRule. | |
| private final Pattern |
| Access | Constructor and Description |
|---|---|
| public | Comparator(String field, String value, GrammarBasedSearchRule.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| private Predicate | |
| public boolean |
| fieldPattern | back to summary |
|---|---|
| private final Pattern fieldPattern | |
| operator | back to summary |
|---|---|
| private final GrammarBasedSearchRule. | |
| valuePattern | back to summary |
|---|---|
| private final Pattern valuePattern | |
| Comparator | back to summary |
|---|---|
| public Comparator(String field, String value, GrammarBasedSearchRule. | |
| compare | back to summary |
|---|---|
| public boolean compare(BibEntry entry) | |
| matchFieldKey | back to summary |
|---|---|
| private Predicate | |
| matchFieldValue | back to summary |
|---|---|
| public boolean matchFieldValue(String content) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final GrammarBasedSearchRule. | |
| public static final GrammarBasedSearchRule. | |
| public static final GrammarBasedSearchRule. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GrammarBasedSearchRule. | |
| public static GrammarBasedSearchRule. | |
| public static GrammarBasedSearchRule. |
| CONTAINS | back to summary |
|---|---|
| public static final GrammarBasedSearchRule. | |
| DOES_NOT_CONTAIN | back to summary |
|---|---|
| public static final GrammarBasedSearchRule. | |
| EXACT | back to summary |
|---|---|
| public static final GrammarBasedSearchRule. | |
| ComparisonOperator | back to summary |
|---|---|
| private ComparisonOperator() | |
| build | back to summary |
|---|---|
| public static GrammarBasedSearchRule. | |
| valueOf | back to summary |
|---|---|
| public static GrammarBasedSearchRule. | |
| values | back to summary |
|---|---|
| public static GrammarBasedSearchRule. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final GrammarBasedSearchRule. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | syntaxError(Recognizer<?, ?>
What parser got the error. From this
object, you can access the context as well
as the input stream. recognizer, Object The offending token in the input token
stream, unless recognizer is a lexer (then it's null). If
no viable alternative error, offendingSymbol, int e has token at which we
started production for the decision.The line number in the input where the error occurred. line, int The character position within that line where the error occurred. charPositionInLine, String The message to emit. msg, RecognitionException The exception generated by the parser that led to
the reporting of an error. It is null in the case where
the parser was able to recover in line without exiting the
surrounding rule. e)Overrides org. Implements org. Upon syntax error, notify any interested parties. |
| INSTANCE | back to summary |
|---|---|
| public static final GrammarBasedSearchRule. | |
| ThrowingErrorListener | back to summary |
|---|---|
| public ThrowingErrorListener() | |
| syntaxError | back to summary |
|---|---|
| public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException Overrides org. Implements org. Doc from org. Upon syntax error, notify any interested parties. This is not how to
recover from errors or compute error messages. The
| |