MCPcopy Create free account
hub / github.com/ReadyTalk/avian / startAlternative

Method startAlternative

classpath/java/util/regex/Compiler.java:235–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 }
234
235 public void startAlternative() {
236 if (alternatives == null) {
237 alternatives = new ArrayList<Group>();
238 }
239 alternatives.add(new Group(false, list));
240 list.clear();
241 }
242
243 public Expression pop() {
244 Expression result = list.remove(list.size() - 1);

Callers 1

compileMethod · 0.95

Calls 2

addMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected