Uses of Class
com.puppycrawl.tools.checkstyle.api.DetailAST

Packages that use DetailAST
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.indentation Contains all of the helper classes required for the indentation check. 
 

Uses of DetailAST in com.puppycrawl.tools.checkstyle
 

Methods in com.puppycrawl.tools.checkstyle that return DetailAST
static DetailAST TreeWalker.parse(FileContents aContents)
          Static helper method to parses a Java source file.
 

Uses of DetailAST in com.puppycrawl.tools.checkstyle.api
 

Methods in com.puppycrawl.tools.checkstyle.api that return DetailAST
 DetailAST DetailAST.getParent()
          Returns the parent token
 DetailAST DetailAST.getLastChild()
           
 DetailAST DetailAST.getPreviousSibling()
          Returns the previous sibling or null if no such sibling exists.
 DetailAST DetailAST.findFirstToken(int aType)
          Returns the first child token that makes a specified type.
 

Methods in com.puppycrawl.tools.checkstyle.api with parameters of type DetailAST
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.inInterfaceBlock(DetailAST aAST)
          Returns whether a node is directly contained within an interface block.
static boolean ScopeUtils.inCodeBlock(DetailAST aAST)
          Returns whether the scope of a node is restricted to a code block.
static boolean ScopeUtils.isOuterMostType(DetailAST aAST)
          Returns whether a node is contained in the outer most type block.
static FullIdent FullIdent.createFullIdent(DetailAST aAST)
          Creates a new FullIdent starting from the specified node.
 void Check.beginTree(DetailAST aRootAST)
          Called before the starting to process a tree.
 void Check.finishTree(DetailAST aRootAST)
          Called after finished processing a tree.
 void Check.visitToken(DetailAST aAST)
          Called to process a token.
 void Check.leaveToken(DetailAST aAST)
          Called after all the child nodes have been process.
 

Uses of DetailAST in com.puppycrawl.tools.checkstyle.checks
 

Methods in com.puppycrawl.tools.checkstyle.checks with parameters of type DetailAST
 void WhitespaceAroundCheck.visitToken(DetailAST aAST)
           
 void WhitespaceAfterCheck.visitToken(DetailAST aAST)
           
 void VisibilityModifierCheck.visitToken(DetailAST aAST)
           
 void UpperEllCheck.visitToken(DetailAST aAST)
           
 void UnusedImportsCheck.beginTree(DetailAST aRootAST)
           
 void UnusedImportsCheck.finishTree(DetailAST aRootAST)
           
 void UnusedImportsCheck.visitToken(DetailAST aAST)
           
 void TodoCommentCheck.beginTree(DetailAST aRootAST)
           
 void TabCharacterCheck.beginTree(DetailAST aRootAST)
           
protected  boolean StaticVariableNameCheck.mustCheckName(DetailAST aAST)
           
 void SimplifyBooleanReturnCheck.visitToken(DetailAST aAST)
           
 void SimplifyBooleanExpressionCheck.visitToken(DetailAST aAST)
           
 void RightCurlyCheck.visitToken(DetailAST aAST)
           
 void RedundantThrowsCheck.beginTree(DetailAST aRootAST)
           
 void RedundantThrowsCheck.visitToken(DetailAST aAST)
           
 void RedundantModifierCheck.visitToken(DetailAST aAST)
           
 void RedundantImportCheck.beginTree(DetailAST aRootAST)
           
 void RedundantImportCheck.visitToken(DetailAST aAST)
           
 void ParenPadCheck.visitToken(DetailAST aAST)
           
 void ParameterNumberCheck.visitToken(DetailAST aAST)
           
protected  boolean ParameterNameCheck.mustCheckName(DetailAST aAST)
           
 void PackageNameCheck.visitToken(DetailAST aAST)
           
 void OperatorWrapCheck.visitToken(DetailAST aAST)
           
 void NoWhitespaceBeforeCheck.visitToken(DetailAST aAST)
           
 void NoWhitespaceAfterCheck.visitToken(DetailAST aAST)
           
 void NeedBracesCheck.visitToken(DetailAST aAST)
           
 void ModifierOrderCheck.visitToken(DetailAST aAST)
           
 void MissingSwitchDefaultCheck.visitToken(DetailAST aAst)
           
 void MethodLengthCheck.visitToken(DetailAST aAST)
           
protected  boolean MemberNameCheck.mustCheckName(DetailAST aAST)
           
 void MagicNumberCheck.visitToken(DetailAST aAST)
           
protected  boolean LocalVariableNameCheck.mustCheckName(DetailAST aAST)
           
