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 interface
CsmToken.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 boolean
equals(Object o)
String
getContent(Node node)
int
getTokenType()
int
hashCode()
boolean
isNewLine()
boolean
isWhiteSpace()
void
prettyPrint(Node node, SourcePrinter printer)
String
toString()
-
-
-
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:
prettyPrint
in interfaceCsmElement
-
isWhiteSpace
public boolean isWhiteSpace()
-
isNewLine
public boolean isNewLine()
-
-