Uses of Class
com.puppycrawl.tools.checkstyle.api.CheckstyleException
-
Packages that use CheckstyleException Package Description com.puppycrawl.tools.checkstyle Contains the implementation of the Checkstyle framework.com.puppycrawl.tools.checkstyle.api Contains the core API to be used to implement checks.com.puppycrawl.tools.checkstyle.checks.header File Header checks.com.puppycrawl.tools.checkstyle.checks.imports Contains the Imports checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.javadoc Contains the Javadoc checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.checks.regexp Contains the regular expression checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.filters Contains the filters that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.gui User interface classes for CheckStyle.com.puppycrawl.tools.checkstyle.meta Contains module metadata generation classes for checkstyle.com.puppycrawl.tools.checkstyle.utils Contains utils classes for checkstyle. -
-
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle
Methods in com.puppycrawl.tools.checkstyle that throw CheckstyleException Modifier and Type Method Description java.lang.Object
ModuleFactory. createModule(java.lang.String name)
Creates a new instance of a class from a given name.java.lang.Object
PackageObjectFactory. createModule(java.lang.String name)
Creates a new instance of a class from a given name, or that name concatenated with "Check".protected void
Checker. finishLocalSetup()
java.lang.String
DefaultConfiguration. getAttribute(java.lang.String attributeName)
static java.util.Set<java.lang.String>
PackageNamesLoader. getPackageNames(java.lang.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(java.lang.String config, PropertyResolver overridePropsResolver)
Returns the module configurations in a specified file.static Configuration
ConfigurationLoader. loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions)
Returns the module configurations in a specified file.static Configuration
ConfigurationLoader. loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings)
Returns the module configurations in a specified file.static Configuration
ConfigurationLoader. loadConfiguration(java.lang.String config, PropertyResolver overridePropsResolver, ThreadModeSettings threadModeSettings)
Returns the module configurations in a specified file.static Configuration
ConfigurationLoader. loadConfiguration(org.xml.sax.InputSource configSource, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions)
Returns the module configurations from a specified input source.static Configuration
ConfigurationLoader. loadConfiguration(org.xml.sax.InputSource configSource, PropertyResolver overridePropsResolver, ConfigurationLoader.IgnoredModulesOptions ignoredModulesOptions, ThreadModeSettings threadModeSettings)
Returns the module configurations from a specified input source.static void
JavadocPropertiesGenerator. main(java.lang.String... args)
TokenTypes.properties generator entry point.static DetailAST
JavaParser. parse(FileContents contents)
Static helper method to parses a Java source file.static DetailAST
JavaParser. parseFile(java.io.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 java.lang.String
AstTreeStringPrinter. printAst(FileText text, JavaParser.Options options)
Parse a file and print the parse tree.static java.lang.String
AstTreeStringPrinter. printFileAst(java.io.File file, JavaParser.Options options)
Parse a file and print the parse tree.static java.lang.String
AstTreeStringPrinter. printJavaAndJavadocTree(java.io.File file)
Prints full AST (java + comments + javadoc) of the java file.static java.lang.String
SuppressionsStringPrinter. printSuppressions(java.io.File file, java.lang.String suppressionLineColumnNumber, int tabWidth)
Prints generated suppressions.int
Checker. process(java.util.List<java.io.File> files)
protected void
TreeWalker. processFiltered(java.io.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 CheckstyleException Modifier and Type Method Description void
AutomaticBean. configure(Configuration config)
Implements the Configurable interface using bean introspection.void
Configurable. configure(Configuration configuration)
Configures this component.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.java.lang.String
Configuration. getAttribute(java.lang.String name)
The attribute value for an attribute name.java.util.SortedSet<LocalizedMessage>
AbstractFileSetCheck. process(java.io.File file, FileText fileText)
java.util.SortedSet<LocalizedMessage>
FileSetCheck. process(java.io.File file, FileText fileText)
Request to process a file.int
RootModule. process(java.util.List<java.io.File> files)
Processes a set of files.protected abstract void
AbstractFileSetCheck. processFiltered(java.io.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 CheckstyleException Modifier and Type Method Description protected void
AbstractHeaderCheck. finishLocalSetup()
void
AbstractHeaderCheck. setHeaderFile(java.net.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 Modifier and Type Method Description static com.puppycrawl.tools.checkstyle.checks.imports.PkgImportControl
ImportControlLoader. load(java.net.URI uri)
Loads the import control file from a file. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.checks.javadoc
Methods in com.puppycrawl.tools.checkstyle.checks.javadoc that throw CheckstyleException Modifier and Type Method Description protected void
JavadocPackageCheck. processFiltered(java.io.File file, FileText fileText)
-
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.checks.regexp
Methods in com.puppycrawl.tools.checkstyle.checks.regexp that throw CheckstyleException Modifier and Type Method Description protected void
RegexpOnFilenameCheck. processFiltered(java.io.File file, FileText fileText)
-
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.filters
Methods in com.puppycrawl.tools.checkstyle.filters that throw CheckstyleException Modifier and Type Method Description protected void
SuppressionFilter. finishLocalSetup()
protected void
SuppressionXpathFilter. finishLocalSetup()
static FilterSet
SuppressionsLoader. loadSuppressions(java.lang.String filename)
Returns the suppression filters in a specified file.static java.util.Set<TreeWalkerFilter>
SuppressionsLoader. loadXpathSuppressions(java.lang.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 Modifier and Type Method Description void
MainFrameModel. openFile(java.io.File file)
Open file and load the file. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.meta
Methods in com.puppycrawl.tools.checkstyle.meta that throw CheckstyleException Modifier and Type Method Description static void
MetadataGeneratorUtil. generate(java.lang.String... args)
Generate metadata from the module source files available in the input argument path. -
Uses of CheckstyleException in com.puppycrawl.tools.checkstyle.utils
Methods in com.puppycrawl.tools.checkstyle.utils that throw CheckstyleException Modifier and Type Method Description static java.net.URI
CommonUtil. getUriByFilename(java.lang.String filename)
Resolve the specified filename to a URI.static java.lang.String
XpathUtil. printXpathBranch(java.lang.String xpath, java.io.File file)
Returns xpath query results on file as string.
-