protected  boolean LocalFinalVariableNameCheck.mustCheckName(DetailAST aAST)
           
 void LineLengthCheck.beginTree(DetailAST aRootAST)
           
 void LeftCurlyCheck.visitToken(DetailAST aAST)
           
 void JavadocVariableCheck.visitToken(DetailAST aAST)
           
 void JavadocTypeCheck.visitToken(DetailAST aAST)
           
 void JavadocMethodCheck.beginTree(DetailAST aRootAST)
           
 void JavadocMethodCheck.visitToken(DetailAST aAST)
           
 void InterfaceIsTypeCheck.visitToken(DetailAST aAST)
           
 void InnerAssignmentCheck.visitToken(DetailAST aAST)
           
 void IllegalInstantiationCheck.beginTree(DetailAST aRootAST)
           
 void IllegalInstantiationCheck.visitToken(DetailAST aAST)
           
 void IllegalImportCheck.visitToken(DetailAST aAST)
           
 void HideUtilityClassConstructorCheck.visitToken(DetailAST aAST)
           
 void HiddenFieldCheck.beginTree(DetailAST aRootAST)
           
 void HiddenFieldCheck.visitToken(DetailAST aAST)
           
 void HiddenFieldCheck.leaveToken(DetailAST aAST)
           
 void HeaderCheck.beginTree(DetailAST aRootAST)
           
 void GenericIllegalRegexpCheck.beginTree(DetailAST aRootAST)
           
 void FinalParametersCheck.visitToken(DetailAST aAST)
           
 void FinalClassCheck.visitToken(DetailAST aAST)
           
 void FinalClassCheck.leaveToken(DetailAST aAST)
           
 void FileLengthCheck.beginTree(DetailAST aRootAST)
           
 void EqualsHashCodeCheck.beginTree(DetailAST aRootAST)
           
 void EqualsHashCodeCheck.visitToken(DetailAST aAST)
           
 void EqualsHashCodeCheck.finishTree(DetailAST aRootAST)
           
 void EmptyStatementCheck.visitToken(DetailAST aAST)
           
 void EmptyForIteratorPadCheck.visitToken(DetailAST aAST)
           
 void EmptyBlockCheck.visitToken(DetailAST aAST)
           
 void DoubleCheckedLockingCheck.visitToken(DetailAST aAST)
           
 void DesignForExtensionCheck.visitToken(DetailAST aAST)
           
protected  boolean ConstantNameCheck.mustCheckName(DetailAST aAST)
           
 void AvoidStarImportCheck.visitToken(DetailAST aAST)
           
 void AvoidNestedBlocksCheck.visitToken(DetailAST aAST)
           
 void AvoidInlineConditionalsCheck.visitToken(DetailAST aAST)
           
 void ArrayTypeStyleCheck.visitToken(DetailAST aAST)
           
protected  boolean AbstractNameCheck.mustCheckName(DetailAST aAST)
          Decides whether the name of an AST should be checked against the format regexp.
 void AbstractNameCheck.visitToken(DetailAST aAST)
           
protected  FullIdent AbstractImportCheck.getImportText(DetailAST aAST)
          Return the name of the import associated with a specifed DetailAST.
 void IndentationCheck.beginTree(DetailAST aAst)
           
 void IndentationCheck.visitToken(DetailAST aAST)
           
 void IndentationCheck.leaveToken(DetailAST aAST)
           
 

Uses of DetailAST in com.puppycrawl.tools.checkstyle.checks.indentation
 

Methods in com.puppycrawl.tools.checkstyle.checks.indentation that return DetailAST
protected  DetailAST SwitchHandler.getLCurly()
          Get the left curly brace portion of the expression we are handling.
protected  DetailAST SwitchHandler.getRCurly()
          Get the right curly brace portion of the expression we are handling.
protected  DetailAST SwitchHandler.getListChild()
          There is no list of statements child for this handler.
protected  DetailAST SwitchHandler.getNonlistChild()
          There is no child element that is not a list of statements.
protected  DetailAST SlistHandler.getNonlistChild()
          Get the child element that is not a list of statements.
protected  DetailAST SlistHandler.getListChild()
          Get the child element representing the list of statements.
protected  DetailAST SlistHandler.getLCurly()
          Get the left curly brace portion of the expression we are handling.
protected  DetailAST SlistHandler.getRCurly()
          Get the right curly brace portion of the expression we are handling.
protected  DetailAST SlistHandler.getToplevelAST()
          There is no top level expression for this handler.
protected  DetailAST ObjectBlockHandler.getToplevelAST()
          There is no top level expression for this handler.
protected  DetailAST ObjectBlockHandler.getLCurly()
          Get the left curly brace portion of the expression we are handling.
protected  DetailAST ObjectBlockHandler.getRCurly()
          Get the right curly brace portion of the expression we are handling.
protected  DetailAST ObjectBlockHandler.getListChild()
          Get the child element representing the list of statements.
protected  DetailAST MethodDefHandler.getToplevelAST()
          There is no top level expression for this handler.
