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

The following examples show how to use com.puppycrawl.tools.checkstyle.api.TokenTypes#ANNOTATION_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: 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 };
}