net.ontopia.topicmaps.query.parser
Class ParsedRule

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

public class ParsedRule
extends java.lang.Object

INTERNAL: Represents a parsed rule.


Constructor Summary
ParsedRule(java.lang.String name)
           
 
Method Summary
 void addParameter(Variable var)
           
 void close()
          Some checks can only be performed when we know that we have parsed the entire rule.
 boolean equals(java.lang.Object obj)
           
 java.util.List getClauses()
           
 java.lang.String getName()
           
 TologOptions getOptions()
           
 java.util.List getParameters()
           
 java.util.Map getParameterTypes()
           
 java.util.Map getVariableTypes()
           
 void init(TologOptions options)
           
 boolean initialized()
           
 void setClauseList(java.util.List clauses)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParsedRule

public ParsedRule(java.lang.String name)
Method Detail

init

public void init(TologOptions options)

initialized

public boolean initialized()

getName

public java.lang.String getName()

getClauses

public java.util.List getClauses()

getParameters

public java.util.List getParameters()

setClauseList

public void setClauseList(java.util.List clauses)

addParameter

public void addParameter(Variable var)

getVariableTypes

public java.util.Map getVariableTypes()

getParameterTypes

public java.util.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(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2000-2012 Ontopia.