net.sourceforge.pmd
Class FooRule

java.lang.Object
  extended by AbstractRule
      extended by net.sourceforge.pmd.FooRule
Direct Known Subclasses:
MockStatisticalRule

public class FooRule
extends AbstractRule

Sample rule that detect any node with an image of "Foo". Used for testing.


Constructor Summary
FooRule()
           
 
Method Summary
 void apply(List<? extends Node> nodes, RuleContext ctx)
           
protected  void apply(Node node, RuleContext ctx)
           
 String getDescription()
           
 String getMessage()
           
 String getName()
           
 String getRuleSetName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FooRule

public FooRule()
Method Detail

getMessage

public String getMessage()

getName

public String getName()

getRuleSetName

public String getRuleSetName()

getDescription

public String getDescription()

apply

public void apply(List<? extends Node> nodes,
                  RuleContext ctx)

apply

protected void apply(Node node,
                     RuleContext ctx)


Copyright © 2002–2015 InfoEther. All rights reserved.