/** * Get a compiled representation of the regexp pattern * @param options the options * @return the compiled pattern * @throws BuildException on error */ protected Pattern getCompiledPattern(int options) throws BuildException { try { return Pattern.compile(this.pattern, getCompilerOptions(options)); } catch (PatternSyntaxException e) { throw new BuildException(e); } }