com.puppycrawl.tools.checkstyle.checks

Class UncommentedMainCheck

public class UncommentedMainCheck extends Check

Detects uncommented main methods. Basically detects any main method, since if it is detectable that means it is uncommented.
 <module name="UncommentedMain"/>
 

Author: Michael Yui o_sukhodolsky

Method Summary
voidbeginTree(DetailAST aRootAST)
{@inheritDoc}
int[]getDefaultTokens()
{@inheritDoc}
int[]getRequiredTokens()
{@inheritDoc}
voidleaveToken(DetailAST aAst)
{@inheritDoc}
voidsetExcludedClasses(String aExcludedClasses)
Set the excluded classes pattern.
voidvisitToken(DetailAST aAst)
{@inheritDoc}

Method Detail

beginTree

public void beginTree(DetailAST aRootAST)
{@inheritDoc}

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

getRequiredTokens

public int[] getRequiredTokens()
{@inheritDoc}

leaveToken

public void leaveToken(DetailAST aAst)
{@inheritDoc}

setExcludedClasses

public void setExcludedClasses(String aExcludedClasses)
Set the excluded classes pattern.

Parameters: aExcludedClasses a String value

Throws: ConversionException unable to parse aExcludedClasses

visitToken

public void visitToken(DetailAST aAst)
{@inheritDoc}