protected  DetailAST ElseHandler.getNonlistChild()
          Get the child element that is not a list of statements.
protected  DetailAST ClassDefHandler.getLCurly()
          Get the left curly brace portion of the expression we are handling.
protected  DetailAST ClassDefHandler.getRCurly()
          Get the right curly brace portion of the expression we are handling.
protected  DetailAST ClassDefHandler.getToplevelAST()
          There is no top level expression for this handler.
protected  DetailAST ClassDefHandler.getListChild()
          Get the child element representing the list of statements.
protected  DetailAST ExpressionHandler.getMainAst()
          Accessor for the MainAst attribute.
protected  DetailAST BlockParentHandler.getToplevelAST()
          Get the top level expression being managed by this handler.
protected  DetailAST BlockParentHandler.getLCurly()
          Get the left curly brace portion of the expression we are handling.
protected  DetailAST BlockParentHandler.getRCurly()
          Get the right curly brace portion of the expression we are handling.
protected  DetailAST BlockParentHandler.getNonlistChild()
          Get the child element that is not a list of statements.
protected  DetailAST BlockParentHandler.getListChild()
          Get the child element representing the list of statements.
protected  DetailAST BlockParentHandler.getRParen()
          Get the right parenthesis portion of the expression we are handling.
protected  DetailAST BlockParentHandler.getLParen()
          Get the left parenthesis portion of the expression we are handling.
protected  DetailAST ArrayInitHandler.getToplevelAST()
          There is no top level expression for this handler.
protected  DetailAST ArrayInitHandler.getLCurly()
          Get the left curly brace portion of the expression we are handling.
protected  DetailAST ArrayInitHandler.getRCurly()
          Get the right curly brace portion of the expression we are handling.
protected  DetailAST ArrayInitHandler.getListChild()
          Get the child element representing the list of statements.
 

Methods in com.puppycrawl.tools.checkstyle.checks.indentation with parameters of type DetailAST
 ExpressionHandler HandlerFactory.getHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Get the handler for an AST.
protected  void ExpressionHandler.logError(DetailAST aAst, java.lang.String aSubtypeName, int aActualLevel)
          Log an indentation error.
protected  void ExpressionHandler.logError(DetailAST aAst, java.lang.String aSubtypeName, int aActualLevel, int aExpectedLevel)
          Log an indentation error.
protected  boolean ExpressionHandler.startsLine(DetailAST aAst)
          Determines if the given expression is at the start of a line.
protected  boolean ExpressionHandler.atLevelOrGreater(DetailAST aParent)
          Determines if the gieven parent expression is equal to or greater than the correct indentation level.
protected  int ExpressionHandler.getLineStart(DetailAST aAst)
          Get the start of the line for the given expression.
protected  void ExpressionHandler.checkChildren(DetailAST aParent, int[] aTokenTypes, int aStartLevel, boolean aFirstLineMatches, boolean aAllowNesting)
          Check the indent level of the children of the specified parent expression.
protected  void ExpressionHandler.checkExpressionSubtree(DetailAST aTree, int aLevel, boolean aFirstLineMatches, boolean aAllowNesting)
          Check the indentation level for an expression subtree.
protected  int ExpressionHandler.getFirstLine(int aStartLine, DetailAST aTree)
          Get the first line for a given expression.
protected  int ExpressionHandler.expandedTabsColumnNo(DetailAST aAst)
          Get the column number for the start of a given expression, expanding tabs out into spaces in the process.
protected  void ExpressionHandler.findSubtreeLines(LineSet aLines, DetailAST aTree, boolean aAllowNesting)
          Find the set of lines for a given subtree.
 

Constructors in com.puppycrawl.tools.checkstyle.checks.indentation with parameters of type DetailAST
WhileHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
TryHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
SwitchHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
StaticInitHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
SlistHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
PackageDefHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
ObjectBlockHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
MethodDefHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
MethodCallHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
LabelHandler(IndentationCheck aIndentCheck, DetailAST aExpr, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
ImportHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
IfHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
ForHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
FinallyHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
ElseHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
DoWhileHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
ClassDefHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
CatchHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
CaseHandler(IndentationCheck aIndentCheck, DetailAST aExpr, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
ExpressionHandler(IndentationCheck aIndentCheck, java.lang.String aTypeName, DetailAST aExpr, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, name, abstract syntax tree, and parent handler.
BlockParentHandler(IndentationCheck aIndentCheck, java.lang.String aName, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, name, abstract syntax tree, and parent handler.
ArrayInitHandler(IndentationCheck aIndentCheck, DetailAST aAst, ExpressionHandler aParent)
          Construct an instance of this handler with the given indentation check, abstract syntax tree, and parent handler.
 


Back to the Checkstyle Home Page