public class CsmToken extends Object implements CsmElement
| Modifier and Type | Class and Description |
|---|---|
static interface |
CsmToken.TokenContentCalculator |
| Modifier and Type | Field and Description |
|---|---|
static int |
EOF_TOKEN |
static int |
NEWLINE_TOKEN |
static int |
SPACE_TOKEN |
static int |
SPACE_TOKEN_ALT |
static int |
TAB_TOKEN |
| Constructor and Description |
|---|
CsmToken(int tokenType) |
CsmToken(int tokenType,
CsmToken.TokenContentCalculator tokenContentCalculator) |
CsmToken(int tokenType,
String content) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getContent(Node node) |
int |
getTokenType() |
int |
hashCode() |
boolean |
isWhiteSpace() |
void |
prettyPrint(Node node,
SourcePrinter printer) |
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, unindentpublic static int NEWLINE_TOKEN
public static int SPACE_TOKEN
public static int SPACE_TOKEN_ALT
public static int TAB_TOKEN
public static int EOF_TOKEN
public 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()
Copyright © 2007–2017. All rights reserved.