gate.jape.constraint
Class RegExpMatchPredicate
java.lang.Object
gate.jape.constraint.AbstractConstraintPredicate
gate.jape.constraint.AbstractRegExpPredicate
gate.jape.constraint.RegExpMatchPredicate
- All Implemented Interfaces:
- ConstraintPredicate, Serializable
public class RegExpMatchPredicate
- extends AbstractRegExpPredicate
Implementation of the ==~ predicate, which succeeds if the entire
annotation value matches the given regular expression, and fails
otherwise.
- See Also:
- Serialized Form
RegExpMatchPredicate
public RegExpMatchPredicate()
matcherResult
protected boolean matcherResult(Matcher m)
- Description copied from class:
AbstractRegExpPredicate
- Must be implemented by subclasses to define the matching logic,
typically one of
Matcher.find()
and
Matcher.matches()
, possibly negated.
- Specified by:
matcherResult
in class AbstractRegExpPredicate
- Parameters:
m
- a Matcher
for the annotation value string,
obtained from the constraint pattern.
- Returns:
- true if this constraint should be considered to match,
false otherwise.
getOperator
public String getOperator()
- Description copied from interface:
ConstraintPredicate
- String representation of the logic operator that the predicate
implements.