Package org.gmetrics.resultsnode
Class PackageResultsNode
- java.lang.Object
-
- org.gmetrics.resultsnode.PackageResultsNode
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,ResultsNode
public class PackageResultsNode extends Object implements ResultsNode, groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description PackageResultsNode(String name, String packageName, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(String name, ResultsNode child)
void
addChildIfNotEmpty(String name, ResultsNode child)
void
applyMetric(Metric metric)
boolean
containsClassResults()
Map<String,ResultsNode>
getChildren()
MetricLevel
getLevel()
groovy.lang.MetaClass
getMetaClass()
MetricResult
getMetricResult(Metric metric)
List<MetricResult>
getMetricResults()
String
getName()
String
getPackageName()
String
getPath()
Object
getProperty(String property)
Object
invokeMethod(String method, Object arguments)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
String
toString()
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getName
public final String getName()
- Specified by:
getName
in interfaceResultsNode
-
getPackageName
public final String getPackageName()
-
getPath
public final String getPath()
-
getLevel
public final MetricLevel getLevel()
- Specified by:
getLevel
in interfaceResultsNode
-
getMetricResults
public final List<MetricResult> getMetricResults()
- Specified by:
getMetricResults
in interfaceResultsNode
-
getChildren
public Map<String,ResultsNode> getChildren()
- Specified by:
getChildren
in interfaceResultsNode
-
containsClassResults
public boolean containsClassResults()
- Specified by:
containsClassResults
in interfaceResultsNode
-
getMetricResult
public MetricResult getMetricResult(Metric metric)
- Specified by:
getMetricResult
in interfaceResultsNode
-
addChildIfNotEmpty
public void addChildIfNotEmpty(String name, ResultsNode child)
-
addChild
public void addChild(String name, ResultsNode child)
-
applyMetric
public void applyMetric(Metric metric)
-
-