Search in sources :

Example 1 with RegexConstraint

use of com.vaticle.typedb.core.pattern.constraint.type.RegexConstraint in project grakn by graknlabs.

the class TypeVariable method regex.

public RegexConstraint regex(Pattern regex) {
    RegexConstraint regexConstraint = new RegexConstraint(this, regex);
    constrain(regexConstraint);
    return regexConstraint;
}
Also used : RegexConstraint(com.vaticle.typedb.core.pattern.constraint.type.RegexConstraint)

Aggregations

RegexConstraint (com.vaticle.typedb.core.pattern.constraint.type.RegexConstraint)1