public class CyclomaticComplexityCheck extends AbstractComplexityCheck
Constructor and Description |
---|
CyclomaticComplexityCheck()
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
protected String |
getMessageID() |
protected void |
visitTokenHook(DetailAST ast)
Hook called when visiting a token.
|
getCurrentValue, getMax, getRequiredTokens, incrementCurrentValue, leaveToken, leaveTokenHook, popValue, pushValue, setCurrentValue, setMax, visitToken
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public CyclomaticComplexityCheck()
public int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
protected final void visitTokenHook(DetailAST ast)
AbstractComplexityCheck
visitTokenHook
in class AbstractComplexityCheck
ast
- the token being visitedprotected final String getMessageID()
getMessageID
in class AbstractComplexityCheck
Copyright © 2001–2015. All rights reserved.