MCPcopy Create free account
hub / github.com/jhy/jsoup / parseSubclass

Method parseSubclass

src/main/java/org/jsoup/select/QueryParser.java:169–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167 }
168
169 @Nullable Evaluator parseSubclass() {
170 // Subclass: ID | Class | Attribute | Pseudo
171 if (tq.matchChomp('#')) return byId();
172 else if (tq.matchChomp('.')) return byClass();
173 else if (tq.matches('[')) return byAttribute();
174 else if (tq.matchChomp("::")) return parseNodeSelector(); // ::comment etc
175 else if (tq.matchChomp(':')) return parsePseudoSelector();
176 else return null;
177 }
178
179 /** Merge two evals into an Or. */
180 static Evaluator or(Evaluator left, Evaluator right) {

Callers 2

parseSimpleSequenceMethod · 0.95
parseNodeSelectorMethod · 0.95

Calls 7

byIdMethod · 0.95
byClassMethod · 0.95
byAttributeMethod · 0.95
parseNodeSelectorMethod · 0.95
parsePseudoSelectorMethod · 0.95
matchChompMethod · 0.80
matchesMethod · 0.45

Tested by

no test coverage detected