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