Package com.github.javaparser
Class TokenTypes
java.lang.Object
com.github.javaparser.TokenTypes
Complements GeneratedJavaParserConstants
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic inteolTokenKind(LineSeparator lineSeparator)static JavaToken.CategorygetCategory(int kind)Category of a token, a little more detailed than The JLS.static booleanisComment(int kind)static booleanisEndOfLineToken(int kind)static booleanisSpaceOrTab(int kind)Deprecated.static booleanisWhitespace(int kind)static booleanisWhitespaceButNotEndOfLine(int kind)static booleanisWhitespaceOrComment(int kind)static int
-
Constructor Details
-
TokenTypes
public TokenTypes()
-
-
Method Details
-
isWhitespace
public static boolean isWhitespace(int kind) -
isEndOfLineToken
public static boolean isEndOfLineToken(int kind) -
isWhitespaceOrComment
public static boolean isWhitespaceOrComment(int kind) -
isSpaceOrTab
Deprecated.UseisWhitespaceButNotEndOfLine(int)which more explicitly reflects that this also includes other whitespace e.g.EOFandCTRL_Zand 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
- 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
Category of a token, a little more detailed than The JLS.
-
isWhitespaceButNotEndOfLine(int)which more explicitly reflects that this also includes other whitespace e.g.