Class Kept
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.Kept
-
- All Implemented Interfaces:
DifferenceElement
public class Kept extends java.lang.Object implements DifferenceElement
-
-
Field Summary
Fields Modifier and Type Field Description private CsmElementelement
-
Constructor Summary
Constructors Constructor Description Kept(CsmElement element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)CsmElementgetElement()Return the CsmElement considered in this DifferenceElement.intgetTokenType()inthashCode()booleanisAdded()booleanisIndent()booleanisKept()booleanisNewLine()booleanisPrimitiveType()booleanisRemoved()booleanisToken()booleanisUnindent()booleanisWhiteSpace()booleanisWhiteSpaceOrComment()java.lang.StringtoString()-
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, replaceEolTokens
-
-
-
-
Field Detail
-
element
private final CsmElement element
-
-
Constructor Detail
-
Kept
Kept(CsmElement element)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getElement
public CsmElement getElement()
Description copied from interface:DifferenceElementReturn the CsmElement considered in this DifferenceElement.- Specified by:
getElementin interfaceDifferenceElement
-
getTokenType
public int getTokenType()
-
isAdded
public boolean isAdded()
- Specified by:
isAddedin interfaceDifferenceElement
-
isRemoved
public boolean isRemoved()
- Specified by:
isRemovedin interfaceDifferenceElement
-
isKept
public boolean isKept()
- Specified by:
isKeptin interfaceDifferenceElement
-
isIndent
public boolean isIndent()
-
isUnindent
public boolean isUnindent()
-
isToken
public boolean isToken()
-
isPrimitiveType
public boolean isPrimitiveType()
-
isWhiteSpace
public boolean isWhiteSpace()
-
isWhiteSpaceOrComment
public boolean isWhiteSpaceOrComment()
-
isNewLine
public boolean isNewLine()
-
-