|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.runtime.AgentOptions
public class AgentOptions
Utility to create and parse options for the runtime agent. Options are represented as a string in the following format:
key1=value1,key2=value2,key3=value3
Field Summary | |
---|---|
static String |
EXCLCLASSLOADER
Wildcard expression for class loaders names for classes that should be excluded from code coverage. |
static String |
EXCLUDES
Wildcard expression for class names that should be excluded from code coverage. |
static String |
FILE
Specifies the output file for execution data. |
static String |
INCLUDES
Wildcard expression for class names that should be included for code coverage. |
static String |
MERGE
Specifies whether execution data should be appended to the output file. |
Constructor Summary | |
---|---|
AgentOptions()
New instance with all values set to default. |
|
AgentOptions(String optionstr)
New instance parsed from the given option string. |
Method Summary | |
---|---|
String |
getExclClassloader()
Returns the wildcard expression for excluded class loaders. |
String |
getExcludes()
Returns the wildcard expression for classes to exclude. |
String |
getFile()
Returns the output file location. |
String |
getIncludes()
Returns the wildcard expression for classes to include. |
boolean |
getMerge()
Returns whether the output should be merged with an existing file. |
void |
setExclClassloader(String expression)
Sets the wildcard expression for excluded class loaders. |
void |
setExcludes(String excludes)
Sets the wildcard expression for classes to exclude. |
void |
setFile(String file)
Sets the output file location. |
void |
setIncludes(String includes)
Sets the wildcard expression for classes to include. |
void |
setMerge(boolean flag)
Sets whether the output should be merged with an existing file. |
String |
toString()
Creates a string representation that can be passed to the agent via the command line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FILE
jacoco.exec
in the working directory.
public static final String MERGE
true
.
public static final String INCLUDES
*
(all classes included).
WildcardMatcher
,
Constant Field Valuespublic static final String EXCLUDES
WildcardMatcher
,
Constant Field Valuespublic static final String EXCLCLASSLOADER
sun.reflect.DelegatingClassLoader
.
WildcardMatcher
,
Constant Field ValuesConstructor Detail |
---|
public AgentOptions()
public AgentOptions(String optionstr)
optionstr
- string to parse or null
Method Detail |
---|
public String getFile()
public void setFile(String file)
file
- output file locationpublic boolean getMerge()
true
, when the output should be mergedpublic void setMerge(boolean flag)
flag
- true
, when the output should be mergedpublic String getIncludes()
WildcardMatcher
public void setIncludes(String includes)
includes
- wildcard expression for classes to includeWildcardMatcher
public String getExcludes()
WildcardMatcher
public void setExcludes(String excludes)
excludes
- wildcard expression for classes to excludeWildcardMatcher
public String getExclClassloader()
WildcardMatcher
public void setExclClassloader(String expression)
expression
- expression for excluded class loadersWildcardMatcher
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |