1 package com.puppycrawl.tools.checkstyle.checks.indentation; 20 21 import com.puppycrawl.tools.checkstyle.api.DetailAST; 22 import com.puppycrawl.tools.checkstyle.api.TokenTypes; 23 24 29 public class PackageDefHandler extends ExpressionHandler 30 { 31 39 public PackageDefHandler(IndentationCheck aIndentCheck, 40 DetailAST aAst, ExpressionHandler aParent) 41 { 42 super(aIndentCheck, "package def", aAst, aParent); 43 } 44 45 48 public void checkIndentation() 49 { 50 final int columnNo = expandedTabsColumnNo(getMainAst()); 51 if (!getLevel().accept(columnNo)) { 52 logError(getMainAst(), "", columnNo); 53 } 54 55 checkLinesIndent(getMainAst().getLineNo(), 56 getMainAst().findFirstToken(TokenTypes.SEMI).getLineNo(), 57 getLevel()); 58 } 59 } 60 | Popular Tags |