Class TypeOfFunction

  • All Implemented Interfaces:
    org.jaxen.Function

    @Deprecated
    public class TypeOfFunction
    extends Object
    implements org.jaxen.Function
    Deprecated.
    • Constructor Detail

      • TypeOfFunction

        public TypeOfFunction()
        Deprecated.
    • 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 interface org.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 node
        fullTypeName - The fully qualified name of the class or any supertype
        shortTypeName - The simple class name, might be null
        Returns: