Package de.jplag
Interface TokenType
- All Known Implementing Classes:
SharedTokenType
public interface TokenType
Indicates the type of a token. Needs to be implemented for each language module to declare what types of tokens can
be extracted from code written in that language. A token type is expected to be stateless, thus it is recommended to
use an
enum or record.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the user-readable description of this token type.default BooleanIndicates that no matches containing this token type shall be generated.
-
Method Details
-
getDescription
String getDescription()Returns the user-readable description of this token type. -
isExcludedFromMatching
Indicates that no matches containing this token type shall be generated. Defaults tofalse.- Returns:
trueif token type is excluded from matching, otherwisefalse.
-