Class MetricFunction
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.xpath.MetricFunction
-
- All Implemented Interfaces:
org.jaxen.Function
@InternalApi @Deprecated public class MetricFunction extends java.lang.Object implements org.jaxen.Function
Deprecated.Implements themetric()
XPath function. Takes the string name of a metric and the context node and returns the result if the metric can be computed, otherwise returnsDouble.NaN
.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description MetricFunction()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
badClassMetricKeyMessage()
Deprecated.static java.lang.String
badMetricKeyArgMessage()
Deprecated.static java.lang.String
badOperationMetricKeyMessage()
Deprecated.java.lang.Object
call(org.jaxen.Context context, java.util.List args)
Deprecated.static java.lang.String
genericBadNodeMessage()
Deprecated.static double
getMetric(net.sourceforge.pmd.lang.ast.Node n, java.lang.String metricKeyName)
Deprecated.static void
registerSelfInSimpleContext()
Deprecated.
-
-
-
Method Detail
-
call
public java.lang.Object call(org.jaxen.Context context, java.util.List args) throws org.jaxen.FunctionCallException
Deprecated.- Specified by:
call
in interfaceorg.jaxen.Function
- Throws:
org.jaxen.FunctionCallException
-
badOperationMetricKeyMessage
public static java.lang.String badOperationMetricKeyMessage()
Deprecated.
-
badClassMetricKeyMessage
public static java.lang.String badClassMetricKeyMessage()
Deprecated.
-
genericBadNodeMessage
public static java.lang.String genericBadNodeMessage()
Deprecated.
-
badMetricKeyArgMessage
public static java.lang.String badMetricKeyArgMessage()
Deprecated.
-
getMetric
public static double getMetric(net.sourceforge.pmd.lang.ast.Node n, java.lang.String metricKeyName)
Deprecated.
-
registerSelfInSimpleContext
public static void registerSelfInSimpleContext()
Deprecated.
-
-