|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 java.lang.String |
signature
|
Constructor Summary | |
---|---|
RulePredicate(ParsedRule rule)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.util.List |
getClauses()
|
int |
getCost(boolean[] boundparams)
INTERNAL. |
java.lang.String |
getName()
INTERNAL: Returns the name of the predicate. |
java.util.List |
getParameters()
|
java.lang.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,
java.lang.Object[] extarguments)
|
PredicateClause |
translate(java.util.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 java.lang.String signature
Constructor Detail |
---|
public RulePredicate(ParsedRule rule)
Method Detail |
---|
public java.lang.String getName()
PredicateIF
getName
in interface PredicateIF
public java.lang.String getSignature() throws InvalidQueryException
PredicateIF
The 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 PredicateIF
InvalidQueryException
public int getCost(boolean[] boundparams)
PredicateIF
getCost
in interface PredicateIF
public QueryMatches satisfy(QueryMatches extmatches, java.lang.Object[] extarguments) throws InvalidQueryException
satisfy
in interface BasicPredicateIF
InvalidQueryException
public java.util.List getClauses()
public java.util.List getParameters()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean replaceable()
public PredicateClause translate(java.util.List arguments)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |