コード例 #1
0
 @Override
 public BooleanScalar eval() {
   matcher.reset(ValueReader.getChars(eval.eval()));
   return new BooleanScalar(matcher.find());
 }
コード例 #2
0
 public RegexEvaluator(RecordPointer record, FunctionArguments args) {
   super(args.isOnlyConstants(), record);
   matcher =
       Pattern.compile(ValueReader.getString(args.getEvaluator("pattern").eval())).matcher("");
   eval = args.getEvaluator("value");
 }