org.deri.iris.builtins
Class RegexBuiltin
java.lang.Object
org.deri.iris.builtins.AbstractBuiltin
org.deri.iris.builtins.BooleanBuiltin
org.deri.iris.builtins.RegexBuiltin
- All Implemented Interfaces:
- Comparable<IAtom>, IAtom, IBuiltinAtom
public class RegexBuiltin
- extends BooleanBuiltin
Built-in to do regular expression matching.
|
Method Summary |
protected boolean |
computeResult(ITerm[] terms)
Compute the result of the comparison. |
RegexBuiltin
public RegexBuiltin(ITerm... terms)
- Constructs a built-in. Two terms must be passed to the constructor,
the second one must be a string with the regular expression pattern.
- Parameters:
terms - the terms
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.