MCPcopy Index your code
hub / github.com/cschanck/single-file-java / dictTable

Method dictTable

src/main/java/org/sfj/PegLegParser.java:485–493  ·  view source on GitHub ↗
(String... options)

Source from the content-addressed store, hash-verified

483 }
484
485 private Map.Entry<Map<String, String>, int[]> dictTable(String... options) {
486 HashSet<Integer> lengths = new HashSet<>();
487 Map<String, String> table = new HashMap<>();
488 for (String s : options) {
489 table.put(s.toUpperCase(), s);
490 lengths.add(s.length());
491 }
492 return new AbstractMap.SimpleImmutableEntry<>(table, lengths.stream().mapToInt(i -> i).sorted().toArray());
493 }
494
495 private RuleReturn<V> eofRule() {
496 get().pushFrame("eof()");

Callers 1

dictionaryOfMethod · 0.95

Calls 2

addMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected