| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| public static final char | |
| private static final char | |
| private static final char | |
| private static final Logger | |
| private final FieldPreferences |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static List | Returns: list of balancing errorsChecks text for balanced braces and returns a list of unbalanced |
| private String | formatAndResolveStrings(String content)
This method handles # in the field content to get valid bibtex strings For instance, |
| private String | |
| private static String | |
| private static int | getFirstOccurrenceOfStartEndSymbol(String content, int pivot)
Finds the first occurrence of # from the pivot point |
| public static boolean | |
| public static String | Returns: sanitized textthe text to sanitize text)Escapes the last unbalanced curly brace in the given text. |
| private boolean | |
| public String | |
| private void | writeStringLabel(StringBuilder
the StringBuilder to append the text to stringBuilder, String the text use as basis to get the text to append text, int the position in text where the text to add starts startPos, int the position in text where the text to add ends endPos, boolean true if the label to write is the first one to write isFirst, boolean true if the label to write is the last one to write isLast)
|
| private void | writeText(StringBuilder
the StringBuilder to append the text to stringBuilder, String the text to append text, int startPos, int endPos)
|
| BIBTEX_STRING_START_END_SYMBOL | back to summary |
|---|---|
| public static final char BIBTEX_STRING_START_END_SYMBOL | |
| FIELD_END | back to summary |
|---|---|
| private static final char FIELD_END | |
| FIELD_START | back to summary |
|---|---|
| private static final char FIELD_START | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final FieldPreferences preferences | |
| FieldWriter | back to summary |
|---|---|
| public FieldWriter(FieldPreferences preferences) | |
| checkBalancedBraces | back to summary |
|---|---|
| public static List Checks text for balanced braces and returns a list of unbalanced | |
| formatAndResolveStrings | back to summary |
|---|---|
| private String formatAndResolveStrings(String content) This method handles # in the field content to get valid bibtex strings For instance, | |
| formatWithoutResolvingStrings | back to summary |
|---|---|
| private String formatWithoutResolvingStrings(String content) | |
| getContextSnippet | back to summary |
|---|---|
| private static String getContextSnippet(String text, int index) | |
| getFirstOccurrenceOfStartEndSymbol | back to summary |
|---|---|
| private static int getFirstOccurrenceOfStartEndSymbol(String content, int pivot) Finds the first occurrence of # from the pivot point | |
| isEscaped | back to summary |
|---|---|
| public static boolean isEscaped(String text, int index) Checks if the character at the specified index in the given text is escaped. A character is considered escaped if it is preceded by an odd number of backslashes ().
| |
| sanitizeUnbalancedBraces | back to summary |
|---|---|
| public static String sanitizeUnbalancedBraces(String text) Escapes the last unbalanced curly brace in the given text. | |
| shouldResolveStrings | back to summary |
|---|---|
| private boolean shouldResolveStrings(Field field) | |
| write | back to summary |
|---|---|
| public String write(Field field, String content) Formats the content of a field. | |
| writeStringLabel | back to summary |
|---|---|
private void writeStringLabel(StringBuilder stringBuilder, String text, int startPos, int endPos, boolean isFirst, boolean isLast)
| |
| writeText | back to summary |
|---|---|
private void writeText(StringBuilder stringBuilder, String text, int startPos, int endPos)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public int | |
| public int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| column | back to summary |
|---|---|
| private final int column Record Component accessed by column(). | |
| index | back to summary |
|---|---|
| private final int index Record Component accessed by index(). | |
| line | back to summary |
|---|---|
| private final int line Record Component accessed by line(). | |
| BracePosition | back to summary |
|---|---|
| private BracePosition(int index, int line, int column) | |
| column | back to summary |
|---|---|
| public int column() Record Component getter of column. | |
| 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 | |
| index | back to summary |
|---|---|
| public int index() Record Component getter of index. | |
| line | back to summary |
|---|---|
| public int line() Record Component getter of line. | |
| 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. | |