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 boolean
equals(Object o)
CsmElement
getElement()
Return the CsmElement considered in this DifferenceElement.int
getTokenType()
int
hashCode()
boolean
isAdded()
boolean
isIndent()
boolean
isKept()
boolean
isNewLine()
boolean
isPrimitiveType()
boolean
isRemoved()
boolean
isToken()
boolean
isUnindent()
boolean
isWhiteSpace()
boolean
isWhiteSpaceOrComment()
String
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, replaceEolTokens
-
-
-
-
Method Detail
-
getElement
public CsmElement getElement()
Description copied from interface:DifferenceElement
Return the CsmElement considered in this DifferenceElement.- Specified by:
getElement
in interfaceDifferenceElement
-
getTokenType
public int getTokenType()
-
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
-
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()
-
-