| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| 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 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 AuthorList |
| AVOID_TERMS_IN_LOWER_CASE | back to summary |
|---|---|
| private static final Set<String> AVOID_TERMS_IN_LOWER_CASE | |
| 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 | back to summary |
|---|---|
| private static final Pattern STARTS_WITH_CAPITAL_LETTER_DOT | |
| 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. | |
| 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
| |
| 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 |
|---|---|
| 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. | |