net.sourceforge.nrl.parser.ast.action.impl
Class ActionAstResolver

java.lang.Object
  extended by net.sourceforge.nrl.parser.ast.impl.ConstraintAstResolver
      extended by net.sourceforge.nrl.parser.ast.action.impl.ActionAstResolver

public class ActionAstResolver
extends ConstraintAstResolver

This action AST resolver extends the basic resolver and adds resolving and checking of fragment references.

Author:
Christian Nentwich

Field Summary
protected  Map<String,IActionFragmentDeclaration> actionFragmentIds
           
 
Fields inherited from class net.sourceforge.nrl.parser.ast.impl.ConstraintAstResolver
fragmentIds, globalVariableIds, ruleIds, ruleSetIds
 
Constructor Summary
ActionAstResolver()
           
 
Method Summary
protected  void collectActionFragmentIds(RuleFileImpl ruleFile, List<NRLError> errors)
          Collect action fragment identifiers in the actionFragmentIds list.
protected  void collectIdentifiers(RuleFileImpl ruleFile, List<NRLError> errors)
          Extends the base implementation to also collect fragment ids.
protected  void resolveReferences(RuleFileImpl ruleFile, List<NRLError> errors)
          Override the superclass method to also resolve fragment references.
 
Methods inherited from class net.sourceforge.nrl.parser.ast.impl.ConstraintAstResolver
collectFragmentIds, collectGlobalVariableIds, collectRuleIds, collectRuleSetIds, resolve, resolveIncompleteExistsStatements, resolveRuleSets, validateRuleParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionFragmentIds

protected Map<String,IActionFragmentDeclaration> actionFragmentIds
Constructor Detail

ActionAstResolver

public ActionAstResolver()
Method Detail

collectIdentifiers

protected void collectIdentifiers(RuleFileImpl ruleFile,
                                  List<NRLError> errors)
Extends the base implementation to also collect fragment ids.

Overrides:
collectIdentifiers in class ConstraintAstResolver
Parameters:
ruleFile - the rule file
errors - errors, if any are found during collection

collectActionFragmentIds

protected void collectActionFragmentIds(RuleFileImpl ruleFile,
                                        List<NRLError> errors)
Collect action fragment identifiers in the actionFragmentIds list.

Parameters:
ruleFile - the rule file
errors - the error list

resolveReferences

protected void resolveReferences(RuleFileImpl ruleFile,
                                 List<NRLError> errors)
Override the superclass method to also resolve fragment references.

Overrides:
resolveReferences in class ConstraintAstResolver
Parameters:
ruleFile - the rule file to process
errors - the error list to add to if errors occur


Copyright © 2006-2013. All Rights Reserved.