Class PredicateClause
- java.lang.Object
-
- net.ontopia.topicmaps.query.parser.AbstractClause
-
- net.ontopia.topicmaps.query.parser.PredicateClause
-
- Direct Known Subclasses:
QueryOptimizer.PumpClause
public class PredicateClause extends AbstractClause
INTERNAL: Used to represent clauses in tolog queries.
-
-
Field Summary
Fields Modifier and Type Field Description protected List
arguments
protected PredicateIF
predicate
-
Constructor Summary
Constructors Constructor Description PredicateClause()
PredicateClause(PredicateIF predicate)
PredicateClause(PredicateIF predicate, List arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArgument(Object object)
Collection
getAllLiterals()
INTERNAL: Returns all the literals used by this clause as parameters.Collection
getAllVariables()
INTERNAL: Returns all the variables bound by this clause when it is satisfied.List
getArguments()
INTERNAL: Returns the arguments of this clause.PredicateIF
getPredicate()
PredicateClause
getReplacement()
INTERNAL: Returns an equivalent, but more efficient, clause, if such a clause is possible; if not returns itself.void
setPredicate(PredicateIF predicate)
String
toString()
-
-
-
Field Detail
-
predicate
protected PredicateIF predicate
-
arguments
protected List arguments
-
-
Constructor Detail
-
PredicateClause
public PredicateClause()
-
PredicateClause
public PredicateClause(PredicateIF predicate)
-
PredicateClause
public PredicateClause(PredicateIF predicate, List arguments)
-
-
Method Detail
-
getArguments
public List getArguments()
Description copied from class:AbstractClause
INTERNAL: 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:
getArguments
in classAbstractClause
-
getPredicate
public PredicateIF getPredicate()
-
setPredicate
public void setPredicate(PredicateIF predicate)
-
addArgument
public void addArgument(Object object)
-
getAllVariables
public Collection getAllVariables()
Description copied from class:AbstractClause
INTERNAL: Returns all the variables bound by this clause when it is satisfied.- Specified by:
getAllVariables
in classAbstractClause
-
getAllLiterals
public Collection getAllLiterals()
Description copied from class:AbstractClause
INTERNAL: Returns all the literals used by this clause as parameters. (Literals in the second half of pair arguments are ignored.)- Specified by:
getAllLiterals
in classAbstractClause
-
getReplacement
public PredicateClause 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.
-
-