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.FunctionDeprecated.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.StringbadClassMetricKeyMessage()Deprecated.static java.lang.StringbadMetricKeyArgMessage()Deprecated.static java.lang.StringbadOperationMetricKeyMessage()Deprecated.java.lang.Objectcall(org.jaxen.Context context, java.util.List args)Deprecated.static java.lang.StringgenericBadNodeMessage()Deprecated.static doublegetMetric(net.sourceforge.pmd.lang.ast.Node n, java.lang.String metricKeyName)Deprecated.static voidregisterSelfInSimpleContext()Deprecated.
-
-
-
Method Detail
-
call
public java.lang.Object call(org.jaxen.Context context, java.util.List args) throws org.jaxen.FunctionCallExceptionDeprecated.- Specified by:
callin 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.
-
-