Abstract class for checks that verify Bean implementation.
Base class for coupling calculation.
Creates new instance of the check.
Ensures that the names of abstract classes conforming to some
regular expression.
Creates new instance of the check.
Base class for checks the calculate complexity based around methods.
Provides common functionality for many FileSetChecks.
Creates a new AbstractFormatCheck
instance.
Abstract super class for header checks.
Abstract class for checking interface requirements.
Abstract class for J2ee component checking.
Contains the common implementation of a loader, for loading a configuration
from an XML file.
Abstract class for checking that names conform to a specified format.
Creates a new AbstractNameCheck
instance.
Abstract class which provides helpers functionality for nestedchecks.
Creates new instance of checks.
Abstract class that represents options.
Creates a new AbstractOption
instance.
Abstract class for checks with options.
Creates a new AbstractOptionCheck
instance.
Abstract class for checking the padding of parentheses.
Abstract class for checking that an overriding method with no parameters
invokes the super method.
Abstract class that endeavours to maintain type information for the Java
file being checked.
Performs a usage check for fields, methods, parameters, variables.
Constructs an AbstractUsageCheck
.
Serves as an abstract base class for all modules that report inspection
findings.
Determines whether or not a filtered AuditEvent is accepted.
Checks if given indentation is accaptable.
Determines whether an Integer matches a CSV integer value.
Determines whether or not a filtered Integer is accepted.
Logs a message to be reported.
Adds one more acceptable indentation level.
Adds one more acceptable indentation level.
Adds an attribute to this configuration.
Makes a configuration a child of this configuration.
Notify that an audit error was discovered on a specific file.
Print an Emacs compliant line on the error stream.
Notify that an exception happened while performing audit.
Adds a set of files (nested fileset attribute).
Adds a FileSetCheck to the list of FileSetChecks
that is executed in process().
Adds a filter to the end of the audit event filter chain.
Adds a Filter to the set.
Adds a IntFilter to the set.
Add a line to this set of lines.
Add the listener that will be used to receive events from the audit.
Add an override property.
Represents the policy that the brace must be alone on the line.
ANONINNER - static field in class com.puppycrawl.tools.checkstyle.api.
Scope anon inner scope.
Checks for long anonymous inner classes.
Applies this check to a set of nodes.
Handler for array initialization blocks.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Checks if array initialization contains optional trailing comma.
Checks the style of array type definitions.
The =
(assignment) operator.
Handler for assignements.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Creates a new AuditEvent
instance.
Creates a new AuditEvent
instance.
Notify that the audit is finished.
Listener in charge of receiving events from the Checker.
Notify that the audit is about to start.
A Java Bean that implements the component lifecycle interfaces by
calling the bean's setters for all configration attributes.
Detects inline conditionals.
Check that finds import statements that use the * notation.
Handler for case statements.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Handler for catch blocks.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Check - class com.puppycrawl.tools.checkstyle.api.
Check The base class for checks.
Checks a bean class requirements.
Check the indent level of the children of the specified parent
expression.
Checks that every ejbCreate method has a matching ejbPostCreate method.
Checks whether an ejbCreate<METHOD>(...) method of a
bean satisfies requirements.
Checks whether an ejbCreate<METHOD>(...) method of an
entity bean satisfies requirements.
Checks create<METHOD>(...) method requirements.
This class provides the functionality to check a set of files.
Creates a new Checker
instance.
Check the indentation level for an expression subtree.
Checks whether an ejbHome<METHOD>(...) method of an
entity bean satisfies requirements.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the expression we are handling.
Check the indentation of the left curly brace.
Check the indentation of consecutive lines for the expression we are
handling.
Check the indentation of the left parenthesis.
Checks whether a method satisfies component requirements.
Checks whether a method satisfies public, non-static, and final
requirements.
Checks that the methods of a component satisfy requirements.
Check the indentation level of modifiers.
Checks that the throws clause of a method definition does no include an
Exception.
Checks whether an ejbPostCreate<METHOD>(...) method of an
entity bean satisfies requirements.
Check the indentation of the right curly brace.
Check the indentation of the right parenthesis.
Checks whether an ejbSelect<METHOD>(...) method of an
entity bean satisfies requirements.
Name of resource bundle for Checkstyle.
Represents an error condition within Checkstyle.
Creates a new CheckstyleException
instance.
Creates a new CheckstyleException
instance
that was caused by another exception.
An implementation of a ANT task for calling checkstyle.
Checks that the throws clause of a method definition includes an
Exception.
Check the indent of the top level token.
Check the indent of the top level token.
Check the indentation of the top level token.
Contains utility methods for the checks.
Determines if child elements within the expression may be nested.
Determines if child elements within the expression may be nested.
This metric measures the number of instantiations of other classes
within the given class.
Creates bew instance of the check.
Handler for class definitions.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
The # of other classes a given class relies on.
Creates new instance of this check.
Utility class to resolve a class name to an actual class.
Creates a new ClassResolver
instance.
Flushes the output streams and closes them if needed.
COLON - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The :
(colon) operator.
COMMA - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The ,
(comma) operator.
Representation of the comment block.
This interface is used to be notified by parser about comments
in the parsed code.
A component that can be configured.
A Configuration is used to configure a Configurable component.
Loads a configuration from a standard configuration XML file.
Implements the Configurable interface using bean introspection.
Configures this component.
Checks that constant names conform to a format specified
by the format property.
Creates a new ConstantNameCheck
instance.
Builds the dotted name String representation of the object contained
within an AST.
Represents the container-managed persistence policy.
Checks methods of entity beans with container-managed persistence.
Constructs a ContainerManagedMethodChecker for a entity bean check.
A context to be used in subcomponents.
A Component that needs context information from it's container to work.
Implements the Contextualizable interface using bean introspection.
Sets the context for this Component.
Checks that if a class defines a covariant method equals,
then it defines method equals(java.lang.Object).
Mac-style line separators.
Creates a new FullIdent starting from the specified node.
Creates a new FullIdent starting from the child of the specified node.
Creates FullIdent
for given type node.
Creates a new instance of a class from a given name.
Creates a new instance of a class from a given name, or that name
concatenated with "Check".
Helper method to create a regular expression.
Windows-style line separators.
This filter accepts an integer that matches a CSV value, where
each value is an integer or a range of integers.
Constructs a CSVFilter
from a CSV, Comma-Separated Values,
string.
A constructor declaration.
Checks cyclomatic complexity against a specified limit.
Checks for fall through in switch statements
Finds locations where a case contains Java code -
but lacks a break, return, throw or continue statement.
Creates new instance of the check.
Represents the contents of a file.
Creates a new FileContents
instance.
Holds the current file contents for global access when configured
as a TreeWalker sub-module.
Notify that audit is finished on a specific file.
Checks for long source files.
Interface for Checking a set of files for some criteria.
Notify that audit is about to start on a specific file.
Filter - interface com.puppycrawl.tools.checkstyle.api.
Filter An interface for filtering AuditEvents.
Determines the set of files this FileSetCheck is interested in.
A filter set applies filters to AuditEvents.
FINAL - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The final
keyword.
Checks that class which has only private ctors
is declared as final.
Ensures that local variables that never get their values changed,
must be declared final.
Handler for finally blocks.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Check that method/constructor/catch parameters are final.
Checks that all static fields are declared final.
Returns the first child token that makes a specified type.
Find the set of lines for a given subtree.
Checks that required args were specified.
Provides a hook to finish the part of this compoent's setup that
was not handled by the bean introspection.
Check that everything was set up properly.
Called after finished processing a tree.
notify all listeners about the audit end
notify all listeners about the audit start
Notify all listeners about the errors in a file.
notify all listeners about the errors in a file.
Notify all listeners about the errors in a file.
Notify all listeners about the end of a file audit.
Notify all listeners about the end of a file audit.
Notify all listeners about the beginning of a file audit.
Notify all listeners about the beginning of a file audit.
Get the line number of the first line.
Get the starting column for the first line.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Represents a full identifier, including dots, with associated
position information.
GE - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The >=
(greater than or equal) operator.
A generic check for code problems, the user can search for any pattern.
Instantiates an new GenericIllegalRegexpCheck.
Searches for the value with the specified attribute key in this context.
The configurable token set.
Prevent user from changing tokens in the configuration.
Prevent user from changing tokens in the configuration.
Gets the manager for AST nodes.
The attribute value for an attribute name.
The set of attribute names.
Returns the names of all atttributes of this context.
A shortcut for IndentationCheck
property.
A shortcut for IndentationCheck
property.
Get the brace adjustment amount.
Get the case indentation level.
Returns a map of all C style comments.
Returns the number of child nodes one level below this node.
Returns the number of direct child tokens that have the specified type.
The set of child configurations.
Returns the class loader associated with the tree.
Returns the configuration that was used to configure this component.
Returns the number of counted events since audit started.
Returns a map of all the C++ style comments.
Returns the default token a check is interested in.
Get the tokens that this check will handle.
The default tokens this Check is used for.
The column in the inputfile where the text block ends.
The last line of the text block in the inputfile.
Returns the key for the Checkstyle error message.
Accessor for shared instance of logger which should be
used to log all exceptions occured during FileSetCheck
work (debug()
should be used).
Returns the file contents associated with the tree.
Returns the loaded filter chain.
Returns the IntFilters of the filter set.
Returns the Filters of the filter set.
Get the first line for a given expression.
Finds sub-node for given node minimal (line, column) pair.
Gets list of registered handler types.
Get the handler for an AST.
Return the header lines to check against.
getId() - method in class com.puppycrawl.tools.checkstyle.checks.javadoc.
HtmlTag Returns the id (name) of this tag.
Set the list of ignored method names.
Set the list of illegal variable types.
Accessor for the IndentCheck attribute.
SeverityLevel factory method.
Returns the Javadoc comment before the specified line.
Returns the message key to locate the translation, can also be used
in IDE plugins to map error messages to corrective actions.
Get the left curly brace portion of the expression we are handling.
Get the left curly brace portion of the expression we are handling.
Get the left curly brace portion of the expression we are handling.
Get the left curly brace portion of the expression we are handling.
Get the left curly brace portion of the expression we are handling.
Get the left curly brace portion of the expression we are handling.
Get the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
Compute the indentation amount for this handler.
return the line number on the source file where the event occurred.
Returns the source line number where this tag was found.
Returns the lines associated with the tree.
Loads the contents of a file in a String array.
Loads the contents of a file in a String array using
the named charset.
Get the start of the line for the given expression.
Get the start of the specified line.
Get the child element representing the list of statements.
Get the child element representing the list of statements.
Get the child element representing the list of statements.
Get the child element representing the list of statements.
Get the child element representing the list of statements.
There is no list of statements child for this handler.
Return the list of listeners set in this task.
Get the left parenthesis portion of the expression we are handling.
Accessor for the MainAst attribute.
Getter for maximum allowed nesting depth.
Getter for maximum allowed complexity.
Gets the maximum threshold.
return the message associated to the event.
Getter for message property.
Returns the message bundle name resourcebundle that contains the messages
used by this module.
Returns the collector for violation messages.
A message dispatcher is used to fire violation messages to
interested audit listeners.
Gets the method checker for this component check.
Returns the name of the overriding method.
The name of this configuration.
Get the child element that is not a list of statements.
Get the child element that is not a list of statements.
Get the child element that is not a list of statements.
There is no child element that is not a list of statements.
Returns the parent token.
Accessor for the Parent attribute.
Returns the set of directories for a set of files.
Returns the set PersistenceOption
.
Returns the position with in the comment line where this tag
was found.
Returns the previous sibling or null if no such sibling exists.
Get the right curly brace portion of the expression we are handling.
Get the right curly brace portion of the expression we are handling.
Get the right curly brace portion of the expression we are handling.
Get the right curly brace portion of the expression we are handling.
Get the right curly brace portion of the expression we are handling.
Get the right curly brace portion of the expression we are handling.
This is a factory method to return an RE object for the specified
regular expression.
The tokens that this check must be registered for.
Get the right parenthesis portion of the expression we are handling.
Returns the Scope specified by the modifier set.
Get the severity level's name.
Returns the severity level of the messages generated by this module.
Returns the short description of a token for a given name.
The column in the inputfile where the text block starts.
Get the starting column for a given line number.
The line in the inputfile where the text block starts.
Create a stripped down version of a filename.
Returns the map from string representations to options.
Returns the scope of the surrounding "block".
The text content of the text block.
Returns the ID of a token for a given name.
Returns the name of a token for a given ID.
Returns the tokens registered for the check.
There is no top level expression for this handler.
Get the top level expression being managed by this handler.
There is no top level expression for this handler.
There is no top level expression for this handler.
There is no top level expression for this handler.
There is no top level expression for this handler.
Determines the EJB version.
GT - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The >
(greater than) operator.
IDENT - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes An identifier.
Handler for if statements.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Catching java.lang.Exception, java.lang.Error or java.lang.RuntimeException
is almost never acceptable.
Creates new instance of the check.
Checks for imports from a set of illegal packages.
Creates a new IllegalImportCheck
instance.
Checks for illegal instantiations where a factory method is preferred.
Checks for illegal tokens.
Checks for illegal token text.
Checks that particular class are never used as types in variable
declarations, return values or parameters.
Creates new instance of the check.
Determines whether an AST node is in the definition of a
class that implements javax.ejb.EntityBean.
Determines whether an AST node is in the definition of a
class that implements javax.ejb.SessionBean.
Handler for import statements.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Class to check the ordering/grouping of imports.
INC - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The ++
(prefix increment) operator.
Returns whether the scope of a node is restricted to a code block.
Increments the current value by a specified amount.
Checks correct indentation of Java Code.
Creates a new instance of IndentationCheck.
Encapsulates representation of notion of expected indentation levels.
Creates new instance for nested structure.
Creates new instance with one accaptable indentation level.
The array index operator.
Severity level: informational.
Returns whether a node is directly contained within an interface block.
init() - method in class com.puppycrawl.tools.checkstyle.api.
Check Initialse the check.
Initializes the cause of this exception.
Checks for assignments in subexpressions, such as in
String s = Integer.toString(i = 2);
.
An interface declaration.
Implements Bloch, Effective Java, Item 17 -
Use Interfaces only to define types.
Checks if this comment intersects with a specified
part of the file.
An interface for filtering Integer.
This filter accepts a matching Integer.
Constructs a MatchFilter for an int.
This filter accepts an Integer in a range.
Constructs a IntRangeFilter
with a
lower bound and an upper bound for the range.
Determines whether an AST defines an abstract element.
Indicates if this tag is a self-closed XHTML style.
Indicates if this tag is a close (end) tag.
Returns whether a token represents an ELSE as part of an ELSE / IF set.
isEmpty() - method in class com.puppycrawl.tools.checkstyle.checks.indentation.
LineSet Determines if this set of lines is empty.
Tests whether a method definition AST defines an equals covariant.
Determines whether an AST defines a final element.
Returns true if this type (form TokenTypes) is handled.
Checks if this scope is a subscope of another scope.
Indicates if this tag is incomplete (has no close >).
Determines whether an AST node is in the definition of an
EJB class.
Determines whether a node is a local variable definition.
Checks if a code line matches the required header line.
Returns whether a node is contained in the outer most type block.
Determines whether an AST defines a public element.
Determines whether an AST node defines a public method.
Determines whether an AST node defines a public method.
Determines whether an AST node defines a public method.
Return if two Strings represent the same type, inspecting the
import statements if necessary
Calculate if one type name is a shortname for another type name.
Determines whether an AST defines a static element.
Checks if one class is subclass of another
Is exception is unchecked (subclass of RuntimeException
or Error
Determines whether an AST defines a void method.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
LAND - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The &&
(conditional AND) operator.
lastLine() - method in class com.puppycrawl.tools.checkstyle.checks.indentation.
LineSet Get the line number of the last line.
A left (curly) brace ({
).
LE - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The <=
(less than or equal) operator.
Called after all the child nodes have been process.
Hook called when leaving a token.
Checks the placement of left curly braces on types, methods and other the
other blocks:
LITERAL_CATCH
,
LITERAL_DO
,
LITERAL_ELSE
,
LITERAL_FINALLY
,
LITERAL_FOR
,
LITERAL_IF
,
LITERAL_SWITCH
,
LITERAL_SYNCHRONIZED
,
LITERAL_TRY
,
LITERAL_WHILE
.
Creates a default instance and sets the policy to EOL.
Represents the options for placing the left curly brace '{'
.
Returns the length of a String prefix with tabs expanded.
Returns the length of a string ignoring all trailing whitespace.
Unix-style line separators.
Checks if the specified line is blank.
Checks if the specified line is a single-line comment without code.
Creates a new LineLengthCheck
instance.
Represents the options for line separator settings.
LineSet - class com.puppycrawl.tools.checkstyle.checks.indentation.
LineSet Represents a set of lines.
The synchronized
keyword.
LNOT - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The !
(logical complement) operator.
Returns the module configurations in a specified file.
Returns the default list of package names.
Returns the package names in a specified file.
Returns the suppression filters in a specified file.
Checks that local final variable names conform to a format specified
by the format property.
Creates a new LocalFinalVariableNameCheck
instance.
Checks the local home interface requirements:
- every method must not throw the
java.rmi.RemoteException
Reference: Enterprise JavaBeansTM Specification,Version 2.0, section 9.6.2.
Constructs a LocalHomeInterfaceCheck
.
Checks the local home interface requirements:
- every method must not throw the
java.rmi.RemoteException
Reference: Enterprise JavaBeansTM Specification,Version 2.0, section 9.6.2.
Constructs a method checker for a local home interface check.
Checks the methods of a local interface.
Constructs a LocalInterfaceCheck
.
Checks methods of a local interface.
Constructs a LocalInterfaceMethodChecker
for a local
interface check.
Represents a message that can be localised.
Creates a new LocalizedMessage
instance.
Creates a new LocalizedMessage
instance.
Creates a new LocalizedMessage
instance.
Creates a new LocalizedMessage
instance.
Checks that local, non-final variable names conform to a format specified
by the format property.
Creates a new LocalVariableNameCheck
instance.
Helper method to log a LocalizedMessage.
Helper method to log a LocalizedMessage.
Helper method to log a LocalizedMessage.
Helper method to log a LocalizedMessage for an AST.
Logs an error message for a method.
Helper method to log a LocalizedMessage.
Helper method to log a LocalizedMessage.
Helper method to log a LocalizedMessage.
Log a message that has column information.
Helper method to log a LocalizedMessage.
Log a message that has no column information.
Helper method to log a LocalizedMessage.
Helper method to log a LocalizedMessage.
Log an indentation error.
Log an indentation error.
Logs error if unable to load class information.
Logs error if unable to load class information.
Logs error if unable to load class information.
Helper method to log a LocalizedMessage for an AST.
Logs an error message for a method, including the method name.
LOR - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The ||
(conditional OR) operator.
LT - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The <
(less than) operator.
Checks for magic numbers.
Main - class com.puppycrawl.tools.checkstyle.
Main Wrapper command line program for the Checker.
Loops over the files specified checking them for errors.
Checks that instance variable names conform to a format specified
by the format property.
Creates a new MemberNameCheck
instance.
Checks that a MessageBean implementation satisfies MessageBean
requirements.
Constructs a MessageBeanCheck
.
Checks the methods of a message bean.
Constructs a MessageBeanMethodChecker
.
Used by FileSetChecks to distribute AuditEvents to AuditListeners.
Handler for method calls.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Root class for method checks for a client Check.
Constructs a MethodChecker
.
Handler for method definitions.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Checks that method names conform to a format specified
by the format property.
Creates a new MethodNameCheck
instance.
Checks the padding between the identifier of a method definition,
constructor definition, method call, or constructor invocation;
and the left parenthesis of the parameter list.
Sets the pad otion to nospace.
MINUS - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The -
(subtraction) operator.
The -=
(subtraction assignment) operator.
Checks that classes (except abstract one) define a ctor and don't rely
on the default one.
Creates new instance of the check.
Checks that switch statement has "default" clause.
Creates new instance of the check.
Represents the policy that the persistence management may be
bean-managed or container-managed.
MOD - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The %
(remainder) operator.
The %=
(remainder assignment) operator.
Check for ensuring that for loop control variables are not modified
inside the for block.
Modifiers for type, method, and field declarations.
A module factory creates Objects from a given name.
Checks for multiple occurrences of the same string literal within a
single file.
Checks that each variable declaration is in its own statement
and on its own line.
Creates new instance of the check.
Decides whether the name of an AST should be checked against
the format regexp.
Determines whether the reference count of an aAST is required.
Ensures that exceptions (defined as any class name conforming
to some regular expression) are immutable.
Creates new instance of the check.
PACKAGE - static field in class com.puppycrawl.tools.checkstyle.api.
Scope package scope.
Ensures there is a package declaration.
Handler for package definitions.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Checks that all packages have a package documentation.
Creates a new PackageHtmlCheck
instance.
Checks that package names conform to a format specified
by the format property.
Creates a new PackageNameCheck
instance.
Loads a list of package names from a package name XML file.
A factory for creating objects from package names and names.
Represents the options for whitespace around parentheses.
Disallow assignment of parameters.
Checks that parameter names conform to a format specified
by the format property.
Creates a new ParameterNameCheck
instance.
Checks the number of parameters that a method or constructor has.
A list of parameters to a method or constructor.
Checks the padding of parentheses; that is whether a space is required
after a left parenthesis and before a right parenthesis, or such spaces are
forbidden, with the exception that it does
not check for padding of the right parenthesis at an empty for iterator.
Static helper method to parses a Java source file.
Returns the value represented by the specified string of the specified
type.
Returns the value represented by the specified string of the specified
type.
Parses the specified input source.
Parses the string argument as a signed integer in the radix specified by
the second argument.
Parses the string argument as a signed long in the radix specified by
the second argument.
Represents the policy for checking entity bean restrictions according
to whether persistence is bean-managed, container-managed, or mixed.
PLUS - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The +
(addition) operator.
The +=
(addition assignment) operator.
The --
(postfix decrement) operator.
The ++
(postfix increment) operator.
Construct an instance of this handler with the given indentation check.
PRIVATE - static field in class com.puppycrawl.tools.checkstyle.api.
Scope private scope.
Processes a set of files with all FileSetChecks.
Processes a set of files and fires errors to the MessageDispatcher.
Checks that each java file in the fileset has a package.html sibling
and fires errors for the missing files.
This method searches for property files in the specified file array
and checks whether the key usage is consistent.
Called to process an AST when visiting it.
Checks Javadoc comments for a method or constructor.
Checks exceptions declared in throws for a method or constructor.
Process a token representing a left parentheses.
Process a token representing a right parentheses.
Resolves external properties from an
underlying Properties
object.
Creates a new PropertiesExpander.
This class maintains a persistent store of the files that have
checked ok and their associated timestamp.
Resolves properties in module configurations.
PROTECTED - static field in class com.puppycrawl.tools.checkstyle.api.
Scope protected scope.
PUBLIC - static field in class com.puppycrawl.tools.checkstyle.api.
Scope public scope.
Push the current value on the stack
A right (curly) brace (}
).
Determines if the right curly brace must be at the start of the line.
Determines if the right curly brace must be at the start of the line.
Ensures that we don't get multiple instances of one AbstractOption
during deserialization.
Checks for imports that are redundant.
Checks for redundant modifiers in interface definitions.
Checks for redundant exceptions declared in throws clause
such as duplicates, unchecked exceptions or subclasses of
another declared exception.
Checks the header of the source against a header file that contains a
regular expression
for each line of the source header.
Checks the methods of a remote home interface.
Constructs a RemoteHomeInterfaceCheck
.
Checks methods of a remote home interface check.
Constructs a method checker for a remote home interface check.
Checks the methods of a remote interface.
Constructs a RemoteInterfaceCheck
.
Checks methods of a remote interface.
Constructs a RemoteInterfaceMethodChecker
for a
remote interface check.
Removes a given listener.
Report the location of a block comment that can span multiple lines.
Report the location of a C-style comment.
Report the location of a C++ style comment.
Report the location of a single line comment that extends from the
given point to the end of the line.
A check that makes sure that a specified pattern exists in the code.
Instantiates an new GenericIllegalRegexpCheck.
Checks that code doesn't rely on the "this." default,
i.e.
Creates new instance of the check.
Resolves a property through the underlying Properties object.
Resolves a property name to it's value.
Attempts to resolve the Class for a specified name.
Attempts to resolve the Class for a specified name.
Restricts return statements to a specified count (default = 2).
Creates new instance of the checks.
Checks the placement of right curly braces.
Sets the right curly option to same.
Represents the options for placing the right curly brace '}'
.
Will load a specified class is such a way that it will NOT be
initialised.
Represents the policy that the brace must be on the same line as the
next statement.
Tests whether two method definition ASTs have the same parameter lists
according to type.
returns the list of files (full path name) to process.
Scope - class com.puppycrawl.tools.checkstyle.api.
Scope Represents a Java visibility scope.
Contains utility methods for working on scope.
SEMI - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The statement terminator (;
).
Checks that a SessionBean implementation satisfies SessionBean
requirements.
Constructs a SessionBeanCheck
.
Checks the methods of a session bean.
Creates a method checker for a session bean check.
Sets whether to accept or reject on matching severity level.
Sets the maximum allowed duplicates of a string.
Setter for allowInSwitchCase property.
Control whether whitespace is flagged at linebreaks.
Control whether whitespace is flagged at linebreaks.
Control whether whitespace is flagged at linebreaks.
Controls whether marker interfaces like Serializable are allowed.
controls whether to allow a method which has parameters
to omit matching param tags in the javadoc.
controls whether to allow a method which returns
non-void type to omit the return tag in the javadoc.
controls whether to allow a method which declares that
it throws exceptions to omit matching throws tags
in the javadoc.
Getter for allowSubclasses property.
controls whether to allow documented exception that
are subclass of one of declared exceptions.
Getter for allowUnchecked property.
controls whether to allow documented exceptions that
are not declared if they are a subclass of
java.lang.RuntimeException.
Sets whether we should apply the check to package-private members.
Sets whether we should apply the check to private members.
Sets whether we should apply the check to protected members.
Sets whether we should apply the check to public members.
Set the author tag pattern.
Adjusts brace indentation (positive offset).
Set the case indentation level.
Sets whether strings comprision should be case sensitive
or not.
Set whether to look in C comments.
Set whether to look in C++ comments.
Sets the flag that determines if empty JavaDoc checking should be done.
Setter for checkFields property.
Sets the flag that determines if the first sentence is checked for
proper end of sentence punctuation.
Set the format for a check.
Sets the flag that determines if HTML checking is to be performed.
Setter for checkMethods property.
Sets the classes that are illegal to instantiate.
Set the class loader associated with the tree.
Sets the classloader that is used to contextualize filesetchecks.
Sets the maximum ncss for a class.
Set the class path from a reference defined elsewhere.
Sets the CSV values and ranges for column number filtering.
Set the excluded classes pattern.
Sets the list of packages to exempt from the check.
Tells this task to set the named property to "true" when there
is a violation.
Loads the suppressions for a file.
Set the file contents associated with the tree.
Set the FileContents for this filter.
Sets the file extensions that identify the files that pass the
filter of this FileSetCheck.
Sets the maximum ncss for a file.
Sets this AST's first Child.
Set the format to the specified regular expression.
sets the list of package groups and the order they should
occur in the file.
Set the header to check against.
Set the header to check against.
Set the header file to check against.
Sets the file that contains the header to check against.
Set whether or not the match is case sensitive.
Control whether unused catch clause parameters are flagged.
Sets if comments should be ignored.
Set whether to ignore constructor parameters.
Set the list of ignore method names.
Set the ignore format to the specified regular expression.
Set the ignore format to the specified regular expression.
Set the lines numbers to ignore in the header check.
Controls whether public/protected/paskage methods shouldn't be checked.
Sets the numbers to ignore in the check.
Set whether to ignore the parameter of a property setter method.
Set the list of illegal exception classes.
Set the list of illegal variable types.
Set the list of illegal packages.
Controls whether to check for Java or C style.
Sets the tokens which occurance as descendant is limited.
Sets the CSV values and ranges for line number filtering.
Sets the line separator to one of 'crlf', 'lf' or 'cr'.
Sets maximul allowed complexity.
Set the maximum threshold allowed.
Setter for maximum allowed nesting depth.
Setter for maximum allowed complexity.
Sets the maximum threshold.
Sets the maximum number of allowed parameters.
Sets the maximum number of errors allowed.
Sets the maximum depth for descendant counts.
Sets the error message for maximum count exceeded.
Sets a maximum count for descendants.
Sets the maximum line length used in calculating the placement of the
left curly brace.
Sets the maximum number of warings allowed.
Setter for message property.
Sets the MessageDispatcher that is used to dispatch error
messages to AuditListeners during processing.
Set the format for a message.
Set the global object used to collect messages.
Sets the method checker for this component check.
Sets the maximum ncss for a method.
Sets the minimum number of lines that must be equivalent
before the check complains.
Sets the mimimum depth for descendant counts.
Sets the error message for minimum count not reached.
Sets a minimum count for descendants.
Sets the factory for creating submodules.
Sets the module factory for creating child modules (Checks).
Set the lines numbers to repeat in the header check.
Set the format for a comment that turns off reporting.
Set the format for a comment that turns on reporting.
Set the option to enforce.
Sets whether or not imports should be ordered within any one
group of imports.
Set whether package visible members are allowed.
Set the persistence option to enforce.
Sets a properties file for use instead
of individually setting them.
Set whether protected members are allowed.
Set the pattern for public members to ignore.
Sets whether or not groups of imports must be separated from
one another by at least one blank line.
Set the tab width to report errors with.
Adds a set of tokens the check is interested in.
Called by configure() for every child of this component's Configuration.
Instantiates, configures and registers a child AbstractFilter
or FileSetCheck
that is specified in the provided configuration.
Instantiates, configures and registers a Check that is specified
in the provided configuration.
Set the version format pattern.
Severity level for a check violation.
An audit listener that counts how many
AuditEvents
of a given severity have been generated.
This is a very simple filter based on severity matching.
Checks for overly complicated boolean expressions.
Checks for overly complicated boolean return statements.
SL - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The <<
(shift left) operator.
The <<=
(left shift assignment) operator.
SLIST - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes A list of statements.
Handler for a list of statements.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
SPACE - static field in class com.puppycrawl.tools.checkstyle.checks.whitespace.
PadOption Represents mandatory spacing following a left parenthesis
and preceeing a right one.
SR - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The >>
(signed shift right) operator.
The >>=
(signed right shift assignment)
operator.
STAR - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes The *
(multiplication or wildcard) operator.
The *=
(multiplication assignment) operator.
Determines if the given expression is at the start of a line.
A static initialization block.
Handler for static initialization blocks.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
Checks that static, non-final variable names conform to a format specified
by the format property.
Creates a new StaticVariableNameCheck
instance.
STMT - static field in class com.puppycrawl.tools.checkstyle.checks.blocks.
BlockOption Represents the policy that there is a statement in the block.
Checks for duplicate code.
Creates a new instance of this class.
A Reader that reads from an underlying String array, assuming each
array element corresponds to one line of text.
Checks that string literals are not used with
==
or !=
.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
Indentation level suggested for a child element.
A super constructor call.
Checks that an overriding clone() method invokes super.clone().
Checks that an overriding finalize() method invokes super.finalize().
This filter accepts AuditEvents according to file, check, line, and
column conditions.
Constructs a SuppressElement
for a
file name pattern and and a check class pattern.
A filter that uses comments to suppress audit events.
Constructs a SuppressionCommentFilter.
This filter accepts AuditEvents according to file, check, line, and
column, as specified in a suppression file.
Loads a filter chain of suppressions.
Handler for switch statements.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
System default line separators.
Reports tab characters ('\t') in the source code.
Helper class used to parse HTML tags from a single line of text.
Constructs a TagParser and finds the first tag if any.
TEXT - static field in class com.puppycrawl.tools.checkstyle.checks.blocks.
BlockOption Represents the policy that there is some text in the block.
A block of text from an inputfile that does not necessarily
have any grammatical structure.
Checks that 'this' is not a parameter of any method calls
or constructors for a bean.
Checks that 'this' is not returned by a bean method.
Restricts throws statements to a specified count (default = 1).
Creates new instance of the check.
A check for TODO comments.
Creates a new TodoCommentCheck
instance.
Contains the constants for all the tokens contained in the Abstract
Syntax Tree.
Determines if the top level token must start the line.
Determines if the top level token must start the line.
Determines if the top level token must start the line.
Determines if the top level token must start the line.
Returns the string representation of this AbstractOption.
Returns this HTML tag and trailing text.
toString() - method in class com.puppycrawl.tools.checkstyle.checks.indentation.
LineSet
The check to ensure that requires that comments be the only thing on a line.
Creates new instance of the check.
The TranslationCheck class helps to ensure the correct translation of code by
checking property files for consistency regarding their keys.
Creates a new TranslationCheck
instance.
Responsible for walking an abstract syntax tree and notifying interested
checks at each each node.
Creates a new TreeWalker
instance.
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
TYPE - static field in class com.puppycrawl.tools.checkstyle.api.
TokenTypes A type.
Checks the padding of parentheses for typecasts.
Checks that type names conform to a format specified
by the format property.
Creates a new TypeNameCheck
instance.