Class Kept
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.Kept
-
- All Implemented Interfaces:
DifferenceElement
public class Kept extends Object implements DifferenceElement
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CsmElementgetElement()Return the CsmElement considered in this DifferenceElement.intgetTokenType()inthashCode()booleanisAdded()booleanisChild()booleanisIndent()booleanisNewLine()booleanisPrimitiveType()booleanisRemoved()booleanisToken()booleanisUnindent()booleanisWhiteSpace()booleanisWhiteSpaceOrComment()StringtoString()
-
-
-
Method Detail
-
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
-
isIndent
public boolean isIndent()
-
isUnindent
public boolean isUnindent()
-
isToken
public boolean isToken()
-
isChild
public boolean isChild()
-
isPrimitiveType
public boolean isPrimitiveType()
-
isWhiteSpace
public boolean isWhiteSpace()
-
isWhiteSpaceOrComment
public boolean isWhiteSpaceOrComment()
-
isNewLine
public boolean isNewLine()
-
isRemoved
public boolean isRemoved()
- Specified by:
isRemovedin interfaceDifferenceElement
-
-