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 |
Contains the checks that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.annotation |
Contains the Annotation checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.blocks |
Contains the Block checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.coding |
Contains the Coding checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.design |
Contains the Class Design checks that
are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.imports |
Contains the Imports checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.indentation |
Contains all classes required for the
indentation check.
|
com.puppycrawl.tools.checkstyle.checks.javadoc |
Contains the Javadoc checks that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.metrics |
Contains the Metrics checks that are
bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.modifier |
Contains the modifier checks that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.naming |
Contains the Naming conventions 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.checks.sizes |
Contains the Size Violations checks
that are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.checks.whitespace |
Contains the Whitespace checks that
are bundled with the main distribution.
|
com.puppycrawl.tools.checkstyle.gui |
User interface classes for CheckStyle.
|
Modifier and Type | Method and Description |
---|---|
static DetailAST |
TreeWalker.parse(FileContents contents)
Static helper method to parses a Java source file.
|
Modifier and Type | Method and Description |
---|---|
static DetailAST |
AnnotationUtility.annotatingWhat(DetailAST ast)
Checks to see what the passed in AST (representing
an annotation) is annotating.
|
DetailAST |
DetailAST.findFirstToken(int type)
Returns the first child token that makes a specified type.
|
static DetailAST |
AnnotationUtility.getAnnotation(DetailAST ast,
String annotation)
Checks to see if the AST is annotated with
the passed in annotation and return the AST
representing that annotation.
|
static DetailAST |
AnnotationUtility.getAnnotationHolder(DetailAST ast)
Gets the AST that holds a series of annotations for the
potentially annotated AST.
|
DetailAST |
DetailAST.getFirstChild() |
DetailAST |
DetailAST.getLastChild() |
DetailAST |
DetailAST.getNextSibling() |
DetailAST |
DetailAST.getParent()
Returns the parent token.
|
DetailAST |
DetailAST.getPreviousSibling()
Returns the previous sibling or null if no such sibling exists.
|
Modifier and Type | Method and Description |
---|---|
void |
DetailAST.addNextSibling(DetailAST ast)
Add next sibling.
|
void |
DetailAST.addPreviousSibling(DetailAST ast)
Add previous sibling.
|
static DetailAST |
AnnotationUtility.annotatingWhat(DetailAST ast)
Checks to see what the passed in AST (representing
an annotation) is annotating.
|
void |
Check.beginTree(DetailAST rootAST)
Called before the starting to process a tree.
|
static boolean |
AnnotationUtility.containsAnnotation(DetailAST ast)
Checks to see if the AST is annotated with
any annotation.
|
static boolean |
AnnotationUtility.containsAnnotation(DetailAST ast,
String annotation)
Checks to see if the AST is annotated with
the passed in annotation.
|
static FullIdent |
FullIdent.createFullIdent(DetailAST ast)
Creates a new FullIdent starting from the specified node.
|
static FullIdent |
FullIdent.createFullIdentBelow(DetailAST ast)
Creates a new FullIdent starting from the child of the specified node.
|
void |
Check.finishTree(DetailAST rootAST)
Called after finished processing a tree.
|
static DetailAST |
AnnotationUtility.getAnnotation(DetailAST ast,
String annotation)
Checks to see if the AST is annotated with
the passed in annotation and return the AST
representing that annotation.
|
static DetailAST |
AnnotationUtility.getAnnotationHolder(DetailAST ast)
Gets the AST that holds a series of annotations for the
potentially annotated AST.
|
static Scope |
ScopeUtils.getScopeFromMods(DetailAST aMods)
Returns the Scope specified by the modifier set.
|
static Scope |
ScopeUtils.getSurroundingScope(DetailAST aAST)
Returns the scope of the surrounding "block".
|
static boolean |
ScopeUtils.inAnnotationBlock(DetailAST aAST)
Returns whether a node is directly contained within an annotation block.
|
static boolean |
ScopeUtils.inCodeBlock(DetailAST aAST)
Returns whether the scope of a node is restricted to a code block.
|
static boolean |
ScopeUtils.inEnumBlock(DetailAST aAST)
Returns whether a node is directly contained within an enum block.
|
static boolean |
ScopeUtils.inInterfaceBlock(DetailAST aAST)
Returns whether a node is directly contained within an interface block.
|
static boolean |
ScopeUtils.inInterfaceOrAnnotationBlock(DetailAST aAST)
Returns whether a node is directly contained within an interface or
annotation block.
|
static boolean |
AnnotationUtility.isAnnotatingType(DetailAST ast,
int tokenType)
Checks to see if the passed in AST (representing
an annotation) is annotating the passed in type.
|
static boolean |
ScopeUtils.isLocalVariableDef(DetailAST aAST)
Determines whether a node is a local variable definition.
|
static boolean |
ScopeUtils.isOuterMostType(DetailAST aAST)
Returns whether a node is contained in the outer most type block.
|
abstract boolean |
JavadocTagInfo.isValidOn(DetailAST ast)
Checks if a particular Javadoc tag is valid within a Javadoc block of a
given AST.
|
void |
Check.leaveToken(DetailAST ast)
Called after all the child nodes have been process.
|
protected void |
AbstractViolationReporter.log(DetailAST ast,
String key,
Object... args)
Helper method to log a LocalizedMessage.
|
void |
Check.visitToken(DetailAST ast)
Called to process a token.
|
Modifier and Type | Method and Description |
---|---|
static DetailAST |
CheckUtils.getFirstNode(DetailAST node)
Finds sub-node for given node minimal (line, column) pair.
|
Modifier and Type | Method and Description |
---|---|
static List<DetailAST> |
CheckUtils.getTypeParameters(DetailAST node)
Retrieves the type parameters to the node.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractTypeAwareCheck.beginTree(DetailAST rootAST)
Deprecated.
|
void |
UncommentedMainCheck.beginTree(DetailAST rootAST) |
void |
SuppressWarningsHolder.beginTree(DetailAST rootAST) |
void |
TrailingCommentCheck.beginTree(DetailAST rootAST) |
void |
FileContentsHolder.beginTree(DetailAST rootAST) |
void |
RegexpCheck.beginTree(DetailAST rootAST) |
void |
OuterTypeFilenameCheck.beginTree(DetailAST ast) |
void |
DeclarationCollector.beginTree(DetailAST rootAST) |
static FullIdent |
CheckUtils.createFullType(DetailAST typeAST)
Creates
FullIdent for given type node. |
void |
OuterTypeFilenameCheck.finishTree(DetailAST rootAST) |
static DetailAST |
CheckUtils.getFirstNode(DetailAST node)
Finds sub-node for given node minimal (line, column) pair.
|
static List<String> |
CheckUtils.getTypeParameterNames(DetailAST node)
Retrieves the names of the type parameters to the node.
|
static List<DetailAST> |
CheckUtils.getTypeParameters(DetailAST node)
Retrieves the type parameters to the node.
|
static boolean |
CheckUtils.isElseIf(DetailAST ast)
Returns whether a token represents an ELSE as part of an ELSE / IF set.
|
static boolean |
CheckUtils.isEqualsMethod(DetailAST ast)
Tests whether a method definition AST defines an equals covariant.
|
protected void |
AbstractTypeAwareCheck.leaveAST(DetailAST ast)
Deprecated.
Called when exiting an AST.
|
void |
AbstractTypeAwareCheck.leaveToken(DetailAST ast)
Deprecated.
|
void |
UncommentedMainCheck.leaveToken(DetailAST ast) |
protected abstract void |
AbstractTypeAwareCheck.processAST(DetailAST ast)
Deprecated.
Called to process an AST when visiting it.
|
void |
AbstractTypeAwareCheck.visitToken(DetailAST ast)
Deprecated.
|
void |
FinalParametersCheck.visitToken(DetailAST ast) |
void |
UncommentedMainCheck.visitToken(DetailAST ast) |
void |
ArrayTypeStyleCheck.visitToken(DetailAST ast) |
void |
SuppressWarningsHolder.visitToken(DetailAST ast) |
void |
AvoidEscapedUnicodeCharactersCheck.visitToken(DetailAST ast) |
void |
DescendantTokenCheck.visitToken(DetailAST ast) |
void |
TrailingCommentCheck.visitToken(DetailAST ast) |
void |
TodoCommentCheck.visitToken(DetailAST ast) |
void |
OuterTypeFilenameCheck.visitToken(DetailAST ast) |
void |
DeclarationCollector.visitToken(DetailAST ast) |
void |
UpperEllCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationLocationCheck.visitToken(DetailAST ast) |
void |
MissingDeprecatedCheck.visitToken(DetailAST ast)
Called to process a token.
|
void |
AnnotationUseStyleCheck.visitToken(DetailAST ast)
Called to process a token.
|
void |
MissingOverrideCheck.visitToken(DetailAST ast)
Called to process a token.
|
void |
PackageAnnotationCheck.visitToken(DetailAST ast)
Called to process a token.
|
void |
SuppressWarningsCheck.visitToken(DetailAST ast)
Called to process a token.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
EmptyBlockCheck.hasText(DetailAST slistAST) |
void |
LeftCurlyCheck.visitToken(DetailAST ast) |
void |
AvoidNestedBlocksCheck.visitToken(DetailAST ast) |
void |
RightCurlyCheck.visitToken(DetailAST ast) |
void |
NeedBracesCheck.visitToken(DetailAST ast) |
void |
EmptyBlockCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
List<DetailAST> |
IllegalCatchCheck.getAllExceptionTypes(DetailAST parentToken)
Finds all exception types in current catch.
|
Modifier and Type | Method and Description |
---|---|
void |
OneStatementPerLineCheck.beginTree(DetailAST rootAST) |
void |
ModifiedControlVariableCheck.beginTree(DetailAST rootAST) |
void |
IllegalTokenTextCheck.beginTree(DetailAST rootAST) |
void |
ReturnCountCheck.beginTree(DetailAST rootAST) |
void |
HiddenFieldCheck.beginTree(DetailAST rootAST) |
void |
MultipleStringLiteralsCheck.beginTree(DetailAST rootAST) |
void |
IllegalInstantiationCheck.beginTree(DetailAST rootAST) |
void |
PackageDeclarationCheck.beginTree(DetailAST ast) |
void |
ParameterAssignmentCheck.beginTree(DetailAST rootAST) |
void |
EqualsHashCodeCheck.beginTree(DetailAST rootAST) |
void |
AbstractSuperCheck.beginTree(DetailAST rootAST) |
void |
AbstractNestedDepthCheck.beginTree(DetailAST rootAST) |
void |
MultipleStringLiteralsCheck.finishTree(DetailAST rootAST) |
void |
IllegalInstantiationCheck.finishTree(DetailAST rootAST) |
void |
PackageDeclarationCheck.finishTree(DetailAST ast) |
void |
EqualsHashCodeCheck.finishTree(DetailAST rootAST) |
List<DetailAST> |
IllegalCatchCheck.getAllExceptionTypes(DetailAST parentToken)
Finds all exception types in current catch.
|
void |
OneStatementPerLineCheck.leaveToken(DetailAST ast) |
void |
FinalLocalVariableCheck.leaveToken(DetailAST ast) |
void |
DeclarationOrderCheck.leaveToken(DetailAST ast) |
void |
NestedForDepthCheck.leaveToken(DetailAST ast) |
void |
ModifiedControlVariableCheck.leaveToken(DetailAST ast) |
void |
UnnecessaryParenthesesCheck.leaveToken(DetailAST ast) |
void |
ReturnCountCheck.leaveToken(DetailAST ast) |
void |
HiddenFieldCheck.leaveToken(DetailAST ast) |
void |
ParameterAssignmentCheck.leaveToken(DetailAST ast) |
void |
NestedIfDepthCheck.leaveToken(DetailAST ast) |
void |
NestedTryDepthCheck.leaveToken(DetailAST ast) |
void |
AbstractSuperCheck.leaveToken(DetailAST ast) |
protected void |
AbstractNestedDepthCheck.nestIn(DetailAST ast,
String messageId)
Increasing current nesting depth.
|
void |
DefaultComesLastCheck.visitToken(DetailAST ast) |
void |
OneStatementPerLineCheck.visitToken(DetailAST ast) |
void |
AbstractIllegalMethodCheck.visitToken(DetailAST aAST) |
void |
FinalLocalVariableCheck.visitToken(DetailAST ast) |
void |
DeclarationOrderCheck.visitToken(DetailAST ast) |
void |
IllegalThrowsCheck.visitToken(DetailAST detailAST) |
void |
OverloadMethodsDeclarationOrderCheck.visitToken(DetailAST ast) |
void |
ExplicitInitializationCheck.visitToken(DetailAST ast) |
void |
NestedForDepthCheck.visitToken(DetailAST ast) |
void |
EqualsAvoidNullCheck.visitToken(DetailAST methodCall) |
void |
ModifiedControlVariableCheck.visitToken(DetailAST ast) |
void |
RequireThisCheck.visitToken(DetailAST ast) |
void |
FallThroughCheck.visitToken(DetailAST ast) |
void |
MissingCtorCheck.visitToken(DetailAST ast) |
void |
InnerAssignmentCheck.visitToken(DetailAST ast) |
void |
UnnecessaryParenthesesCheck.visitToken(DetailAST ast) |
void |
IllegalTokenTextCheck.visitToken(DetailAST ast) |
void |
IllegalCatchCheck.visitToken(DetailAST detailAST) |
void |
ReturnCountCheck.visitToken(DetailAST ast) |
void |
HiddenFieldCheck.visitToken(DetailAST ast) |
void |
IllegalTokenCheck.visitToken(DetailAST ast) |
void |
MultipleStringLiteralsCheck.visitToken(DetailAST ast) |
void |
EmptyStatementCheck.visitToken(DetailAST ast) |
void |
IllegalTypeCheck.visitToken(DetailAST ast) |
void |
VariableDeclarationUsageDistanceCheck.visitToken(DetailAST ast) |
void |
IllegalInstantiationCheck.visitToken(DetailAST ast) |
void |
PackageDeclarationCheck.visitToken(DetailAST ast) |
void |
SimplifyBooleanExpressionCheck.visitToken(DetailAST ast) |
void |
ArrayTrailingCommaCheck.visitToken(DetailAST arrayInit) |
void |
ParameterAssignmentCheck.visitToken(DetailAST ast) |
void |
NestedIfDepthCheck.visitToken(DetailAST ast) |
void |
CovariantEqualsCheck.visitToken(DetailAST ast) |
void |
StringLiteralEqualityCheck.visitToken(DetailAST ast) |
void |
AvoidInlineConditionalsCheck.visitToken(DetailAST ast) |
void |
NestedTryDepthCheck.visitToken(DetailAST ast) |
void |
MagicNumberCheck.visitToken(DetailAST ast) |
void |
EqualsHashCodeCheck.visitToken(DetailAST ast) |
void |
MultipleVariableDeclarationsCheck.visitToken(DetailAST ast) |
void |
AbstractSuperCheck.visitToken(DetailAST ast) |
void |
SimplifyBooleanReturnCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
void |
OneTopLevelClassCheck.beginTree(DetailAST rootAST) |
void |
OneTopLevelClassCheck.finishTree(DetailAST rootAST) |
void |
FinalClassCheck.leaveToken(DetailAST ast) |
void |
MutableExceptionCheck.leaveToken(DetailAST ast) |
void |
InnerTypeLastCheck.leaveToken(DetailAST ast) |
void |
FinalClassCheck.visitToken(DetailAST ast) |
void |
ThrowsCountCheck.visitToken(DetailAST ast) |
void |
InterfaceIsTypeCheck.visitToken(DetailAST ast) |
void |
MutableExceptionCheck.visitToken(DetailAST ast) |
void |
HideUtilityClassConstructorCheck.visitToken(DetailAST ast) |
void |
DesignForExtensionCheck.visitToken(DetailAST ast) |
void |
VisibilityModifierCheck.visitToken(DetailAST ast) |
void |
InnerTypeLastCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
void |
RedundantImportCheck.beginTree(DetailAST aRootAST) |
void |
UnusedImportsCheck.beginTree(DetailAST rootAST) |
void |
ImportControlCheck.beginTree(DetailAST rootAST) |
void |
ImportOrderCheck.beginTree(DetailAST rootAST) |
void |
CustomImportOrderCheck.beginTree(DetailAST rootAST) |
void |
UnusedImportsCheck.finishTree(DetailAST rootAST) |
void |
CustomImportOrderCheck.finishTree(DetailAST rootAST) |
void |
AvoidStaticImportCheck.visitToken(DetailAST ast) |
void |
AvoidStarImportCheck.visitToken(DetailAST ast) |
void |
RedundantImportCheck.visitToken(DetailAST ast) |
void |
UnusedImportsCheck.visitToken(DetailAST ast) |
void |
IllegalImportCheck.visitToken(DetailAST ast) |
void |
ImportControlCheck.visitToken(DetailAST ast) |
void |
ImportOrderCheck.visitToken(DetailAST ast) |
void |
CustomImportOrderCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
DetailAST |
LineWrappingHandler.findLastNode(DetailAST firstNode)
Finds last node of AST subtree.
|
DetailAST |
LineWrappingHandler.getFirstNode() |
DetailAST |
LineWrappingHandler.getLastNode() |
protected DetailAST |
ObjectBlockHandler.getLCurly() |
protected DetailAST |
ClassDefHandler.getLCurly() |
protected DetailAST |
BlockParentHandler.getLCurly()
Get the left curly brace portion of the expression we are handling.
|
protected DetailAST |
SlistHandler.getLCurly() |
protected DetailAST |
SwitchHandler.getLCurly() |
protected DetailAST |
ArrayInitHandler.getLCurly() |
protected DetailAST |
ObjectBlockHandler.getListChild() |
protected DetailAST |
ClassDefHandler.getListChild() |
protected DetailAST |
BlockParentHandler.getListChild()
Get the child element representing the list of statements.
|
protected DetailAST |
SlistHandler.getListChild() |
protected DetailAST |
SwitchHandler.getListChild() |
protected DetailAST |
ArrayInitHandler.getListChild() |
protected DetailAST |
BlockParentHandler.getLParen()
Get the left parenthesis portion of the expression we are handling.
|
protected DetailAST |
ExpressionHandler.getMainAst()
Accessor for the MainAst attribute.
|
protected DetailAST |
ElseHandler.getNonlistChild() |
protected DetailAST |
BlockParentHandler.getNonlistChild()
Get the child element that is not a list of statements.
|
protected DetailAST |
SlistHandler.getNonlistChild() |
protected DetailAST |
SwitchHandler.getNonlistChild() |
protected DetailAST |
ObjectBlockHandler.getRCurly() |
protected DetailAST |
ClassDefHandler.getRCurly() |
protected DetailAST |
BlockParentHandler.getRCurly()
Get the right curly brace portion of the expression we are handling.
|
protected DetailAST |
SlistHandler.getRCurly() |
protected DetailAST |
SwitchHandler.getRCurly() |
protected DetailAST |
ArrayInitHandler.getRCurly() |
protected DetailAST |
BlockParentHandler.getRParen()
Get the right parenthesis portion of the expression we are handling.
|
protected DetailAST |
ObjectBlockHandler.getToplevelAST() |
protected DetailAST |
ClassDefHandler.getToplevelAST() |
protected DetailAST |
BlockParentHandler.getToplevelAST()
Get the top level expression being managed by this handler.
|
protected DetailAST |
SlistHandler.getToplevelAST() |
protected DetailAST |
ArrayInitHandler.getToplevelAST() |
protected DetailAST |
MethodDefHandler.getToplevelAST() |
Modifier and Type | Method and Description |
---|---|
void |
IndentationCheck.beginTree(DetailAST ast) |
protected void |
ExpressionHandler.checkChildren(DetailAST parent,
int[] tokenTypes,
IndentLevel startLevel,
boolean firstLineMatches,
boolean allowNesting)
Check the indent level of the children of the specified parent
expression.
|
protected void |
ExpressionHandler.checkExpressionSubtree(DetailAST tree,
IndentLevel level,
boolean firstLineMatches,
boolean allowNesting)
Check the indentation level for an expression subtree.
|
protected void |
ExpressionHandler.checkLParen(DetailAST lparen)
Check the indentation of the left parenthesis.
|
protected void |
ExpressionHandler.checkRParen(DetailAST lparen,
DetailAST rparen)
Check the indentation of the right parenthesis.
|
protected int |
ExpressionHandler.expandedTabsColumnNo(DetailAST ast)
Get the column number for the start of a given expression, expanding
tabs out into spaces in the process.
|
DetailAST |
LineWrappingHandler.findLastNode(DetailAST firstNode)
Finds last node of AST subtree.
|
protected void |
ExpressionHandler.findSubtreeLines(LineSet lines,
DetailAST tree,
boolean allowNesting)
Find the set of lines for a given subtree.
|
protected int |
ExpressionHandler.getFirstLine(int startLine,
DetailAST tree)
Get the first line for a given expression.
|
ExpressionHandler |
HandlerFactory.getHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Get the handler for an AST.
|
protected int |
ExpressionHandler.getLineStart(DetailAST ast)
Get the start of the line for the given expression.
|
void |
IndentationCheck.leaveToken(DetailAST ast) |
protected void |
ExpressionHandler.logError(DetailAST ast,
String subtypeName,
int actualLevel)
Log an indentation error.
|
protected void |
ExpressionHandler.logError(DetailAST ast,
String subtypeName,
int actualLevel,
IndentLevel expectedLevel)
Log an indentation error.
|
protected boolean |
ExpressionHandler.startsLine(DetailAST ast)
Determines if the given expression is at the start of a line.
|
void |
IndentationCheck.visitToken(DetailAST ast) |
Constructor and Description |
---|
ArrayInitHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
astract syntax tree, and parent handler.
|
BlockParentHandler(IndentationCheck indentCheck,
String name,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
name, abstract syntax tree, and parent handler.
|
CaseHandler(IndentationCheck indentCheck,
DetailAST expr,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
CatchHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
ClassDefHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
DoWhileHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
ElseHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
ExpressionHandler(IndentationCheck indentCheck,
String typeName,
DetailAST expr,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
name, abstract syntax tree, and parent handler.
|
FinallyHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
astract syntax tree, and parent handler.
|
ForHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
IfHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
ImportHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
IndexHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
LabelHandler(IndentationCheck indentCheck,
DetailAST expr,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
LineWrappingHandler(IndentationCheck instance,
DetailAST firstNode)
Sets values of class field, finds last node and calculates indentation level.
|
MemberDefHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
MethodCallHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
MethodDefHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
NewHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
ObjectBlockHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
PackageDefHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
SlistHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
StaticInitHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
SwitchHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
TryHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
WhileHandler(IndentationCheck indentCheck,
DetailAST ast,
ExpressionHandler parent)
Construct an instance of this handler with the given indentation check,
abstract syntax tree, and parent handler.
|
Modifier and Type | Method and Description |
---|---|
protected DetailAST |
AbstractJavadocCheck.getBlockCommentAst() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJavadocCheck.beginTree(DetailAST rootAST) |
void |
AbstractJavadocCheck.finishTree(DetailAST rootAST) |
static String |
JavadocUtils.getBlockCommentContent(DetailAST blockCommentBegin)
Gets content of block comment.
|
static String |
JavadocUtils.getJavadocCommentContent(DetailAST javdocCommentBegin)
Get content of Javadoc comment.
|
static boolean |
JavadocUtils.isJavadocComment(DetailAST blockCommentBegin)
Checks block comment content starts with '*' javadoc comment identifier.
|
protected boolean |
JavadocMethodCheck.isMissingJavadocAllowed(DetailAST ast)
The JavadocMethodCheck is about to report a missing Javadoc.
|
void |
AbstractJavadocCheck.leaveToken(DetailAST ast) |
protected void |
JavadocMethodCheck.processAST(DetailAST ast) |
void |
JavadocStyleCheck.visitToken(DetailAST ast) |
void |
AbstractJavadocCheck.visitToken(DetailAST blockCommentAst) |
void |
JavadocVariableCheck.visitToken(DetailAST ast) |
void |
JavadocTypeCheck.visitToken(DetailAST ast) |
void |
WriteTagCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
void |
JavaNCSSCheck.beginTree(DetailAST rootAST) |
void |
AbstractClassCouplingCheck.beginTree(DetailAST ast) |
void |
JavaNCSSCheck.finishTree(DetailAST rootAST) |
void |
BooleanExpressionComplexityCheck.leaveToken(DetailAST ast) |
void |
JavaNCSSCheck.leaveToken(DetailAST ast) |
void |
NPathComplexityCheck.leaveToken(DetailAST ast) |
void |
AbstractComplexityCheck.leaveToken(DetailAST ast) |
void |
AbstractClassCouplingCheck.leaveToken(DetailAST ast) |
protected void |
AbstractComplexityCheck.leaveTokenHook(DetailAST ast)
Hook called when leaving a token.
|
void |
BooleanExpressionComplexityCheck.visitToken(DetailAST ast) |
void |
JavaNCSSCheck.visitToken(DetailAST ast) |
void |
NPathComplexityCheck.visitToken(DetailAST ast) |
void |
AbstractComplexityCheck.visitToken(DetailAST ast) |
void |
AbstractClassCouplingCheck.visitToken(DetailAST ast) |
protected void |
CyclomaticComplexityCheck.visitTokenHook(DetailAST ast) |
protected void |
AbstractComplexityCheck.visitTokenHook(DetailAST ast)
Hook called when visiting a token.
|
Modifier and Type | Method and Description |
---|---|
void |
ModifierOrderCheck.visitToken(DetailAST ast) |
void |
RedundantModifierCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
LocalFinalVariableNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
LocalVariableNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
ConstantNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
StaticVariableNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
AbstractAccessControlNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
AbstractNameCheck.mustCheckName(DetailAST ast)
Decides whether the name of an AST should be checked against
the format regexp.
|
protected boolean |
AbstractTypeParameterNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
MemberNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
ParameterNameCheck.mustCheckName(DetailAST ast) |
protected boolean |
AbstractAccessControlNameCheck.shouldCheckInScope(DetailAST modifiers)
Should we check member with given modifiers.
|
void |
PackageNameCheck.visitToken(DetailAST ast) |
void |
AbbreviationAsWordInNameCheck.visitToken(DetailAST ast) |
void |
AbstractClassNameCheck.visitToken(DetailAST ast) |
void |
MethodNameCheck.visitToken(DetailAST ast) |
void |
AbstractNameCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
void |
RegexpSinglelineJavaCheck.beginTree(DetailAST rootAST) |
Modifier and Type | Method and Description |
---|---|
void |
OuterTypeNumberCheck.beginTree(DetailAST ast) |
void |
LineLengthCheck.beginTree(DetailAST rootAST) |
void |
ExecutableStatementCountCheck.beginTree(DetailAST rootAST) |
void |
OuterTypeNumberCheck.finishTree(DetailAST ast) |
void |
OuterTypeNumberCheck.leaveToken(DetailAST ast) |
void |
MethodCountCheck.leaveToken(DetailAST ast) |
void |
ExecutableStatementCountCheck.leaveToken(DetailAST ast) |
void |
OuterTypeNumberCheck.visitToken(DetailAST ast) |
void |
MethodLengthCheck.visitToken(DetailAST ast) |
void |
MethodCountCheck.visitToken(DetailAST ast) |
void |
ExecutableStatementCountCheck.visitToken(DetailAST ast) |
void |
AnonInnerLengthCheck.visitToken(DetailAST ast) |
void |
ParameterNumberCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
void |
GenericWhitespaceCheck.beginTree(DetailAST rootAST) |
void |
NoWhitespaceBeforeCheck.visitToken(DetailAST ast) |
void |
EmptyLineSeparatorCheck.visitToken(DetailAST ast) |
void |
NoWhitespaceAfterCheck.visitToken(DetailAST ast) |
void |
WhitespaceAfterCheck.visitToken(DetailAST ast) |
void |
EmptyForIteratorPadCheck.visitToken(DetailAST ast) |
void |
OperatorWrapCheck.visitToken(DetailAST ast) |
void |
MethodParamPadCheck.visitToken(DetailAST ast) |
void |
NoLineWrapCheck.visitToken(DetailAST ast) |
void |
GenericWhitespaceCheck.visitToken(DetailAST ast) |
void |
WhitespaceAroundCheck.visitToken(DetailAST ast) |
void |
EmptyForInitializerPadCheck.visitToken(DetailAST ast) |
void |
ParenPadCheck.visitToken(DetailAST ast) |
void |
SeparatorWrapCheck.visitToken(DetailAST ast) |
void |
TypecastParenPadCheck.visitToken(DetailAST ast) |
Modifier and Type | Method and Description |
---|---|
static DetailAST |
ParseTreeInfoPanel.parseFile(FileText text)
Parses a file and returns the parse tree.
|
static DetailAST |
ParseTreeInfoPanel.parseFile(String fileName)
Deprecated.
Use
ParseTreeInfoPanel.parseFile(FileText) instead |
Modifier and Type | Method and Description |
---|---|
static void |
Main.displayAst(DetailAST ast) |
void |
ParseTreeInfoPanel.openAst(DetailAST parseTree,
Component parent) |
Constructor and Description |
---|
CodeSelector(DetailAST ast,
JTextArea editor,
List<Integer> lines2position) |
ParseTreeModel(DetailAST parseTree) |
Copyright © 2001–2015. All rights reserved.