|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Tokenize
public class Tokenize
This class implements the tokenize() function for regular expression matching. This returns a sequence of strings representing the unmatched substrings: the separators which match the regular expression are not returned.
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.functions.SystemFunction |
|---|
operation |
| Fields inherited from class net.sf.saxon.expr.FunctionCall |
|---|
argument |
| Fields inherited from class net.sf.saxon.expr.ComputedExpression |
|---|
locationId, staticProperties |
| Fields inherited from interface net.sf.saxon.expr.Expression |
|---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Constructor Summary | |
|---|---|
Tokenize()
|
|
| Method Summary | |
|---|---|
SequenceIterator |
iterate(XPathContext c)
Iterate over the results of the function |
static void |
main(java.lang.String[] args)
Simple command-line interface for testing. |
Expression |
simplify(StaticContext env)
Simplify and validate. |
| Methods inherited from class net.sf.saxon.functions.SystemFunction |
|---|
addContextDocumentArgument, checkArguments, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, setDetails, useContextItemAsDefault |
| Methods inherited from class net.sf.saxon.expr.FunctionCall |
|---|
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplifyArguments, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tokenize()
| Method Detail |
|---|
public Expression simplify(StaticContext env)
throws XPathException
simplify in interface Expressionsimplify in class FunctionCallenv - the static context
XPathException - if an error is discovered during expression
rewriting
public SequenceIterator iterate(XPathContext c)
throws XPathException
iterate in interface Expressioniterate in class ComputedExpressionc - supplies the context for evaluation
XPathException - if any dynamic error occurs evaluating the
expression
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - (1) the string to be tokenized (2) the regular expression
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||