public class TokenTypes extends Object
Constructor and Description |
---|
TokenTypes() |
Modifier and Type | Method and Description |
---|---|
static int |
eolTokenKind() |
static int |
eolTokenKind(LineSeparator lineSeparator) |
static JavaToken.Category |
getCategory(int kind)
Category of a token, a little more detailed than
The JLS.
|
static boolean |
isComment(int kind) |
static boolean |
isEndOfLineToken(int kind) |
static boolean |
isSpaceOrTab(int kind)
Deprecated.
Use
isWhitespaceButNotEndOfLine(int) which more explicitly reflects that this also includes
other whitespace e.g. EOF and CTRL_Z and a large number of other characters.
See the grammar for details of exactly which characters are included as a "space" (.
|
static boolean |
isWhitespace(int kind) |
static boolean |
isWhitespaceButNotEndOfLine(int kind) |
static boolean |
isWhitespaceOrComment(int kind) |
static int |
spaceTokenKind() |
public static boolean isWhitespace(int kind)
public static boolean isEndOfLineToken(int kind)
public static boolean isWhitespaceOrComment(int kind)
@Deprecated public static boolean isSpaceOrTab(int kind)
isWhitespaceButNotEndOfLine(int)
which more explicitly reflects that this also includes
other whitespace e.g. EOF
and CTRL_Z
and a large number of other characters.
See the grammar for details of exactly which characters are included as a "space" (.
<SPACE: [" ", "\t", "\f", "
", " ", " ", "", " ", " ", " ", " ", " ", " ",
" ", " ", " ", " ", " ", "", "", "", "
", "
", " ", " ", "", " ", ""]>
public static boolean isWhitespaceButNotEndOfLine(int kind)
public static boolean isComment(int kind)
public static int eolTokenKind(LineSeparator lineSeparator)
public static int eolTokenKind()
public static int spaceTokenKind()
public static JavaToken.Category getCategory(int kind)
Copyright © 2007–2024. All rights reserved.