Class TypeOfFunction
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.xpath.TypeOfFunction
-
- All Implemented Interfaces:
org.jaxen.Function
@Deprecated public class TypeOfFunction extends Object implements org.jaxen.Function
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description TypeOfFunction()
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
typeof(Node n, String nodeTypeName, String fullTypeName, String shortTypeName)
Deprecated.Example XPath 1.0://ClassOrInterfaceType[typeof(@Image, 'java.lang.String', '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
-
typeof
public static boolean typeof(Node n, String nodeTypeName, String fullTypeName, String shortTypeName)
Deprecated.Example XPath 1.0://ClassOrInterfaceType[typeof(@Image, 'java.lang.String', 'String')]
Example XPath 2.0:
//ClassOrInterfaceType[pmd-java:typeof(@Image, 'java.lang.String', 'String')]
- Parameters:
n
-nodeTypeName
- Usually the@Image
attribute of the nodefullTypeName
- The fully qualified name of the class or any supertypeshortTypeName
- The simple class name, might benull
- Returns:
-
-