Class PredicateClause
java.lang.Object
net.ontopia.topicmaps.query.parser.AbstractClause
net.ontopia.topicmaps.query.parser.PredicateClause
- Direct Known Subclasses:
QueryOptimizer.PumpClause
INTERNAL: Used to represent clauses in tolog queries.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPredicateClause(PredicateIF predicate) PredicateClause(PredicateIF predicate, List arguments) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(Object object) INTERNAL: Returns all the literals used by this clause as parameters.INTERNAL: Returns all the variables bound by this clause when it is satisfied.INTERNAL: Returns the arguments of this clause.INTERNAL: Returns an equivalent, but more efficient, clause, if such a clause is possible; if not returns itself.voidsetPredicate(PredicateIF predicate) toString()
-
Field Details
-
predicate
-
arguments
-
-
Constructor Details
-
PredicateClause
public PredicateClause() -
PredicateClause
-
PredicateClause
-
-
Method Details
-
getArguments
Description copied from class:AbstractClauseINTERNAL: Returns the arguments of this clause. For OrClause this is the list of all arguments to all the subclauses in the OrClause. Likewise for NotClause.- Specified by:
getArgumentsin classAbstractClause
-
getPredicate
-
setPredicate
-
addArgument
-
toString
-
getAllVariables
Description copied from class:AbstractClauseINTERNAL: Returns all the variables bound by this clause when it is satisfied.- Specified by:
getAllVariablesin classAbstractClause
-
getAllLiterals
Description copied from class:AbstractClauseINTERNAL: Returns all the literals used by this clause as parameters. (Literals in the second half of pair arguments are ignored.)- Specified by:
getAllLiteralsin classAbstractClause
-
getReplacement
INTERNAL: Returns an equivalent, but more efficient, clause, if such a clause is possible; if not returns itself. Used by the optimizer to optimize queries.
-