Class TypeIsExactlyFunction
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.xpath.TypeIsExactlyFunction
-
- All Implemented Interfaces:
org.jaxen.Function
@InternalApi @Deprecated public class TypeIsExactlyFunction extends java.lang.Object implements org.jaxen.FunctionDeprecated.
-
-
Constructor Summary
Constructors Constructor Description TypeIsExactlyFunction()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectcall(org.jaxen.Context context, java.util.List args)Deprecated.static voidregisterSelfInSimpleContext()Deprecated.static booleantypeIsExactly(net.sourceforge.pmd.lang.ast.Node n, java.lang.String fullTypeName)Deprecated.Example XPath 1.0://ClassOrInterfaceType[typeIsExactly('java.lang.String')]
-
-
-
Method Detail
-
registerSelfInSimpleContext
public static void registerSelfInSimpleContext()
Deprecated.
-
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
-
typeIsExactly
public static boolean typeIsExactly(net.sourceforge.pmd.lang.ast.Node n, java.lang.String fullTypeName)Deprecated.Example XPath 1.0://ClassOrInterfaceType[typeIsExactly('java.lang.String')]Example XPath 2.0:
//ClassOrInterfaceType[pmd-java:typeIsExactly('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.
-
-