edu.umd.cs.findbugs.ml
public class ConvertToARFF extends Object
See Also: BugCollection BugInstance
Nested Class Summary | |
---|---|
abstract static class | ConvertToARFF.AbstractClassificationAttribute |
static class | ConvertToARFF.AppNameAttribute |
interface | ConvertToARFF.Attribute |
interface | ConvertToARFF.AttributeCallback |
static class | ConvertToARFF.BinaryClassificationAttribute |
static class | ConvertToARFF.BooleanAttribute |
static class | ConvertToARFF.ClassificationAttribute |
static class | ConvertToARFF.IdAttribute
An attribute that just gives each instance a unique id.
|
static class | ConvertToARFF.IdStringAttribute |
static class | ConvertToARFF.NominalAttribute |
static class | ConvertToARFF.NumericAttribute |
static class | ConvertToARFF.PriorityAttribute |
static class | ConvertToARFF.RandomIdAttribute |
Constructor Summary | |
---|---|
ConvertToARFF() |
Method Summary | |
---|---|
void | addAppNameAttribute() |
void | addAttribute(ConvertToARFF.Attribute attribute) |
void | addBooleanAttribute(String name, String xpath) |
void | addClassificationAttribute() |
void | addIdAttribute() |
void | addNominalAttribute(String name, String xpath) |
void | addNumericAttribute(String name, String xpath) |
void | addPriorityAttribute() |
static String | collectionToRange(Collection<String> collection) |
void | convert(String relationName, Document document, String appName, Writer out)
Convert a single Document to ARFF format.
|
void | dropUnclassifiedWarnings() |
void | generateHeader(String relationName, Writer out)
Generate ARFF header.
|
void | generateInstances(Document document, String appName, Writer out)
Generate instances from given Document.
|
int | getNumAttributes() |
static void | main(String[] argv) |
void | scan(Document document, String appName)
Scan a Document to find out the ranges of attributes.
|
void | scanAttributeList(ConvertToARFF.AttributeCallback callback)
Apply a callback to all Attributes.
|
void | setAppName(String appName) |
void | setNodeSelectionXpath(String nodeSelectionXpath)
Set the xpath expression used to select BugInstance nodes.
|
String | toAppName(String fileName) |
Parameters: relationName the relation name document the Document appName the application name out Writer to write the ARFF output to
Parameters: relationName the relation name out Writer to write the ARFF output to
Parameters: document the Document appName the application name out Writer to write the ARFF output to
Parameters: document the Document appName the application name
Parameters: callback the callback
Parameters: nodeSelectionXpath the node selection xpath expression