class CommonThrowAstVisitor extends AbstractAstVisitor
AstVisitor implementation that checks for throwing one of the exception type names specified in the constructor
This is an internal class and its API is subject to change.Constructor and description |
---|
CommonThrowAstVisitor(java.util.List exceptionTypeNames) Construct a new instance, specifying the exception type names |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
visitThrowStatement(ThrowStatement throwStatement) |
Methods inherited from class | Name |
---|---|
class AbstractAstVisitor |
addViolation, addViolation, getCurrentClassName, getCurrentClassNode, getRule, getSourceCode, getSourceUnit, getViolations, getVisited, isFirstVisit, isGeneratedCode, isNotGeneratedCode, lastSourceLine, lastSourceLineTrimmed, setRule, setSourceCode, setVisited, shouldVisitMethod, sourceLine, sourceLineTrimmed, visitClass, visitClassComplete, visitClassEx, visitMethod, visitMethodComplete, visitMethodEx |
Construct a new instance, specifying the exception type names
exceptionTypeNames
- - the names of the exception class; typically including class name
with and without package