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