com.caucho.xsl
Class KeyFun

java.lang.Object
  |
  +--com.caucho.xpath.XPathFun
        |
        +--com.caucho.xsl.KeyFun

public class KeyFun
extends XPathFun

The key(...) function.


Constructor Summary
KeyFun()
           
 
Method Summary
 void add(java.lang.String name, Pattern match, Expr use)
          Add a new key.
 java.lang.Object eval(Node node, Env env, Node context, Pattern pattern, java.util.ArrayList args)
          Evaluate the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFun

public KeyFun()
Method Detail

add

public void add(java.lang.String name,
                Pattern match,
                Expr use)
Add a new key.
Parameters:
name - name of the key
match - the key's match pattern
use - the key's use expression

eval

public java.lang.Object eval(Node node,
                             Env env,
                             Node context,
                             Pattern pattern,
                             java.util.ArrayList args)
Evaluate the function.
Overrides:
eval in class XPathFun
Parameters:
pattern - The context pattern.
args - The evaluated arguments