Package com.github.javaparser
Class TokenTypes
- java.lang.Object
-
- com.github.javaparser.TokenTypes
-
public class TokenTypes extends java.lang.Object
Complements GeneratedJavaParserConstants
-
-
Constructor Summary
Constructors Constructor Description TokenTypes()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.UseisWhitespaceButNotEndOfLine(int)
which more explicitly reflects that this also includes other whitespace e.g.static boolean
isWhitespace(int kind)
static boolean
isWhitespaceButNotEndOfLine(int kind)
static boolean
isWhitespaceOrComment(int kind)
static int
spaceTokenKind()
-
-
-
Method Detail
-
isWhitespace
public static boolean isWhitespace(int kind)
-
isEndOfLineToken
public static boolean isEndOfLineToken(int kind)
-
isWhitespaceOrComment
public static boolean isWhitespaceOrComment(int kind)
-
isSpaceOrTab
@Deprecated public static boolean isSpaceOrTab(int kind)
Deprecated.UseisWhitespaceButNotEndOfLine(int)
which more explicitly reflects that this also includes other whitespace e.g.EOF
andCTRL_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", " ", " ", " ", "", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "", "", "", " ", " ", " ", " ", "", " ", ""]>
-
isWhitespaceButNotEndOfLine
public static boolean isWhitespaceButNotEndOfLine(int kind)
-
isComment
public static boolean isComment(int kind)
-
eolTokenKind
public static int eolTokenKind(LineSeparator lineSeparator)
- Returns:
- the kind of EOL token to use on the platform you're running on.
-
eolTokenKind
public static int eolTokenKind()
-
spaceTokenKind
public static int spaceTokenKind()
- Returns:
- the token kind for a single space.
-
getCategory
public static JavaToken.Category getCategory(int kind)
Category of a token, a little more detailed than The JLS.
-
-