@Test(expected = IllegalArgumentException.class) public void selection_unclosed() { FilePattern.compile("{data"); }
public static FilePattern compile(String patternString) { if (patternString == null) { throw new IllegalArgumentException("patternString must not be null"); } if (patternString.isEmpty()) { throw new IllegalArgumentException("patternString must not be empty"); } List<Segment> segments = compileSegments(patternString); return new FilePattern(segments, patternString); }
FilePattern implements ResourcePattern { public static FilePattern compile(String patternString) { if (patternString == null) { throw new IllegalArgumentException("patternString must not be null"); } if (patternString.isEmpty()) { throw new IllegalArgumentException("patternString must not be empty"); } List<Segment> segments = compileSegments(patternString); return new FilePattern(segments, patternString); } }
FilePattern implements ResourcePattern { public static FilePattern compile(String patternString) { if (patternString == null) { throw new IllegalArgumentException("patternString must not be null"); } if (patternString.isEmpty()) { throw new IllegalArgumentException("patternString must not be empty"); } List<Segment> segments = compileSegments(patternString); return new FilePattern(segments, patternString); } FilePattern(List<Segment> segments, String patternString); }
FilePattern implements ResourcePattern { public static FilePattern compile(String patternString) { if (patternString == null) { throw new IllegalArgumentException("patternString must not be null"); } if (patternString.isEmpty()) { throw new IllegalArgumentException("patternString must not be empty"); } List<Segment> segments = compileSegments(patternString); return new FilePattern(segments, patternString); } FilePattern(List<Segment> segments, String patternString); Set<PatternElementKind> getPatternElementKinds(); boolean containsVariables(); boolean containsTraverse(); List<Segment> getSegments(); String getPatternString(); @Override String toString(); static FilePattern of(List<? extends Segment> segments); static FilePattern compile(String patternString); }
FilePattern implements ResourcePattern { public static FilePattern compile(String patternString) { if (patternString == null) { throw new IllegalArgumentException("patternString must not be null"); } if (patternString.isEmpty()) { throw new IllegalArgumentException("patternString must not be empty"); } List<Segment> segments = compileSegments(patternString); return new FilePattern(segments, patternString); } FilePattern(List<Segment> segments, String patternString); Set<PatternElementKind> getPatternElementKinds(); boolean containsVariables(); boolean containsTraverse(); List<Segment> getSegments(); String getPatternString(); @Override String toString(); static FilePattern of(List<? extends Segment> segments); static FilePattern compile(String patternString);  }