Java Code Examples for com.puppycrawl.tools.checkstyle.api.TokenTypes#INTERFACE_DEF
The following examples show how to use
com.puppycrawl.tools.checkstyle.api.TokenTypes#INTERFACE_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: MissingSdkAnnotationCheck.java From aws-sdk-java-v2 with Apache License 2.0 | 5 votes |
@Override public int[] getRequiredTokens() { return new int[] { TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF }; }
Example 2
Source File: MissingSinceTagCheck.java From kieker with Apache License 2.0 | 5 votes |
@Override public void visitToken(final DetailAST ast) { // Do not check private classes etc. if (!CSUtility.isPrivate(ast)) { this.checkSinceTag(ast); if (ast.getType() == TokenTypes.INTERFACE_DEF) { this.checkSinceTag(CSUtility.getMethodsFromClass(ast)); } } }
Example 3
Source File: SpringJavadocCheck.java From spring-javaformat with Apache License 2.0 | 4 votes |
@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 4
Source File: SpringJavadocCheck.java From spring-javaformat with Apache License 2.0 | 4 votes |
@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 5
Source File: SpringMethodOrderCheck.java From spring-javaformat with Apache License 2.0 | 4 votes |
@Override public int[] getAcceptableTokens() { return new int[] { TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF }; }
Example 6
Source File: MethodLimitCheck.java From eclipse-cs with GNU Lesser General Public License v2.1 | 4 votes |
@Override public int[] getAcceptableTokens() { return new int[] { TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF }; }
Example 7
Source File: MethodLimitCheck.java From eclipse-cs with GNU Lesser General Public License v2.1 | 4 votes |
@Override public int[] getDefaultTokens() { return new int[] { TokenTypes.CLASS_DEF, TokenTypes.INTERFACE_DEF }; }
Example 8
Source File: MissingSinceTagCheck.java From kieker with Apache License 2.0 | 4 votes |
@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 }; }
Example 9
Source File: CSUtility.java From kieker with Apache License 2.0 | 2 votes |
/** * Checks whether the "parent" (the containing element) of the method is an interface or not. * * @param ast * The method to check. * * @return true if and only if the method is contained in an interface. */ public static boolean parentIsInterface(final DetailAST ast) { return ast.getParent().getParent().getType() == TokenTypes.INTERFACE_DEF; }