org.jaxen.Functionpublic class MetricFunction
extends java.lang.Object
implements org.jaxen.Function
metric() XPath function. Takes the
string name of a metric and the context node and returns
the result if the metric can be computed, otherwise returns
Double.NaN.| Constructor | Description |
|---|---|
MetricFunction() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
badClassMetricKeyMessage() |
|
static java.lang.String |
badMetricKeyArgMessage() |
|
static java.lang.String |
badOperationMetricKeyMessage() |
|
java.lang.Object |
call(org.jaxen.Context context,
java.util.List args) |
|
static java.lang.String |
genericBadNodeMessage() |
|
static double |
getMetric(net.sourceforge.pmd.lang.ast.Node n,
java.lang.String metricKeyName) |
|
static void |
registerSelfInSimpleContext() |
public java.lang.Object call(org.jaxen.Context context,
java.util.List args)
throws org.jaxen.FunctionCallException
call in interface org.jaxen.Functionorg.jaxen.FunctionCallExceptionpublic static java.lang.String badOperationMetricKeyMessage()
public static java.lang.String badClassMetricKeyMessage()
public static java.lang.String genericBadNodeMessage()
public static java.lang.String badMetricKeyArgMessage()
public static double getMetric(net.sourceforge.pmd.lang.ast.Node n,
java.lang.String metricKeyName)
public static void registerSelfInSimpleContext()
Copyright © 2002–2018 PMD. All rights reserved.