1 package org.simantics.scl.compiler.internal.parsing.declarations;
3 import gnu.trove.map.hash.THashMap;
5 import java.util.ArrayList;
7 import org.simantics.scl.compiler.elaboration.query.Query;
9 public class DRuleAst extends DeclarationAst {
10 public final boolean isAbstract;
11 public final String name;
12 public final String[] extendsNames;
13 private final THashMap<String, ArrayList<Query>> sectionMap =
14 new THashMap<String, ArrayList<Query>>(4);
15 public boolean alreadyProcessing;
17 public DRuleAst(boolean isAbstract, String name, String[] extendsNames) {
18 this.isAbstract = isAbstract;
20 this.extendsNames = extendsNames;
23 public ArrayList<Query> getSection(String sectionName) {
24 ArrayList<Query> result = sectionMap.get(sectionName);
26 result = new ArrayList<Query>(4);
27 sectionMap.put(sectionName, result);
32 public THashMap<String, ArrayList<Query>> getSections() {