BibEntry and returns whether the entry matches.
Operator semantics mirror org..
Pseudo-fields supported: any / anyfield, key, entrytype, anykeyword.
| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private static final Cache | COMPILED_PATTERNS
Compiled regexes shared across all visitor instances (one instance is created per |
| private final BibEntry | |
| private static final String | |
| private final Character | |
| private static final Logger | |
| private final EnumSet |
| Access | Constructor and Description |
|---|---|
| pack-priv | BibEntryMatchVisitor(BibEntry entry, EnumSet<SearchFlags> searchBarFlags, Character keywordSeparator)
|
| COMPILED_PATTERNS | back to summary |
|---|---|
| private static final Cache<BibEntryMatchVisitor. Compiled regexes shared across all visitor instances (one instance is created per | |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| GROUPS_FIELD_NAME | back to summary |
|---|---|
| private static final String GROUPS_FIELD_NAME | |
| keywordSeparator | back to summary |
|---|---|
| private final Character keywordSeparator | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| searchBarFlags | back to summary |
|---|---|
| private final EnumSet<SearchFlags> searchBarFlags | |
| BibEntryMatchVisitor | back to summary |
|---|---|
| pack-priv BibEntryMatchVisitor(BibEntry entry, EnumSet<SearchFlags> searchBarFlags, Character keywordSeparator) | |
| isFieldPresent | back to summary |
|---|---|
| private boolean isFieldPresent(String fieldName) | |
| mapOperator | back to summary |
|---|---|
| private static BibEntryMatchVisitor. | |
| matchAnyField | back to summary |
|---|---|
| private boolean matchAnyField(String term, SearchFlags matchKind, boolean caseSensitive) | |
| matchAnyKeyword | back to summary |
|---|---|
| private boolean matchAnyKeyword(String term, SearchFlags matchKind, boolean caseSensitive) | |
| matchField | back to summary |
|---|---|
| private boolean matchField(String fieldName, String term, SearchFlags matchKind, boolean caseSensitive) | |
| matchNamedField | back to summary |
|---|---|
| private boolean matchNamedField(String fieldName, String term, SearchFlags matchKind, boolean caseSensitive) | |
| matchRegex | back to summary |
|---|---|
| private static boolean matchRegex(String value, String pattern, boolean caseSensitive) | |
| matchValue | back to summary |
|---|---|
private static boolean matchValue(String value, String term, SearchFlags matchKind, boolean caseSensitive)
| |
| 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
| |
| visitComparisonExpression | back to summary |
|---|---|
| public Boolean visitComparisonExpression(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by the The default implementation returns the result of calling
| |
| visitImplicitAndExpression | back to summary |
|---|---|
| public Boolean visitImplicitAndExpression(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by the The default implementation returns the result of calling
| |
| visitNegatedExpression | back to summary |
|---|---|
| public Boolean visitNegatedExpression(SearchParser. Overrides org. Implements org. Doc from org. Visit a parse tree produced by the 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
| |
SearchFlags#INEXACT_MATCH, SearchFlags#EXACT_MATCH, SearchFlags#REGULAR_EXPRESSION
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | caseSensitive
Record Component accessed by caseSensitive(). |
| private final SearchFlags | matchKind
Record Component accessed by matchKind(). one ofSearchFlags#INEXACT_MATCH, SearchFlags#EXACT_MATCH, SearchFlags#REGULAR_EXPRESSION
|
| private final boolean | negation
Record Component accessed by negation(). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public SearchFlags | matchKind()
Record Component getter of matchKind.
Record Component
one of |
| public boolean | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| caseSensitive | back to summary |
|---|---|
| private final boolean caseSensitive Record Component accessed by caseSensitive(). | |
| matchKind | back to summary |
|---|---|
| private final SearchFlags matchKind Record Component accessed by matchKind(). one of | |
| negation | back to summary |
|---|---|
| private final boolean negation Record Component accessed by negation(). | |
| OperatorFlags | back to summary |
|---|---|
| private OperatorFlags(SearchFlags matchKind, boolean caseSensitive, boolean negation) | |
| caseSensitive | back to summary |
|---|---|
| public boolean caseSensitive() Record Component getter of caseSensitive. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| matchKind | back to summary |
|---|---|
| public SearchFlags matchKind() Record Component getter of matchKind.
| |
| negation | back to summary |
|---|---|
| public boolean negation() Record Component getter of negation. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | caseSensitive
Record Component accessed by caseSensitive(). |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| caseSensitive | back to summary |
|---|---|
| private final boolean caseSensitive Record Component accessed by caseSensitive(). | |
| pattern | back to summary |
|---|---|
| private final String pattern Record Component accessed by pattern(). | |
| RegexKey | back to summary |
|---|---|
| private RegexKey(String pattern, boolean caseSensitive) | |
| caseSensitive | back to summary |
|---|---|
| public boolean caseSensitive() Record Component getter of caseSensitive. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| pattern | back to summary |
|---|---|
| public String pattern() Record Component getter of pattern. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |