| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | addToCurrentGroup(EditMerge.
Add group to state.currentGroup Set state.cursorBetween to start at currentRange.getEnd() Expand state.currentGroupCursor to also cover currentRange Set state.prev to group, state.prevRange to currentRange |
| private static boolean | Returns: false if cannot add, true if can. If returned true, then state.cursorBetween and state.currentGroupCursor are expanded to end at the start of currentRange.The CitationGroup to test group, com.The XTextRange corresponding to group. currentRangeDecide if group could be added to state.currentGroup |
| private static boolean | Returns: false if cannot expand, true if can.The CitationGroup to test. state,The XTextRange corresponding to group. currentRange,The failure message for the LOGGER. loggerMessage)Helper method for checkAddToGroup. |
| public static OOResult | mergeCitationGroups(com.
Returns: true if modified document |
| private static List | scan(com.
Scan the document for joinable groups. |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| EditMerge | back to summary |
|---|---|
| private EditMerge() | |
| addToCurrentGroup | back to summary |
|---|---|
| private static void addToCurrentGroup(EditMerge. Add group to state.currentGroup Set state.cursorBetween to start at currentRange.getEnd() Expand state.currentGroupCursor to also cover currentRange Set state.prev to group, state.prevRange to currentRange | |
| checkAddToGroup | back to summary |
|---|---|
| private static boolean checkAddToGroup(EditMerge. Decide if group could be added to state.currentGroup
| |
| checkCouldExpand | back to summary |
|---|---|
| private static boolean checkCouldExpand(EditMerge. Helper method for checkAddToGroup. Tries to expand state.currentGroupCursor and state.cursorBetween by going right to reach rangeStart. | |
| mergeCitationGroups | back to summary |
|---|---|
public static OOResult
| |
| scan | back to summary |
|---|---|
| private static List Scan the document for joinable groups. Return those found. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final com. | groupCursor
Record Component accessed by groupCursor(). A cursor covering the XTextRange of each entry in group (and the spaces between them) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public List | |
| public com. | groupCursor()
Record Component getter of groupCursor.
Record Component A cursor covering the XTextRange of each entry in group (and the spaces between them) |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| group | back to summary |
|---|---|
| private final List<CitationGroup> group Record Component accessed by group(). A list of consecutive citation groups only separated by spaces. | |
| groupCursor | back to summary |
|---|---|
| private final com. Record Component accessed by groupCursor(). A cursor covering the XTextRange of each entry in group (and the spaces between them) | |
| JoinableGroupData | back to summary |
|---|---|
| private JoinableGroupData(List<CitationGroup> group, com. | |
| 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).
| |
| group | back to summary |
|---|---|
| public List Record Component getter of group.
| |
| groupCursor | back to summary |
|---|---|
| public com. Record Component getter of groupCursor.
| |
| 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 |
|---|---|
| pack-priv List | |
| pack-priv com. | |
| pack-priv com. | |
| pack-priv CitationGroup | |
| pack-priv com. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| currentGroup | back to summary |
|---|---|
| pack-priv List<CitationGroup> currentGroup | |
| currentGroupCursor | back to summary |
|---|---|
| pack-priv com. | |
| cursorBetween | back to summary |
|---|---|
| pack-priv com. | |
| prev | back to summary |
|---|---|
| pack-priv CitationGroup prev | |
| prevRange | back to summary |
|---|---|
| pack-priv com. | |
| ScanState | back to summary |
|---|---|
| pack-priv ScanState() | |
| reset | back to summary |
|---|---|
| pack-priv void reset() | |