public class RulePredicate extends AbstractQueryProcessor implements BasicPredicateIF
Modifier and Type | Field and Description |
---|---|
protected ParsedRule |
rule |
protected String |
signature |
Constructor and Description |
---|
RulePredicate(ParsedRule rule) |
Modifier and Type | Method and Description |
---|---|
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.
|
findClauseItems, findClauseVariables, satisfy
protected ParsedRule rule
protected String signature
public RulePredicate(ParsedRule rule)
public String getName()
PredicateIF
getName
in interface PredicateIF
public 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, Object[] extarguments) throws InvalidQueryException
satisfy
in interface BasicPredicateIF
InvalidQueryException
public List getClauses()
public List getParameters()
public boolean replaceable()
public PredicateClause translate(List arguments)