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 boolean
equals(Object o)
String
getContent()
int
getTokenType()
int
hashCode()
boolean
isCorrespondingElement(TextElement textElement)
boolean
isNewLine()
boolean
isWhiteSpace()
boolean
isWhiteSpaceNotEol()
void
prettyPrint(Node node, SourcePrinter printer)
String
toString()
-
-
-
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:
prettyPrint
in interfaceCsmElement
-
isWhiteSpace
public boolean isWhiteSpace()
-
isWhiteSpaceNotEol
public boolean isWhiteSpaceNotEol()
-
isNewLine
public boolean isNewLine()
-
isCorrespondingElement
public boolean isCorrespondingElement(TextElement textElement)
- Specified by:
isCorrespondingElement
in interfaceCsmElement
-
-