io.cucumber.gherkin.AstNode Maven / Gradle / Ivy
package io.cucumber.gherkin;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static io.cucumber.gherkin.Parser.RuleType;
import static io.cucumber.gherkin.Parser.TokenType;
class AstNode {
private final Map> subItems = new HashMap>();
public final RuleType ruleType;
public AstNode(RuleType ruleType) {
this.ruleType = ruleType;
}
public void add(RuleType ruleType, Object obj) {
List