public class MethodMetricsMeasurement extends MetricsMeasurement
MetricsMeasurement
for a method.className, fileName, metrics, packageName
Constructor and Description |
---|
MethodMetricsMeasurement() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getBeginColumn() |
int |
getBeginLine() |
int |
getEndColumn() |
int |
getEndLine() |
String |
getMethodName() |
int |
hashCode() |
MethodMetricsMeasurement |
merge(MetricsMeasurement metricsMeasurement)
Merge another
MetricsMeasurement with this one. |
void |
setBeginColumn(int beginColumn) |
void |
setBeginLine(int beginLine) |
void |
setEndColumn(int endColumn) |
void |
setEndLine(int endLine) |
void |
setMethodName(String methodName) |
String |
toString() |
addMetric, getClassName, getFileName, getMetric, getMetrics, getPackageName, getQualifiedClassName, setClassName, setFileName, setPackageName
public String getMethodName()
public void setMethodName(String methodName)
public int getBeginLine()
public void setBeginLine(int beginLine)
public int getBeginColumn()
public void setBeginColumn(int beginColumn)
public int getEndLine()
public void setEndLine(int endLine)
public int getEndColumn()
public void setEndColumn(int endColumn)
public MethodMetricsMeasurement merge(MetricsMeasurement metricsMeasurement)
MetricsMeasurement
with this one. Returns itself to be usable for chaining.merge
in class MetricsMeasurement
metricsMeasurement
- the MetricsMeasurement
to merge. If it is a MethodMetricsMeasurement
,their metrics are
merged together, if it is a ClassMetricsMeasurement
, nothing happens.Copyright © 2016–2020. All rights reserved.