MCPcopy Create free account
hub / github.com/atas76/openengine / parse

Method parse

src/main/java/org/ttn/parser/Parser.java:34–42  ·  view source on GitHub ↗
(List<String> lines)

Source from the content-addressed store, hash-verified

32 }
33
34 public List<MatchDataElement> parse(List<String> lines) throws ParserException {
35 return lines.stream().map(line -> {
36 try {
37 return parseTokenList(new Scanner(line).scan());
38 } catch (ScannerException | ParserException e) {
39 throw new RuntimeException(e);
40 }
41 }).collect(Collectors.toList());
42 }
43}

Callers 15

testParseMatchFileMethod · 0.45
testLoadMatchDataMethod · 0.45
parseStatementMethod · 0.45
parseStatementMethod · 0.45
testSyntaxErrorMethod · 0.45
testInvalidTimeFormatMethod · 0.45
testMissingTimeMethod · 0.45
loadClubsMethod · 0.45
loadNationsMethod · 0.45

Calls 2

parseTokenListMethod · 0.95
scanMethod · 0.45

Tested by 10

testParseMatchFileMethod · 0.36
testLoadMatchDataMethod · 0.36
parseStatementMethod · 0.36
parseStatementMethod · 0.36
testSyntaxErrorMethod · 0.36
testInvalidTimeFormatMethod · 0.36
testMissingTimeMethod · 0.36