Class CsmToken
- java.lang.Object
-
- com.github.javaparser.printer.concretesyntaxmodel.CsmToken
-
- All Implemented Interfaces:
CsmElement
public class CsmToken extends Object implements CsmElement
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetContent()intgetTokenType()inthashCode()booleanisCorrespondingElement(TextElement textElement)booleanisNewLine()booleanisWhiteSpace()booleanisWhiteSpaceNotEol()voidprettyPrint(Node node, SourcePrinter printer)StringtoString()
-
-
-
Constructor Detail
-
CsmToken
public CsmToken(int tokenType)
-
CsmToken
public CsmToken(int tokenType, String content)
-
-
Method Detail
-
getTokenType
public int getTokenType()
-
getContent
public String getContent()
-
prettyPrint
public void prettyPrint(Node node, SourcePrinter printer)
- Specified by:
prettyPrintin interfaceCsmElement
-
isWhiteSpace
public boolean isWhiteSpace()
-
isWhiteSpaceNotEol
public boolean isWhiteSpaceNotEol()
-
isNewLine
public boolean isNewLine()
-
isCorrespondingElement
public boolean isCorrespondingElement(TextElement textElement)
- Specified by:
isCorrespondingElementin interfaceCsmElement
-
-