Top Description Constructors Methods
com.github.javaparser

public Class TokenTypes

extends Object
Class Inheritance
Static Imports
com.github.javaparser.GeneratedJavaParserConstants.*, com.github.javaparser.utils.Utils.EOL

Complements GeneratedJavaParserConstants

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the kind of EOL token to use on the platform you're running on.
eolTokenKind
()

public static JavaToken.Category
getCategory(int kind)

Category of a token, a little more detailed than The JLS.

public static boolean
isComment(int kind)

public static boolean
isEndOfLineToken(int kind)

public static boolean
isSpaceOrTab(int kind)

public static boolean
isWhitespace(int kind)

public static boolean
public static int

Returns:

the token kind for a single space.
spaceTokenKind
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TokenTypesback to summary
public TokenTypes()

Method Detail

eolTokenKindback to summary
public static int eolTokenKind()
Returns:int

the kind of EOL token to use on the platform you're running on.

getCategoryback to summary
public static JavaToken.Category getCategory(int kind)

Category of a token, a little more detailed than The JLS.

isCommentback to summary
public static boolean isComment(int kind)
isEndOfLineTokenback to summary
public static boolean isEndOfLineToken(int kind)
isSpaceOrTabback to summary
public static boolean isSpaceOrTab(int kind)
isWhitespaceback to summary
public static boolean isWhitespace(int kind)
isWhitespaceOrCommentback to summary
public static boolean isWhitespaceOrComment(int kind)
spaceTokenKindback to summary
public static int spaceTokenKind()
Returns:int

the token kind for a single space.