org.gmetrics.metric
Class StubMetric
java.lang.Object
org.gmetrics.metric.StubMetric
- All Implemented Interfaces:
- groovy.lang.GroovyObject, org.gmetrics.metric.MethodMetric, org.gmetrics.metric.Metric
public class StubMetric
- extends java.lang.Object
- implements org.gmetrics.metric.MethodMetric, groovy.lang.GroovyObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StubMetric
public StubMetric()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
invokeMethod
public java.lang.Object invokeMethod(java.lang.String method,
java.lang.Object arguments)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
setProperty
public void setProperty(java.lang.String property,
java.lang.Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
getEnabled
public boolean getEnabled()
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface org.gmetrics.metric.Metric
setEnabled
public void setEnabled(boolean value)
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.gmetrics.metric.Metric
setName
public void setName(java.lang.String value)
getBaseLevel
public org.gmetrics.metric.MetricLevel getBaseLevel()
- Specified by:
getBaseLevel
in interface org.gmetrics.metric.Metric
setBaseLevel
public void setBaseLevel(org.gmetrics.metric.MetricLevel value)
getClassMetricResult
public org.gmetrics.result.ClassMetricResult getClassMetricResult()
setClassMetricResult
public void setClassMetricResult(org.gmetrics.result.ClassMetricResult value)
getPackageMetricResult
public org.gmetrics.result.MetricResult getPackageMetricResult()
setPackageMetricResult
public void setPackageMetricResult(org.gmetrics.result.MetricResult value)
getMethodMetricResult
public org.gmetrics.result.MetricResult getMethodMetricResult()
setMethodMetricResult
public void setMethodMetricResult(org.gmetrics.result.MetricResult value)
getClosureMetricResult
public org.gmetrics.result.MetricResult getClosureMetricResult()
setClosureMetricResult
public void setClosureMetricResult(org.gmetrics.result.MetricResult value)
getPackageName
public java.lang.String getPackageName()
setPackageName
public void setPackageName(java.lang.String value)
getOtherProperty
public java.lang.Object getOtherProperty()
setOtherProperty
public void setOtherProperty(java.lang.Object value)
getFunctions
public java.util.List<java.lang.String> getFunctions()
- Specified by:
getFunctions
in interface org.gmetrics.metric.Metric
setFunctions
public void setFunctions(java.util.List<java.lang.String> value)
applyToClass
public org.gmetrics.result.ClassMetricResult applyToClass(org.codehaus.groovy.ast.ClassNode classNode,
org.gmetrics.source.SourceCode sourceCode)
- Specified by:
applyToClass
in interface org.gmetrics.metric.Metric
applyToPackage
public org.gmetrics.result.MetricResult applyToPackage(java.lang.String packageName,
java.util.Collection childMetricResults)
- Specified by:
applyToPackage
in interface org.gmetrics.metric.Metric
applyToMethod
public org.gmetrics.result.MetricResult applyToMethod(org.codehaus.groovy.ast.MethodNode methodNode,
org.gmetrics.source.SourceCode sourceCode)
- Specified by:
applyToMethod
in interface org.gmetrics.metric.MethodMetric
applyToClosure
public org.gmetrics.result.MetricResult applyToClosure(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression,
org.gmetrics.source.SourceCode sourceCode)
- Specified by:
applyToClosure
in interface org.gmetrics.metric.MethodMetric
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012. All Rights Reserved.