|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.xpath.XPathFun
com.caucho.xsl.fun.KeyFun
public class KeyFun
The key(...) function.
Nested Class Summary | |
---|---|
static class |
KeyFun.Key
|
Constructor Summary | |
---|---|
KeyFun()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyFun()
Method Detail |
---|
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 XPathFun
pattern
- The context pattern.args
- The evaluated arguments
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |