public class CsmToken extends java.lang.Object implements CsmElement
Modifier and Type | Class and Description |
---|---|
static interface |
CsmToken.TokenContentCalculator |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
content |
private CsmToken.TokenContentCalculator |
tokenContentCalculator |
private int |
tokenType |
Constructor and Description |
---|
CsmToken(int tokenType) |
CsmToken(int tokenType,
CsmToken.TokenContentCalculator tokenContentCalculator) |
CsmToken(int tokenType,
java.lang.String content) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContent(Node node) |
int |
getTokenType() |
int |
hashCode() |
boolean |
isNewLine() |
boolean |
isWhiteSpace() |
void |
prettyPrint(Node node,
SourcePrinter printer) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
attribute, block, charToken, child, comma, comment, conditional, conditional, indent, list, list, list, list, newline, none, orphanCommentsBeforeThis, orphanCommentsEnding, semicolon, sequence, space, string, string, stringToken, token, token, unindent
private final int tokenType
private java.lang.String content
private CsmToken.TokenContentCalculator tokenContentCalculator
public CsmToken(int tokenType)
public CsmToken(int tokenType, java.lang.String content)
public CsmToken(int tokenType, CsmToken.TokenContentCalculator tokenContentCalculator)
public int getTokenType()
public java.lang.String getContent(Node node)
public void prettyPrint(Node node, SourcePrinter printer)
prettyPrint
in interface CsmElement
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean isWhiteSpace()
public boolean isNewLine()