Package com.github.javaparser
Class TokenTypes
- java.lang.Object
-
- com.github.javaparser.TokenTypes
-
public class TokenTypes extends 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
eolToken()
Deprecated.use eolTokenKindstatic int
eolTokenKind()
static JavaToken.Category
getCategory(int kind)
Category of a token, a little more detailed than The JLS.static boolean
isComment(int kind)
static boolean
isEndOfLineCharacter(int kind)
Deprecated.use isEndOfLineTokenstatic boolean
isEndOfLineToken(int kind)
static boolean
isSpaceOrTab(int kind)
static boolean
isWhitespace(int kind)
static boolean
isWhitespaceOrComment(int kind)
static int
spaceToken()
Deprecated.use spaceTokenKindstatic int
spaceTokenKind()
-
-
-
Method Detail
-
isWhitespace
public static boolean isWhitespace(int kind)
-
isEndOfLineCharacter
@Deprecated public static boolean isEndOfLineCharacter(int kind)
Deprecated.use isEndOfLineToken
-
isEndOfLineToken
public static boolean isEndOfLineToken(int kind)
-
isWhitespaceOrComment
public static boolean isWhitespaceOrComment(int kind)
-
isSpaceOrTab
public static boolean isSpaceOrTab(int kind)
-
isComment
public static boolean isComment(int kind)
-
eolToken
@Deprecated public static int eolToken()
Deprecated.use eolTokenKind
-
eolTokenKind
public static int eolTokenKind()
- Returns:
- the kind of EOL token to use on the platform you're running on.
-
spaceTokenKind
public static int spaceTokenKind()
- Returns:
- the token kind for a single space.
-
spaceToken
@Deprecated public static int spaceToken()
Deprecated.use spaceTokenKind
-
getCategory
public static JavaToken.Category getCategory(int kind)
Category of a token, a little more detailed than The JLS.
-
-