1 26 27 package net.sourceforge.groboutils.codecoverage.v2.module; 28 29 import net.sourceforge.groboutils.codecoverage.v2.IAnalysisMetaData; 30 31 32 46 public class DefaultAnalysisMetaData implements IAnalysisMetaData 47 { 48 private String covered; 49 private String notCovered; 50 private byte weight; 51 52 53 public DefaultAnalysisMetaData( String c, String nc, byte w ) 54 { 55 if (c == null || nc == null) 56 { 57 throw new IllegalArgumentException ( "No null args." ); 58 } 59 this.covered = c; 60 this.notCovered = nc; 61 this.weight = w; 62 } 63 64 65 71 public String getCoveredFormattedText() 72 { 73 return this.covered; 74 } 75 76 77 83 public String getNotCoveredFormattedText() 84 { 85 return this.notCovered; 86 } 87 88 89 97 public byte getInstructionWeight() 98 { 99 return this.weight; 100 } 101 } 102 103 | Popular Tags |