|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The implementaion of this interface represents a Code Analyzer rule. Each system rule implements this interface, similarly one should implement this interface for writing a custom rule. If the rule requies to be configurable one should implement it's sub interface com.appperfect.codeanalyzer.engine.rules.IConfigurableRule
Method Summary | |
void |
evaluate(org.eclipse.jdt.core.dom.ASTNode node,
com.appperfect.codeanalyzer.engine.rules.IViolationListener vl)
The engine notifies the rule through this method when one of the specified node types is encountered. |
int[] |
getASTNodeTypes()
A rule specifies the type of nodes it is interested in through this method. |
void |
reset()
This method is called before each call to evaluate. |
Method Detail |
public int[] getASTNodeTypes()
public void evaluate(org.eclipse.jdt.core.dom.ASTNode node, com.appperfect.codeanalyzer.engine.rules.IViolationListener vl)
node
- the node that was found during traversal.vl
- the rule may report a violation by calling violationFound(ASTNode) on this object.public void reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |