|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.AntlibDefinition cppncss.CppNcssTask
public final class CppNcssTask
Provides an Apache Ant task implementation for CppNcss.
Nested Class Summary | |
---|---|
static class |
CppNcssTask.Define
Provides a define definition. |
static class |
CppNcssTask.Macro
Provides a macro definition. |
static class |
CppNcssTask.Symbol
Provides a symbol definition. |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
CppNcssTask()
|
Method Summary | |
---|---|
void |
addConfiguredDefine(CppNcssTask.Define define)
Add a define definition. |
void |
addConfiguredMacro(CppNcssTask.Macro macro)
Add a macro definition. |
void |
addFileset(org.apache.tools.ant.types.FileSet fileset)
Add a set of source files. |
void |
execute()
|
void |
setKeepGoing(boolean keepGoing)
Set whether the analyzis should stop upon error or not. |
void |
setMeasurements(java.lang.String measurements)
Set the measurements. |
void |
setPrefix(java.lang.String prefix)
Define a prefix. |
void |
setSamples(int samples)
Set the number of samples to output. |
void |
setToFile(java.lang.String filename)
Set the name of the output file. |
Methods inherited from class org.apache.tools.ant.taskdefs.AntlibDefinition |
---|
getAntlibClassLoader, getURI, setAntlibClassLoader, setURI |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CppNcssTask()
Method Detail |
---|
public void addFileset(org.apache.tools.ant.types.FileSet fileset)
fileset
- a set of source files.public void setPrefix(java.lang.String prefix)
Not required.
prefix
- the prefixpublic void setToFile(java.lang.String filename)
Required.
filename
- the file namepublic void setKeepGoing(boolean keepGoing)
Not required. Default is false.
keepGoing
- if the analyzis should keep going upon errorpublic void setSamples(int samples)
Not required. Default is all.
samples
- truncate the output after this given number of samplespublic void setMeasurements(java.lang.String measurements)
Not required. Default is "NCSS,CCN,function".
measurements
- the ordered list of measurements to performpublic void addConfiguredDefine(CppNcssTask.Define define)
define
- the definepublic void addConfiguredMacro(CppNcssTask.Macro macro)
macro
- the macropublic void execute()
execute
in class org.apache.tools.ant.Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |