Class ParsedRule
- java.lang.Object
-
- net.ontopia.topicmaps.query.parser.ParsedRule
-
public class ParsedRule extends Object
INTERNAL: Represents a parsed rule.
-
-
Constructor Summary
Constructors Constructor Description ParsedRule(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(Variable var)
void
close()
Some checks can only be performed when we know that we have parsed the entire rule.boolean
equals(Object obj)
List
getClauses()
String
getName()
TologOptions
getOptions()
List
getParameters()
Map
getParameterTypes()
Map
getVariableTypes()
void
init(TologOptions options)
boolean
initialized()
void
setClauseList(List clauses)
-
-
-
Constructor Detail
-
ParsedRule
public ParsedRule(String name)
-
-
Method Detail
-
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
-
-