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, satisfyprotected ParsedRule rule
protected String signature
public RulePredicate(ParsedRule rule)
public String getName()
PredicateIFgetName in interface PredicateIFpublic 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)
PredicateIFgetCost in interface PredicateIFpublic QueryMatches satisfy(QueryMatches extmatches, Object[] extarguments) throws InvalidQueryException
satisfy in interface BasicPredicateIFInvalidQueryExceptionpublic List getClauses()
public List getParameters()
public boolean replaceable()
public PredicateClause translate(List arguments)