示例#1
0
  public SingleLineCommand2(RegexConcat pattern) {
    if (pattern == null) {
      throw new IllegalArgumentException();
    }
    if (pattern.getPattern().startsWith("^") == false
        || pattern.getPattern().endsWith("$") == false) {
      throw new IllegalArgumentException("Bad pattern " + pattern.getPattern());
    }

    this.pattern = pattern;
  }
示例#2
0
 public String[] getDescription() {
   return new String[] {pattern.getPattern()};
 }