MCPcopy Create free account
hub / github.com/apache/solr / expect

Method expect

solr/core/src/java/org/apache/solr/search/StrParser.java:71–79  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

69 }
70
71 public void expect(String s) throws SyntaxError {
72 eatws();
73 int slen = s.length();
74 if (val.regionMatches(pos, s, 0, slen)) {
75 pos += slen;
76 } else {
77 throw new SyntaxError("Expected '" + s + "' at position " + pos + " in '" + val + "'");
78 }
79 }
80
81 public float getFloat() {
82 eatws();

Callers 5

parseValueSourceMethod · 0.45
parseAggMethod · 0.45
angular.min.jsFile · 0.45

Calls 2

eatwsMethod · 0.95
lengthMethod · 0.65

Tested by

no test coverage detected