1 8 package com.mountainminds.eclemma.internal.core.instr; 9 10 import org.eclipse.core.runtime.IPath; 11 12 import com.mountainminds.eclemma.core.IClassFiles; 13 import com.mountainminds.eclemma.core.IInstrumentation; 14 15 21 public class Instrumentation implements IInstrumentation { 22 23 private final IClassFiles classfiles; 24 private final boolean inplace; 25 private final IPath outputlocation; 26 private final IPath metadatafile; 27 28 public Instrumentation(IClassFiles classfiles, boolean inplace, 29 IPath outputlocation, IPath metadatafile) { 30 this.classfiles = classfiles; 31 this.inplace = inplace; 32 this.outputlocation = outputlocation; 33 this.metadatafile = metadatafile; 34 } 35 36 public boolean isInplace() { 37 return inplace; 38 } 39 40 public IClassFiles getClassFiles() { 41 return classfiles; 42 } 43 44 public IPath getOutputLocation() { 45 return outputlocation; 46 } 47 48 public IPath getMetaDataFile() { 49 return metadatafile; 50 } 51 52 public boolean equals(Object obj) { 53 if (obj instanceof IInstrumentation) { 54 return metadatafile.equals(((IInstrumentation) obj).getMetaDataFile()); 55 } else { 56 return false; 57 } 58 } 59 60 public int hashCode() { 61 return metadatafile.hashCode(); 62 } 63 64 } 65 | Popular Tags |