com.puppycrawl.tools.checkstyle.checks

Class UncommentedMainCheck

Implemented Interfaces:
Configurable, Contextualizable

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"/>
 

Authors:
Michael Yui
o_sukhodolsky

Method Summary

void
beginTree(DetailAST aRootAST)
int[]
getDefaultTokens()
int[]
getRequiredTokens()
void
leaveToken(DetailAST aAst)
void
setExcludedClasses(String aExcludedClasses)
Set the excluded classes pattern.
void
visitToken(DetailAST aAst)

Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check

beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter

getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

configure, contextualize, finishLocalSetup, getConfiguration, setupChild

Method Details

beginTree

public void beginTree(DetailAST aRootAST)
Overrides:
beginTree in interface Check

See Also:
Check


getDefaultTokens

public int[] getDefaultTokens()
Overrides:
getDefaultTokens in interface Check

See Also:
Check


getRequiredTokens

public int[] getRequiredTokens()
Overrides:
getRequiredTokens in interface Check

See Also:
Check


leaveToken

public void leaveToken(DetailAST aAst)
Overrides:
leaveToken in interface Check

See Also:
Check


setExcludedClasses

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

Parameters:
aExcludedClasses - a String value


visitToken

public void visitToken(DetailAST aAst)
Overrides:
visitToken in interface Check

See Also:
Check