org.deri.iris.builtins.string
Class StringMatchesWithoutFlagsBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.string.StringMatchesWithoutFlagsBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
public class StringMatchesWithoutFlagsBuiltin
- extends BooleanBuiltin
Represents the RIF built-in func:matches as described in
http://www.w3.org/TR/xpath-functions/#func-matches., but restricts the flags
to empty flags.
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
StringMatchesWithoutFlagsBuiltin
public StringMatchesWithoutFlagsBuiltin(ITerm... terms)
- Constructor.
- Parameters:
terms - The terms, where the term at the first position is the
string, the terms at the second position is the pattern and
the term at the third position represents the flags. The
string is the string the regular expression is being matched
against. The patterns is the string representing the regular
expression. The flags are the flags as described in
http://www.w3.org/TR/xpath-functions/#flags.
- Throws:
IllegalArgumentException - if one of the terms is null
computeResult
protected boolean computeResult(ITerm[] terms)
- Description copied from class:
BooleanBuiltin
- Compute the result of the comparison.
- Specified by:
computeResult in class BooleanBuiltin
- Parameters:
terms - The terms
- Returns:
- The result of the comparison.