rules
Class RuleChecker

java.lang.Object
  extended byrules.RuleChecker
Direct Known Subclasses:
ALICERuleChecker, ATLASRuleChecker

public class RuleChecker
extends java.lang.Object

Class RuleChecker realizes the check of the registered coding rules. When a new rule has been implemented this has to be added in the constructor RuleChecker().


Field Summary
static int AFTER_FILTERING
           
static int BEFORE_FILTERING
           
protected static java.lang.String configuration
           
protected static java.util.Hashtable ruleNames
           
protected  java.util.Vector rules
          the vector of registered rules
 
Constructor Summary
RuleChecker()
           
 
Method Summary
 void check(java.util.Vector modules)
          Check all the coding rules registered
protected static java.util.Vector checkAndSetArgs(java.lang.String[] args, java.lang.String programName)
           
protected static java.util.Vector checkAndSetArgsOld(java.lang.String[] args, java.lang.String programName)
           
protected static void configureAnalysis(java.lang.String fileName, BoolWrapper expressionAnalysis)
           
static java.io.PrintStream getViolationStream()
           
protected static void populateEntities(java.util.Vector modules, BoolWrapper expressionAnalysis)
           
protected static void printConfiguration()
           
protected static void readRulesToCheck(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rules

protected java.util.Vector rules
the vector of registered rules


ruleNames

protected static java.util.Hashtable ruleNames

configuration

protected static java.lang.String configuration

BEFORE_FILTERING

public static final int BEFORE_FILTERING
See Also:
Constant Field Values

AFTER_FILTERING

public static final int AFTER_FILTERING
See Also:
Constant Field Values
Constructor Detail

RuleChecker

public RuleChecker()
Method Detail

check

public void check(java.util.Vector modules)
Check all the coding rules registered


getViolationStream

public static java.io.PrintStream getViolationStream()

populateEntities

protected static void populateEntities(java.util.Vector modules,
                                       BoolWrapper expressionAnalysis)

checkAndSetArgs

protected static java.util.Vector checkAndSetArgs(java.lang.String[] args,
                                                  java.lang.String programName)

checkAndSetArgsOld

protected static java.util.Vector checkAndSetArgsOld(java.lang.String[] args,
                                                     java.lang.String programName)

readRulesToCheck

protected static void readRulesToCheck(java.lang.String fileName)

configureAnalysis

protected static void configureAnalysis(java.lang.String fileName,
                                        BoolWrapper expressionAnalysis)

printConfiguration

protected static void printConfiguration()