Package org.hamcrest.text.pattern.internal.ast

Examples of org.hamcrest.text.pattern.internal.ast.CaptureGroup


    private PatternComponent sequence;

    public Field(String name, PatternComponent pattern) {
  this.name = name;
  // TODO: clean this up and make the delimiter changeable
  Object[] args = new Object[] { "\"", new CaptureGroup(name, pattern),
    new Literal("\"") };
  this.sequence = Patterns.sequence(args);
    }
View Full Code Here


    public static PatternComponent oneOrMore(Object o) {
  return new OneOrMore(toPattern(o));
    }

    public static PatternComponent group(String name, PatternComponent pattern) {
  return new CaptureGroup(name, pattern);
    }
View Full Code Here

TOP

Related Classes of org.hamcrest.text.pattern.internal.ast.CaptureGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.