com.atlassian.maven.plugin.clover.internal.instrumentation
Class AbstractInstrumenter

java.lang.Object
  extended by com.atlassian.maven.plugin.clover.internal.instrumentation.AbstractInstrumenter
Direct Known Subclasses:
MainInstrumenter, TestInstrumenter

public abstract class AbstractInstrumenter
extends Object

Code common for instrumentation of various source roots (main sources, test sources).


Constructor Summary
AbstractInstrumenter(CompilerConfiguration configuration, String outputSourceDirectory)
           
 
Method Summary
protected abstract  void addCompileSourceRoot(String sourceRoot)
           
protected abstract  List<String> getCompileSourceRoots()
           
protected  CompilerConfiguration getConfiguration()
           
protected abstract  String getSourceDirectory()
           
protected abstract  CloverSourceScanner getSourceScanner()
           
protected abstract  String getSourceType()
           
 void instrument()
           
protected abstract  boolean isGeneratedSourcesDirectory(String sourceRoot)
           
 String redirectSourceDirectories()
           
protected abstract  void setSourceDirectory(String targetDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInstrumenter

public AbstractInstrumenter(CompilerConfiguration configuration,
                            String outputSourceDirectory)
Method Detail

getConfiguration

protected CompilerConfiguration getConfiguration()

instrument

public void instrument()
                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException - when instrumentation fails
See Also:
CloverInstrumentInternalMojo.calcIncludedFilesForGroovy(), CloverInstrumentInternalMojo.redirectOutputDirectories()

redirectSourceDirectories

public String redirectSourceDirectories()

getSourceScanner

protected abstract CloverSourceScanner getSourceScanner()

getSourceDirectory

protected abstract String getSourceDirectory()

setSourceDirectory

protected abstract void setSourceDirectory(String targetDirectory)

getCompileSourceRoots

protected abstract List<String> getCompileSourceRoots()

addCompileSourceRoot

protected abstract void addCompileSourceRoot(String sourceRoot)

isGeneratedSourcesDirectory

protected abstract boolean isGeneratedSourcesDirectory(String sourceRoot)

getSourceType

protected abstract String getSourceType()


Copyright © 2015 Atlassian Pty Ltd. All Rights Reserved.