com.puppycrawl.tools.checkstyle.checks

Class ArrayTypeStyleCheck

public class ArrayTypeStyleCheck extends Check

Checks the style of array type definitions. Some like Java-style: public static void main(String[] args) and some like C-style: public static void main(String args[]) By default the Check enforces Java style.

Author: lkuehne

Method Summary
int[]getDefaultTokens()
{@inheritDoc}
voidsetJavaStyle(boolean aJavaStyle)
Controls whether to check for Java or C style.
voidvisitToken(DetailAST aAST)
{@inheritDoc}

Method Detail

getDefaultTokens

public int[] getDefaultTokens()
{@inheritDoc}

setJavaStyle

public void setJavaStyle(boolean aJavaStyle)
Controls whether to check for Java or C style.

Parameters: aJavaStyle true if Java style should be used.

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc}