com.puppycrawl.tools.checkstyle.checks.coding

Class AbstractSuperCheck

public abstract class AbstractSuperCheck extends Check

Abstract class for checking that an overriding method with no parameters invokes the super method.

Author: Rick Giles

Method Summary
voidbeginTree(DetailAST aRootAST)
{@inheritDoc}
int[]getDefaultTokens()
{@inheritDoc}
protected abstract StringgetMethodName()
Returns the name of the overriding method.
voidleaveToken(DetailAST aAST)
{@inheritDoc}
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

beginTree

public void beginTree(DetailAST aRootAST)
{@inheritDoc}

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

getMethodName

protected abstract String getMethodName()
Returns the name of the overriding method.

Returns: the name of the overriding method.

leaveToken

public void leaveToken(DetailAST aAST)
{@inheritDoc}

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}