Class Reshuffled
java.lang.Object
com.github.javaparser.printer.lexicalpreservation.Reshuffled
- All Implemented Interfaces:
DifferenceElement
Elements in a CsmMix have been reshuffled. It could also mean that
some new elements have been added or removed to the mix.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the CsmElement considered in this DifferenceElement.int
hashCode()
boolean
isAdded()
boolean
isKept()
private boolean
isNewLineToken
(CsmElement element) boolean
private boolean
isToken
(CsmElement element) replaceEolTokens
(CsmElement lineSeparator) private List
<CsmElement> replaceTokens
(List<CsmElement> elements, CsmElement lineSeparator) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.javaparser.printer.lexicalpreservation.DifferenceElement
isChild
-
Field Details
-
previousOrder
-
nextOrder
-
-
Constructor Details
-
Reshuffled
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
getElement
Description copied from interface:DifferenceElement
Return the CsmElement considered in this DifferenceElement.- Specified by:
getElement
in interfaceDifferenceElement
-
getPreviousOrder
-
getNextOrder
-
isAdded
public boolean isAdded()- Specified by:
isAdded
in interfaceDifferenceElement
-
isRemoved
public boolean isRemoved()- Specified by:
isRemoved
in interfaceDifferenceElement
-
isKept
public boolean isKept()- Specified by:
isKept
in interfaceDifferenceElement
-
replaceEolTokens
- Specified by:
replaceEolTokens
in interfaceDifferenceElement
-
replaceTokens
-
isNewLineToken
-
isToken
-