CsmElementpublic class CsmToken extends Object implements CsmElement
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
CsmToken.TokenContentCalculator |
| Constructor | Description |
|---|---|
CsmToken(int tokenType) |
|
CsmToken(int tokenType,
CsmToken.TokenContentCalculator tokenContentCalculator) |
|
CsmToken(int tokenType,
String content) |
| 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() |
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, unindentpublic CsmToken(int tokenType)
public CsmToken(int tokenType,
String content)
public CsmToken(int tokenType,
CsmToken.TokenContentCalculator tokenContentCalculator)
public int getTokenType()
public void prettyPrint(Node node, SourcePrinter printer)
prettyPrint in interface CsmElementpublic boolean isWhiteSpace()
public boolean isNewLine()
Copyright © 2007–2019. All rights reserved.