本文整理汇总了Java中com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilter类的典型用法代码示例。如果您正苦于以下问题:Java BeforeExecutionFileFilter类的具体用法?Java BeforeExecutionFileFilter怎么用?Java BeforeExecutionFileFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BeforeExecutionFileFilter类属于com.puppycrawl.tools.checkstyle.api包,在下文中一共展示了BeforeExecutionFileFilter类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isFileFilterModule
import com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilter; //导入依赖的package包/类
/**
* Checks whether a class may be considered as the checkstyle file filter.
* Checkstyle's file filters are classes which implement 'BeforeExecutionFileFilter' interface.
* @param loadedClass class to check.
* @return true if a class may be considered as the checkstyle file filter.
*/
public static boolean isFileFilterModule(Class<?> loadedClass) {
return BeforeExecutionFileFilter.class.isAssignableFrom(loadedClass);
}
示例2: isFileFilterModule
import com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilter; //导入依赖的package包/类
/**
* Checks whether a class may be considered as the checkstyle file filter.
* Checkstyle's file filters are classes which implement 'BeforeExecutionFileFilter' interface.
* @param clazz class to check.
* @return true if a class may be considered as the checkstyle file filter.
*/
public static boolean isFileFilterModule(Class<?> clazz) {
return BeforeExecutionFileFilter.class.isAssignableFrom(clazz);
}
示例3: removeBeforeExecutionFileFilter
import com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilter; //导入依赖的package包/类
/**
* Removes before execution file filter.
* @param filter before execution file filter to remove.
*/
public void removeBeforeExecutionFileFilter(BeforeExecutionFileFilter filter) {
beforeExecutionFileFilters.removeBeforeExecutionFileFilter(filter);
}
示例4: addBeforeExecutionFileFilter
import com.puppycrawl.tools.checkstyle.api.BeforeExecutionFileFilter; //导入依赖的package包/类
/**
* Adds a before execution file filter to the end of the event chain.
* @param filter the additional filter
*/
public void addBeforeExecutionFileFilter(BeforeExecutionFileFilter filter) {
beforeExecutionFileFilters.addBeforeExecutionFileFilter(filter);
}