| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final int | |
| private static final int | |
| private static final int | |
| private String | original
the raw bibtex author/editor field |
| private static final Pattern | |
| private static final Set | |
| private static final int | |
| private int | tokenAbbrEnd
end of token abbreviation (always: tokenStart < tokenAbbrEnd <= tokenEnd), only valid if getToken returns Token.WORD |
| private boolean | tokenCase
true if upper-case token, false if lower-case |
| private int | tokenEnd
index of the end in original, for example to point to 'abc' in 'abc xyz', tokenEnd=5 |
| private int | tokenStart
index of the start in original, for example to point to 'abc' in 'abc xyz', tokenStart=2 |
| private char | tokenTerm
either space of dash |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static StringBuilder | Returns: New string with correct separationBuilds a new array of strings with stringbuilder. |
| private static String | Returns: the original or patched version of listOfNamesHandle cases names in order Firstname Lastname, separated by |
| private String | Returns: the result of concatenation.index of the first token to be concatenated in 'tokens' Vector (always divisible by TOKEN_GROUP_LENGTH). start, int index of the first token not to be concatenated in 'tokens' Vector (always divisible by TOKEN_GROUP_LENGTH). end, int offset within token group (used to request concatenation of either full tokens or abbreviation). offset, boolean true`` -- add period after each token, false` do not add.Concatenates list of tokens from 'tokens' Vector. |
| private Optional | Returns: Preformatted author name;Optional.empty() if author name is empty.Parses one author name and returns preformatted information. |
| private static AuthorListParser. | |
| private AuthorListParser. | Returns: Token.EOF -- no more tokens, Token.COMMA --
token is comma, Token.AND -- token is the word "and" (or "And", or "aND", etc.) or a semicolon,
Token.WORD -- token is a word; additional information is given in global variables
token_start, token_end,
token_abbr, token_term, and
token_case.Parses the next token. |
| public static Optional | Returns: Optional.empty if there was no normalization.Tries to get a simple BibTeX author list of the given string. |
| public AuthorList |
| AVOID_TERMS_IN_LOWER_CASE | back to summary |
|---|---|
| private static final Set<String> AVOID_TERMS_IN_LOWER_CASE | |
| COMMA_SEPARATOR | back to summary |
|---|---|
| private static final Pattern COMMA_SEPARATOR | |
| ET_AL_SUFFIX | back to summary |
|---|---|
| private static final Pattern ET_AL_SUFFIX | |
| MULTIPLE_SPACE_PATTERN | back to summary |
|---|---|
| private static final Pattern MULTIPLE_SPACE_PATTERN | |
| NEW_LINE_PATTERN | back to summary |
|---|---|
| private static final Pattern NEW_LINE_PATTERN | |
| OFFSET_TOKEN | back to summary |
|---|---|
| private static final int OFFSET_TOKEN | |
| OFFSET_TOKEN_ABBR | back to summary |
|---|---|
| private static final int OFFSET_TOKEN_ABBR | |
| OFFSET_TOKEN_TERM | back to summary |
|---|---|
| private static final int OFFSET_TOKEN_TERM | |
| original | back to summary |
|---|---|
| private String original the raw bibtex author/editor field | |
| STARTS_WITH_CAPITAL_LETTER_DOT_OR_DASH | back to summary |
|---|---|
| private static final Pattern STARTS_WITH_CAPITAL_LETTER_DOT_OR_DASH | |
| TEX_NAMES | back to summary |
|---|---|
| private static final Set<String> TEX_NAMES | |
| TOKEN_GROUP_LENGTH | back to summary |
|---|---|
| private static final int TOKEN_GROUP_LENGTH | |
| tokenAbbrEnd | back to summary |
|---|---|
| private int tokenAbbrEnd end of token abbreviation (always: tokenStart < tokenAbbrEnd <= tokenEnd), only valid if getToken returns Token.WORD | |
| tokenCase | back to summary |
|---|---|
| private boolean tokenCase true if upper-case token, false if lower-case | |
| tokenEnd | back to summary |
|---|---|
| private int tokenEnd index of the end in original, for example to point to 'abc' in 'abc xyz', tokenEnd=5 | |
| tokenStart | back to summary |
|---|---|
| private int tokenStart index of the start in original, for example to point to 'abc' in 'abc xyz', tokenStart=2 | |
| tokenTerm | back to summary |
|---|---|
| private char tokenTerm either space of dash | |
| AuthorListParser | back to summary |
|---|---|
| public AuthorListParser() | |
| buildWithAffix | back to summary |
|---|---|
| private static StringBuilder buildWithAffix(Collection<Integer> indexArray, List<String> nameList) Builds a new array of strings with stringbuilder. Regarding to the name affixes.
| |
| checkNamesCommaSeparated | back to summary |
|---|---|
| private static String checkNamesCommaSeparated(String listOfNames) Handle cases names in order Firstname Lastname, separated by
| |
| concatTokens | back to summary |
|---|---|
| private String concatTokens(List<Object> tokens, int start, int end, int offset, boolean dotAfter) Concatenates list of tokens from 'tokens' Vector. Tokens are separated by spaces or dashes, depending on stored in 'tokens'. Callers always ensure that start < end; thus, there exists at least one token to be concatenated.
| |
| getAuthor | back to summary |
|---|---|
| private Optional Parses one author name and returns preformatted information. | |
| getSimpleNormalForm | back to summary |
|---|---|
| private static AuthorListParser. | |
| getToken | back to summary |
|---|---|
| private AuthorListParser. Parses the next token. The string being parsed is stored in global variable The type of the token is returned; if it is
| |
| normalizeSimply | back to summary |
|---|---|
| public static Optional Tries to get a simple BibTeX author list of the given string. This is an intermediate step in | |
| parse | back to summary |
|---|---|
| public AuthorList parse(@NonNull String listOfNames) Parses the String containing person names and returns a list of person information.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | andOthersPresent
Record Component accessed by andOthersPresent(). |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| andOthersPresent | back to summary |
|---|---|
| private final boolean andOthersPresent Record Component accessed by andOthersPresent(). | |
| authors | back to summary |
|---|---|
| private final String authors Record Component accessed by authors(). | |
| SimpleNormalFormResult | back to summary |
|---|---|
| private SimpleNormalFormResult(String authors, boolean andOthersPresent) | |
| andOthersPresent | back to summary |
|---|---|
| public boolean andOthersPresent() Record Component getter of andOthersPresent. | |
| authors | back to summary |
|---|---|
| public String authors() Record Component getter of authors. | |
| 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 | |
| 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 |
|---|---|
| public static final AuthorListParser. | |
| public static final AuthorListParser. | |
| public static final AuthorListParser. | |
| public static final AuthorListParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AuthorListParser. | |
| public static AuthorListParser. |
| AND | back to summary |
|---|---|
| public static final AuthorListParser. | |
| COMMA | back to summary |
|---|---|
| public static final AuthorListParser. | |
| EOF | back to summary |
|---|---|
| public static final AuthorListParser. | |
| WORD | back to summary |
|---|---|
| public static final AuthorListParser. | |
| Token | back to summary |
|---|---|
| private Token() | |
| valueOf | back to summary |
|---|---|
| public static AuthorListParser. | |
| values | back to summary |
|---|---|
| public static AuthorListParser. | |