public class KeyFun extends XPathFun
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyFun.Key |
| Constructor and Description |
|---|
KeyFun() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
AbstractPattern match,
Expr use)
Add a new key.
|
java.lang.Object |
eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
Evaluate the function.
|
java.util.HashMap<java.lang.String,KeyFun.Key> |
getKeys() |
public void add(java.lang.String name,
AbstractPattern match,
Expr use)
name - name of the keymatch - the key's match patternuse - the key's use expressionpublic java.util.HashMap<java.lang.String,KeyFun.Key> getKeys()
public java.lang.Object eval(org.w3c.dom.Node node,
ExprEnvironment env,
AbstractPattern pattern,
java.util.ArrayList args)
throws XPathException
eval in class XPathFunpattern - The context pattern.args - The evaluated argumentsXPathException