net.sf.joost.stx
Class FunctionTable.SubstringAfter

java.lang.Object
  extended bynet.sf.joost.stx.FunctionTable.SubstringAfter
All Implemented Interfaces:
FunctionTable.Instance
Enclosing class:
FunctionTable

public static final class FunctionTable.SubstringAfter
extends Object
implements FunctionTable.Instance

The substring-after function. Returns the substring from the first parameter that occurs after the first occurrence of the second parameter.

See Also:
fn:substring-after in "XQuery 1.0 and XPath 2.0 Functions and Operators"

Constructor Summary
FunctionTable.SubstringAfter()
           
 
Method Summary
 Value evaluate(Context context, int top, Tree args)
          The evaluation method.
 int getMaxParCount()
          Maximum number of parameters.
 int getMinParCount()
          Minimum number of parameters.
 String getName()
          Expanded name of the function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionTable.SubstringAfter

public FunctionTable.SubstringAfter()
Method Detail

getMinParCount

public int getMinParCount()
Description copied from interface: FunctionTable.Instance
Minimum number of parameters.

Specified by:
getMinParCount in interface FunctionTable.Instance
Returns:
2

getMaxParCount

public int getMaxParCount()
Description copied from interface: FunctionTable.Instance
Maximum number of parameters.

Specified by:
getMaxParCount in interface FunctionTable.Instance
Returns:
2

getName

public String getName()
Description copied from interface: FunctionTable.Instance
Expanded name of the function.

Specified by:
getName in interface FunctionTable.Instance
Returns:
"substring-after"

evaluate

public Value evaluate(Context context,
                      int top,
                      Tree args)
               throws SAXException,
                      EvalException
Description copied from interface: FunctionTable.Instance
The evaluation method.

Specified by:
evaluate in interface FunctionTable.Instance
Parameters:
context - the Context object
top - the number of the upper most element on the stack
args - the current parameters
Returns:
a Value instance containing the result
Throws:
EvalException - if an error occurs while processing
SAXException - if an error occurs while processing