com.puppycrawl.tools.checkstyle.checks

Class FileContentsHolder

public class FileContentsHolder extends Check

Holds the current file contents for global access when configured as a TreeWalker sub-module. For example, a filter can access the current file contents through this module.

Author: Mike McMahon Rick Giles

Method Summary
voidbeginTree(DetailAST aRootAST)
{@inheritDoc}
voidfinishTree(DetailAST aRootAST)
{@inheritDoc}
static FileContentsgetContents()
int[]getDefaultTokens()
{@inheritDoc}

Method Detail

beginTree

public void beginTree(DetailAST aRootAST)
{@inheritDoc}

finishTree

public void finishTree(DetailAST aRootAST)
{@inheritDoc}

getContents

public static FileContents getContents()

Returns: the current file contents.

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}