Class ParsedRule


  • public class ParsedRule
    extends Object
    INTERNAL: Represents a parsed rule.
    • Constructor Detail

      • ParsedRule

        public ParsedRule​(String name)
    • Method Detail

      • initialized

        public boolean initialized()
      • getName

        public String getName()
      • getClauses

        public List getClauses()
      • getParameters

        public List getParameters()
      • setClauseList

        public void setClauseList​(List clauses)
      • addParameter

        public void addParameter​(Variable var)
      • getVariableTypes

        public Map getVariableTypes()
      • getParameterTypes

        public Map getParameterTypes()
      • close

        public void close()
                   throws InvalidQueryException
        Some checks can only be performed when we know that we have parsed the entire rule. Therefore close() is called once parsing of the rule has ended. It verifies that all parameters to the rule are actually used in the rule (no free variables), and runs type inferencing on the rule.
        Throws:
        InvalidQueryException