|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor
net.ontopia.topicmaps.query.impl.basic.RulePredicate
public class RulePredicate
INTERNAL: Implements rule predicates.
| Field Summary | |
|---|---|
protected ParsedRule |
rule
|
protected String |
signature
|
| Constructor Summary | |
|---|---|
RulePredicate(ParsedRule rule)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
List |
getClauses()
|
int |
getCost(boolean[] boundparams)
INTERNAL. |
String |
getName()
INTERNAL: Returns the name of the predicate. |
List |
getParameters()
|
String |
getSignature()
INTERNAL: Returns a string representing the signature of the predicate. |
boolean |
replaceable()
INTERNAL: Checks to see if this rule is simply an alias. |
QueryMatches |
satisfy(QueryMatches extmatches,
Object[] extarguments)
|
PredicateClause |
translate(List arguments)
INTERNAL: Creates a new PredicateClause representing the content of this rule inlined in an environment where the arguments in the args parameter have been passed to the predicate. |
| Methods inherited from class net.ontopia.topicmaps.query.impl.basic.AbstractQueryProcessor |
|---|
findClauseItems, findClauseVariables, satisfy |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ParsedRule rule
protected String signature
| Constructor Detail |
|---|
public RulePredicate(ParsedRule rule)
| Method Detail |
|---|
public String getName()
PredicateIF
getName in interface PredicateIF
public String getSignature()
throws InvalidQueryException
PredicateIFThe instance-of predicate would have a signature of "t t", while /= would have ". .", and in would have ". .+". For full details, see topicmaps.impl.utils.ArgumentValidator.
getSignature in interface PredicateIFInvalidQueryExceptionpublic int getCost(boolean[] boundparams)
PredicateIF
getCost in interface PredicateIF
public QueryMatches satisfy(QueryMatches extmatches,
Object[] extarguments)
throws InvalidQueryException
satisfy in interface BasicPredicateIFInvalidQueryExceptionpublic List getClauses()
public List getParameters()
public boolean equals(Object obj)
equals in class Objectpublic boolean replaceable()
public PredicateClause translate(List arguments)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||