Uses of Class
com.puppycrawl.tools.checkstyle.api.CheckstyleException
Packages that use CheckstyleException
Package
Description
Contains the implementation of the Checkstyle framework.
Contains the core API to be used to implement checks.
File Header checks.
Contains the Imports checks that are
bundled with the main distribution.
Contains the Javadoc checks that are bundled with the main distribution.
Contains the regular expression checks that are bundled with the main
distribution.
Contains the filters that are bundled with the main distribution.
User interface classes for CheckStyle.
Contains module metadata generation classes for checkstyle.
Contains utils classes for checkstyle.
-
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle
Methods in com.puppycrawl.tools.checkstyle that throw CheckstyleExceptionModifier and TypeMethodDescriptionModuleFactory.createModule
(String name) Creates a new instance of a class from a given name.PackageObjectFactory.createModule
(String name) Creates a new instance of a class from a given name, or that name concatenated with "Check".protected void
Checker.finishLocalSetup()
DefaultConfiguration.getAttribute
(String attributeName) PackageNamesLoader.getPackageNames
(ClassLoader classLoader) Returns the set of package names, compiled from all checkstyle_packages.xml files found on the given class loaders classpath.static Configuration
ConfigurationLoader.loadConfiguration
(String config, PropertyResolver overridePropsResolver) Returns the module configurations in a specified file.static Configuration
ConfigurationLoader.loadConfiguration
(String config, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions) Returns the module configurations in a specified file.static Configuration
ConfigurationLoader.loadConfiguration
(String config, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings) Returns the module configurations in a specified file.static Configuration
ConfigurationLoader.loadConfiguration
(String config, PropertyResolver overridePropsResolver, ThreadModeSettings threadModeSettings) Returns the module configurations in a specified file.static Configuration
ConfigurationLoader.loadConfiguration
(InputSource configSource, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions) Returns the module configurations from a specified input source.static Configuration
ConfigurationLoader.loadConfiguration
(InputSource configSource, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings) Returns the module configurations from a specified input source.static void
TokenTypes.properties generator entry point.static DetailAST
JavaParser.parse
(FileContents contents) Static helper method to parses a Java source file.static DetailAST
JavaParser.parseFile
(File file, JavaParser.Options options) Parses Java source file.static DetailAST
JavaParser.parseFileText
(FileText text, JavaParser.Options options) Parse a text and return the parse tree.static String
AstTreeStringPrinter.printAst
(FileText text, JavaParser.Options options) Parse a file and print the parse tree.static String
AstTreeStringPrinter.printFileAst
(File file, JavaParser.Options options) Parse a file and print the parse tree.static String
AstTreeStringPrinter.printJavaAndJavadocTree
(File file) Prints full AST (java + comments + javadoc) of the java file.static String
SuppressionsStringPrinter.printSuppressions
(File file, String suppressionLineColumnNumber, int tabWidth) Prints generated suppressions.int
protected void
TreeWalker.processFiltered
(File file, FileText fileText) protected void
Checker.setupChild
(Configuration childConf) Called by configure() for every child of this component's Configuration.void
TreeWalker.setupChild
(Configuration childConf) Called by configure() for every child of this component's Configuration. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.api
Methods in com.puppycrawl.tools.checkstyle.api that throw CheckstyleExceptionModifier and TypeMethodDescriptionfinal void
AutomaticBean.configure
(Configuration config) Implements the Configurable interface using bean introspection.void
Configurable.configure
(Configuration configuration) Configures this component.final void
AutomaticBean.contextualize
(Context context) Implements the Contextualizable interface using bean introspection.void
Contextualizable.contextualize
(Context context) Sets the context for this Component.protected void
AbstractViolationReporter.finishLocalSetup()
protected abstract void
AutomaticBean.finishLocalSetup()
Provides a hook to finish the part of this component's setup that was not handled by the bean introspection.Configuration.getAttribute
(String name) The attribute value for an attribute name.final SortedSet<LocalizedMessage>
Request to process a file.int
Processes a set of files.protected abstract void
AbstractFileSetCheck.processFiltered
(File file, FileText fileText) Called to process a file that matches the specified file extensions.protected void
AutomaticBean.setupChild
(Configuration childConf) Called by configure() for every child of this component's Configuration. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.checks.header
Methods in com.puppycrawl.tools.checkstyle.checks.header that throw CheckstyleExceptionModifier and TypeMethodDescriptionprotected final void
AbstractHeaderCheck.finishLocalSetup()
void
AbstractHeaderCheck.setHeaderFile
(URI uri) Setter to specify the name of the file containing the required header.. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.checks.imports
Methods in com.puppycrawl.tools.checkstyle.checks.imports that throw CheckstyleException -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.checks.javadoc
Methods in com.puppycrawl.tools.checkstyle.checks.javadoc that throw CheckstyleExceptionModifier and TypeMethodDescriptionprotected void
JavadocPackageCheck.processFiltered
(File file, FileText fileText) -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.checks.regexp
Methods in com.puppycrawl.tools.checkstyle.checks.regexp that throw CheckstyleExceptionModifier and TypeMethodDescriptionprotected void
RegexpOnFilenameCheck.processFiltered
(File file, FileText fileText) -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.filters
Methods in com.puppycrawl.tools.checkstyle.filters that throw CheckstyleExceptionModifier and TypeMethodDescriptionprotected void
SuppressionFilter.finishLocalSetup()
protected void
SuppressionXpathFilter.finishLocalSetup()
static FilterSet
SuppressionsLoader.loadSuppressions
(String filename) Returns the suppression filters in a specified file.static Set<TreeWalkerFilter>
SuppressionsLoader.loadXpathSuppressions
(String filename) Returns the suppressionTreeWalker
filters in a specified file. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.gui
Methods in com.puppycrawl.tools.checkstyle.gui that throw CheckstyleException -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.meta
Methods in com.puppycrawl.tools.checkstyle.meta that throw CheckstyleException -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.utils
Methods in com.puppycrawl.tools.checkstyle.utils that throw CheckstyleExceptionModifier and TypeMethodDescriptionstatic URI
CommonUtil.getUriByFilename
(String filename) Resolve the specified filename to a URI.static String
XpathUtil.printXpathBranch
(String xpath, File file) Returns xpath query results on file as string.