Class ParsedRule

java.lang.Object
net.ontopia.topicmaps.query.parser.ParsedRule

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

    • ParsedRule

      public ParsedRule(String name)
  • Method Details

    • init

      public void init(TologOptions options)
    • 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()
    • getOptions

      public TologOptions getOptions()
    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object