Java Code Examples for com.puppycrawl.tools.checkstyle.api.TokenTypes#ENUM_DEF

The following examples show how to use com.puppycrawl.tools.checkstyle.api.TokenTypes#ENUM_DEF . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpringJavadocCheck.java    From spring-javaformat with Apache License 2.0 4 votes vote down vote up
@Override
public int[] getDefaultTokens() {
	return new int[] { TokenTypes.INTERFACE_DEF, TokenTypes.CLASS_DEF, TokenTypes.ENUM_DEF,
			TokenTypes.ANNOTATION_DEF, TokenTypes.METHOD_DEF, TokenTypes.CTOR_DEF };
}
 
Example 2
Source File: SpringJavadocCheck.java    From spring-javaformat with Apache License 2.0 4 votes vote down vote up
@Override
public int[] getAcceptableTokens() {
	return new int[] { TokenTypes.INTERFACE_DEF, TokenTypes.CLASS_DEF, TokenTypes.ENUM_DEF,
			TokenTypes.ANNOTATION_DEF, TokenTypes.METHOD_DEF, TokenTypes.CTOR_DEF, TokenTypes.ENUM_CONSTANT_DEF,
			TokenTypes.ANNOTATION_FIELD_DEF };
}
 
Example 3
Source File: PluralEnumNames.java    From aws-sdk-java-v2 with Apache License 2.0 4 votes vote down vote up
@Override
public int[] getRequiredTokens() {
    return new int[] { TokenTypes.CLASS_DEF, TokenTypes.ENUM_DEF };
}
 
Example 4
Source File: PluralEnumNames.java    From aws-sdk-java-v2 with Apache License 2.0 4 votes vote down vote up
private boolean isEnum(DetailAST ast) {
    return ast.getType() == TokenTypes.ENUM_DEF;
}
 
Example 5
Source File: MissingSinceTagCheck.java    From kieker with Apache License 2.0 4 votes vote down vote up
@Override
public int[] getDefaultTokens() {
	// This here makes sure that we just get the correct components
	return new int[] { TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF, TokenTypes.ANNOTATION_DEF,
			TokenTypes.ENUM_DEF };
}