Class MetricFunction
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.xpath.MetricFunction
-
- All Implemented Interfaces:
org.jaxen.Function
@InternalApi @Deprecated public class MetricFunction extends 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 String
badClassMetricKeyMessage()
Deprecated.static String
badMetricKeyArgMessage()
Deprecated.static String
badOperationMetricKeyMessage()
Deprecated.Object
call(org.jaxen.Context context, List args)
Deprecated.static String
genericBadNodeMessage()
Deprecated.static double
getMetric(Node n, String metricKeyName)
Deprecated.static void
registerSelfInSimpleContext()
Deprecated.
-
-
-
Method Detail
-
call
public Object call(org.jaxen.Context context, List args) throws org.jaxen.FunctionCallException
Deprecated.- Specified by:
call
in interfaceorg.jaxen.Function
- Throws:
org.jaxen.FunctionCallException
-
badOperationMetricKeyMessage
public static String badOperationMetricKeyMessage()
Deprecated.
-
badClassMetricKeyMessage
public static String badClassMetricKeyMessage()
Deprecated.
-
genericBadNodeMessage
public static String genericBadNodeMessage()
Deprecated.
-
badMetricKeyArgMessage
public static String badMetricKeyArgMessage()
Deprecated.
-
registerSelfInSimpleContext
public static void registerSelfInSimpleContext()
Deprecated.
-
-