// This is the NAME of the rule, not a reference to it!!
protected void visit(final RuleDescr descr) {
        // This is the NAME of the rule, not a reference to it!!
        String ruleName = getPackagePrefix() + descr.getName();
        addResource(ruleName,
                    ResourceType.RULE);
        // This is, on other hand, is a reference to the parent rule (because it's used in inheritance)
        String parentRuleName = descr.getParentName();
        if (parentRuleName != null) {
            addResourceReference(parentRuleName,
                                 ResourceType.RULE);
        }
        for (AttributeDescr d : descr.getAttributes().values()) {
            visit(d);
        }
        visit(descr.getLhs());
        visitConsequence(descr.getConsequence()); // need compilation for this..
        for (String namedConsequence : descr.getNamedConsequences().keySet()) {
            // TODO
            // ? addResourceReference(namedConsequence, PartType.NAMED_CONSEQUENCE);
        }
        visitAnnos(descr);
    }
protected void visit(final RuleDescr descr) {
// This is the NAME of the rule, not a reference to it!!
String ruleName = getPackagePrefix() + descr.getName();
addResource(ruleName,
protected void visit(final RuleDescr descr) {
// This is the NAME of the rule, not a reference to it!!
String ruleName = getPackagePrefix() + descr.getName();
addResource(ruleName,
ResourceType.RULE);
// This is, on other hand, is a reference to the parent rule (because it's used in inheritance)
String parentRuleName = descr.getParentName();
if (parentRuleName != null) {
addResourceReference(parentRuleName,
ResourceType.RULE);
}
for (AttributeDescr d : descr.getAttributes().values()) {
protected void visit(final RuleDescr descr) {
// This is the NAME of the rule, not a reference to it!!
String ruleName = getPackagePrefix() + descr.getName();
addResource(ruleName,
ResourceType.RULE);
// This is, on other hand, is a reference to the parent rule (because it's used in inheritance)
String parentRuleName = descr.getParentName();
if (parentRuleName != null) {
addResourceReference(parentRuleName,
ResourceType.RULE);
}
for (AttributeDescr d : descr.getAttributes().values()) {
visit(d);
}
visit(descr.getLhs());
visitConsequence(descr.getConsequence()); // need compilation for this..
for (String namedConsequence : descr.getNamedConsequences().keySet()) {
// TODO
// ? addResourceReference(namedConsequence, PartType.NAMED_CONSEQUENCE);
}
visitAnnos(descr);
}