Beispiel #1
0
  public void ruleHandler(RuleDescr ruleDescr) {
    setModuleName(ruleDescr);
    PackageDescr pkg = createPackageDescr(ruleDescr.getNamespace());
    pkg.addRule(ruleDescr);

    this.packageBuilder.addPackage(pkg);

    this.session.fireAllRules();
  }
Beispiel #2
0
  public void templateHandler(TypeDeclarationDescr typeDescr) {
    setModuleName(typeDescr);

    PackageDescr pkg = createPackageDescr(typeDescr.getNamespace());

    pkg.addTypeDeclaration(typeDescr);

    this.packageBuilder.addPackage(pkg);
  }