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, waitattribute, block, charToken, child, comma, comment, conditional, conditional, indent, list, list, list, list, newline, none, orphanCommentsBeforeThis, orphanCommentsEnding, semicolon, sequence, space, string, string, stringToken, token, token, unindentprivate 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 CsmElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isWhiteSpace()
public boolean isNewLine()