FileDocCategorySizeDatePackage
CoverageOptionsFactory.javaAPI DocAndroid 1.5 API3418Wed May 06 22:41:16 BST 2009com.vladium.emma.data

CoverageOptionsFactory

public abstract class CoverageOptionsFactory extends Object
author
Vlad Roubtsov, (C) 2004

Fields Summary
Constructors Summary
private CoverageOptionsFactory()

Methods Summary
public static CoverageOptionscreate(java.util.Properties properties)

        final boolean excludeSyntheticMethods =
            Property.toBoolean (properties.getProperty (InstrProcessor.PROPERTY_EXCLUDE_SYNTHETIC_METHODS,
                                                        InstrProcessor.DEFAULT_EXCLUDE_SYNTHETIC_METHODS));
                                                                        
        final boolean excludeBridgeMethods =
            Property.toBoolean (properties.getProperty (InstrProcessor.PROPERTY_EXCLUDE_BRIDGE_METHODS,
                                                        InstrProcessor.DEFAULT_EXCLUDE_BRIDGE_METHODS));
                                                                                            
        final boolean doSUIDCompensaton =
            Property.toBoolean (properties.getProperty (InstrProcessor.PROPERTY_DO_SUID_COMPENSATION,
                                                        InstrProcessor.DEFAULT_DO_SUID_COMPENSATION));
        
        return new CoverageOptions (excludeSyntheticMethods, excludeBridgeMethods, doSUIDCompensaton);
    
public static CoverageOptionscreate(com.vladium.util.IProperties properties)

        final boolean excludeSyntheticMethods =
            Property.toBoolean (properties.getProperty (InstrProcessor.PROPERTY_EXCLUDE_SYNTHETIC_METHODS,
                                                        InstrProcessor.DEFAULT_EXCLUDE_SYNTHETIC_METHODS));
        
        final boolean excludeBridgeMethods =
            Property.toBoolean (properties.getProperty (InstrProcessor.PROPERTY_EXCLUDE_BRIDGE_METHODS,
                                                        InstrProcessor.DEFAULT_EXCLUDE_BRIDGE_METHODS));
                                                                                         
        final boolean doSUIDCompensaton =
            Property.toBoolean (properties.getProperty (InstrProcessor.PROPERTY_DO_SUID_COMPENSATION,
                                                        InstrProcessor.DEFAULT_DO_SUID_COMPENSATION));
        
        return new CoverageOptions (excludeSyntheticMethods, excludeBridgeMethods, doSUIDCompensaton);