org.jaxen.Functionpublic class TypeIsExactlyFunction
extends java.lang.Object
implements org.jaxen.Function
| Constructor | Description |
|---|---|
TypeIsExactlyFunction() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
call(org.jaxen.Context context,
java.util.List args) |
|
static void |
registerSelfInSimpleContext() |
|
static boolean |
typeIsExactly(net.sourceforge.pmd.lang.ast.Node n,
java.lang.String fullTypeName) |
Example XPath 1.0:
//ClassOrInterfaceType[typeIsExactly('java.lang.String')] |
public static void registerSelfInSimpleContext()
public java.lang.Object call(org.jaxen.Context context,
java.util.List args)
throws org.jaxen.FunctionCallException
call in interface org.jaxen.Functionorg.jaxen.FunctionCallExceptionpublic static boolean typeIsExactly(net.sourceforge.pmd.lang.ast.Node n,
java.lang.String fullTypeName)
//ClassOrInterfaceType[typeIsExactly('java.lang.String')]
Example XPath 2.0: //ClassOrInterfaceType[pmd-java:typeIsExactly('java.lang.String')]
n - The node on which to check for typesfullTypeName - The fully qualified name of the class or any supertypeCopyright © 2002–2018 PMD. All rights reserved.