net.ontopia.topicmaps.query.parser
Class ParsedRule
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParsedRule
public ParsedRule(java.lang.String name)
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.