Class TypeIsFunction
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.xpath.TypeIsFunction
-
- All Implemented Interfaces:
org.jaxen.Function
@InternalApi @Deprecated public class TypeIsFunction extends Object implements org.jaxen.Function
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description TypeIsFunction()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
call(org.jaxen.Context context, List args)
Deprecated.static void
registerSelfInSimpleContext()
Deprecated.static boolean
typeIs(net.sourceforge.pmd.lang.ast.Node n, String fullTypeName)
Deprecated.Example XPath 1.0://ClassOrInterfaceType[typeIs('java.lang.String')]
-
-
-
Method Detail
-
registerSelfInSimpleContext
public static void registerSelfInSimpleContext()
Deprecated.
-
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
-
typeIs
public static boolean typeIs(net.sourceforge.pmd.lang.ast.Node n, String fullTypeName)
Deprecated.Example XPath 1.0://ClassOrInterfaceType[typeIs('java.lang.String')]
Example XPath 2.0:
//ClassOrInterfaceType[pmd-java:typeIs('java.lang.String')]
- Parameters:
n
- The node on which to check for typesfullTypeName
- The fully qualified name of the class or any supertype- Returns:
- True if the type of the node matches, false otherwise.
-
-