org.tromer.jie
Class InstrumConfig.Rule

java.lang.Object
  |
  +--org.tromer.jie.InstrumConfig.Rule
Enclosing class:
InstrumConfig

public static class InstrumConfig.Rule
extends java.lang.Object

Single instrumentation rule. It has the ability to read its values from a DOM representation.


Field Summary
 GenericStaticFilter filter
          Generic static filters
 boolean isLogged
          Should this rule be logged?
 java.lang.String name
          Rule name (arbitrary string for user's convenience)
 Opportunity opp
          Opportunity (including actions
 
Constructor Summary
InstrumConfig.Rule()
           
 
Method Summary
 java.lang.String getReadableName()
          Gets a readable name: the name field if not empty, otherwise the opportunity name.
 void readFromDOM(org.tromer.jie.Element root)
          Read all values from a DOM tree, starting at the RULE element.
 void reset()
          Reset all rule fields
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Rule name (arbitrary string for user's convenience)

opp

public Opportunity opp
Opportunity (including actions

filter

public GenericStaticFilter filter
Generic static filters

isLogged

public boolean isLogged
Should this rule be logged?
Constructor Detail

InstrumConfig.Rule

public InstrumConfig.Rule()
Method Detail

reset

public void reset()
Reset all rule fields

getReadableName

public java.lang.String getReadableName()
Gets a readable name: the name field if not empty, otherwise the opportunity name.

readFromDOM

public void readFromDOM(org.tromer.jie.Element root)
                 throws InstrumConfig.ConfigErrorException
Read all values from a DOM tree, starting at the RULE element.

Opportunity classes are located by name using the JIE convention. For instance, an opportunity called "NominalMethod" must be implemented by the class org.tromer.jie.opportunity.NominalMethodOpp.