| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final List | |
| private int | |
| private final List | |
| private final Node | |
| private final NodeText | |
| private final List | |
| private int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int | adjustIndentation(List<TokenTextElement> indentation, NodeText nodeText, int nodeTextIndex, boolean followedByUnindent)
|
| pack-priv void | apply()
Node that we have calculate the Difference we can apply to a concrete NodeText, modifying it according to the difference (adding and removing the elements provided). |
| private void | |
| private void | applyKeptDiffElement(Kept kept, TextElement originalElement, boolean originalElementIsChild, boolean originalElementIsToken)
|
| private boolean | |
| private boolean | |
| private void | applyRemovedDiffElement(RemovedGroup removedGroup, Removed removed, TextElement originalElement, boolean originalElementIsChild, boolean originalElementIsToken)
|
| private void | cleanTheLineOfLeftOverSpace(RemovedGroup removedGroup, Removed removed)
Cleans the line of left over space if there is unnecessary indentation and the element will not be replaced |
| private Map | Returns: Map with all Removed elements as keys to their corresponding RemovedGroupMaps all Removed elements as keys to their corresponding RemovedGroup. |
| private int | considerEnforcingIndentation(NodeText nodeText, int nodeTextIndex)
If we are at the beginning of a line, with just spaces or tabs before us we should force the space to be the same as the indentation. |
| private boolean | |
| private void | |
| private List | findIndexOfCorrespondingNodeTextElement(List<CsmElement> elements, NodeText nodeText, int startIndex, Node node)
|
| private Map | getCorrespondanceBetweenNextOrderAndPreviousOrder(CsmMix elementsFromPreviousOrder, CsmMix elementsFromNextOrder)
|
| private int | |
| private Map | |
| private List | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private List | |
| private int | |
| public String | |
| private boolean |
| addedIndentation | back to summary |
|---|---|
| private boolean addedIndentation | |
| diffElements | back to summary |
|---|---|
| private final List<DifferenceElement> diffElements | |
| diffIndex | back to summary |
|---|---|
| private int diffIndex | |
| indentation | back to summary |
|---|---|
| private final List<TokenTextElement> indentation | |
| node | back to summary |
|---|---|
| private final Node node | |
| nodeText | back to summary |
|---|---|
| private final NodeText nodeText | |
| originalElements | back to summary |
|---|---|
| private final List<TextElement> originalElements | |
| originalIndex | back to summary |
|---|---|
| private int originalIndex | |
| STANDARD_INDENTATION_SIZE | back to summary |
|---|---|
| public static final int STANDARD_INDENTATION_SIZE | |
| Difference | back to summary |
|---|---|
| pack-priv Difference(List<DifferenceElement> diffElements, NodeText nodeText, Node node) | |
| adjustIndentation | back to summary |
|---|---|
| private int adjustIndentation(List<TokenTextElement> indentation, NodeText nodeText, int nodeTextIndex, boolean followedByUnindent) | |
| apply | back to summary |
|---|---|
| pack-priv void apply() Node that we have calculate the Difference we can apply to a concrete NodeText, modifying it according to the difference (adding and removing the elements provided). | |
| applyAddedDiffElement | back to summary |
|---|---|
| private void applyAddedDiffElement(Added added) | |
| applyKeptDiffElement | back to summary |
|---|---|
| private void applyKeptDiffElement(Kept kept, TextElement originalElement, boolean originalElementIsChild, boolean originalElementIsToken) | |
| applyLeftOverDiffElements | back to summary |
|---|---|
| private boolean applyLeftOverDiffElements() | |
| applyLeftOverOriginalElements | back to summary |
|---|---|
| private boolean applyLeftOverOriginalElements() | |
| applyRemovedDiffElement | back to summary |
|---|---|
| private void applyRemovedDiffElement(RemovedGroup removedGroup, Removed removed, TextElement originalElement, boolean originalElementIsChild, boolean originalElementIsToken) | |
| cleanTheLineOfLeftOverSpace | back to summary |
|---|---|
| private void cleanTheLineOfLeftOverSpace(RemovedGroup removedGroup, Removed removed) Cleans the line of left over space if there is unnecessary indentation and the element will not be replaced | |
| combineRemovedElementsToRemovedGroups | back to summary |
|---|---|
| private Map Maps all Removed elements as keys to their corresponding RemovedGroup.
A RemovedGroup contains all consecutive Removed elements.
Elements: Kept|Removed1|Removed2|Kept|Removed3|Added|Removed4 Groups: <----Group1----> Group2 Group3 Keys: Removed1+Removed2 Removed3 Removed4
| |
| considerEnforcingIndentation | back to summary |
|---|---|
| private int considerEnforcingIndentation(NodeText nodeText, int nodeTextIndex) If we are at the beginning of a line, with just spaces or tabs before us we should force the space to be the same as the indentation. | |
| doWeHaveLeftBraceFollowedBySpace | back to summary |
|---|---|
| private boolean doWeHaveLeftBraceFollowedBySpace(int index) | |
| extractReshuffledDiffElements | back to summary |
|---|---|
| private void extractReshuffledDiffElements(List<DifferenceElement> diffElements) | |
| findIndexOfCorrespondingNodeTextElement | back to summary |
|---|---|
| private List | |
| getCorrespondanceBetweenNextOrderAndPreviousOrder | back to summary |
|---|---|
| private Map | |
| getIndexToNextTokenElement | back to summary |
|---|---|
| private int getIndexToNextTokenElement(TokenTextElement element, int nestedDiamondOperator) | |
| groupConsecutiveRemovedElements | back to summary |
|---|---|
| private Map | |
| indentationBlock | back to summary |
|---|---|
| private List | |
| isAfterLBrace | back to summary |
|---|---|
| private boolean isAfterLBrace(NodeText nodeText, int nodeTextIndex) | |
| isAlmostCorrespondingElement | back to summary |
|---|---|
| private boolean isAlmostCorrespondingElement(TextElement textElement, CsmElement csmElement, Node node) | |
| isAReplacement | back to summary |
|---|---|
| private boolean isAReplacement(int diffIndex) | |
| isCorrespondingElement | back to summary |
|---|---|
| private boolean isCorrespondingElement(TextElement textElement, CsmElement csmElement, Node node) | |
| isDiamondOperator | back to summary |
|---|---|
| private boolean isDiamondOperator(JavaToken. | |
| isFollowedByUnindent | back to summary |
|---|---|
| private boolean isFollowedByUnindent(List<DifferenceElement> diffElements, int diffIndex) | |
| isNodeWithTypeArguments | back to summary |
|---|---|
| private boolean isNodeWithTypeArguments(DifferenceElement element) | |
| isReplaced | back to summary |
|---|---|
| private boolean isReplaced(int diffIndex) | |
| nextIsRightBrace | back to summary |
|---|---|
| private boolean nextIsRightBrace(int index) | |
| openBraceWasOnSameLine | back to summary |
|---|---|
| private boolean openBraceWasOnSameLine() | |
| processIndentation | back to summary |
|---|---|
| private List | |
| rewindSpace | back to summary |
|---|---|
| private int rewindSpace(int index) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| wasSpaceBetweenBraces | back to summary |
|---|---|
| private boolean wasSpaceBetweenBraces() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Difference. | |
| public static final Difference. | |
| public static final Difference. | |
| public static final Difference. | |
| private final int | |
| public static final Difference. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| public static Difference. | |
| public static Difference. |
| ALL | back to summary |
|---|---|
| public static final Difference. | |
| ALMOST | back to summary |
|---|---|
| public static final Difference. | |
| NEXT_AND_SAME | back to summary |
|---|---|
| public static final Difference. | |
| PREVIOUS_AND_SAME | back to summary |
|---|---|
| public static final Difference. | |
| priority | back to summary |
|---|---|
| private final int priority | |
| SAME_ONLY | back to summary |
|---|---|
| public static final Difference. | |
| MatchClassification | back to summary |
|---|---|
| private MatchClassification(int priority) | |
| getPriority | back to summary |
|---|---|
| pack-priv int getPriority() | |
| valueOf | back to summary |
|---|---|
| public static Difference. | |
| values | back to summary |
|---|---|
| public static Difference. | |