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 TypeMethodDescriptionbooleanReturn the CsmElement considered in this DifferenceElement.inthashCode()booleanisAdded()booleanisKept()private booleanisNewLineToken(CsmElement element) booleanprivate booleanisToken(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, waitMethods 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:DifferenceElementReturn the CsmElement considered in this DifferenceElement.- Specified by:
getElementin interfaceDifferenceElement
-
getPreviousOrder
-
getNextOrder
-
isAdded
public boolean isAdded()- Specified by:
isAddedin interfaceDifferenceElement
-
isRemoved
public boolean isRemoved()- Specified by:
isRemovedin interfaceDifferenceElement
-
isKept
public boolean isKept()- Specified by:
isKeptin interfaceDifferenceElement
-
replaceEolTokens
- Specified by:
replaceEolTokensin interfaceDifferenceElement
-
replaceTokens
-
isNewLineToken
-
isToken
-