no.sesat.search.query.parser
Class AbstractBinaryClause

java.lang.Object
  extended by no.sesat.search.query.parser.AbstractClause
      extended by no.sesat.search.query.parser.AbstractUnaryClause
          extended by no.sesat.search.query.parser.AbstractBinaryClause
All Implemented Interfaces:
Serializable, no.sesat.commons.visitor.Visitable, Clause, UnaryClause
Direct Known Subclasses:
AndClauseImpl, AndNotClauseImpl, DefaultOperatorClauseImpl, OrClauseImpl

public class AbstractBinaryClause
extends AbstractUnaryClause

Abstract binary operation clause. That is an operation between two clauses.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class no.sesat.search.query.parser.AbstractUnaryClause
firstClause
 
Fields inherited from class no.sesat.search.query.parser.AbstractClause
DFAULT_REFERENCE_MAP_TYPE, ERR_FAILED_FINDING_OR_USING_CONSTRUCTOR, ERR_MUST_ALWAYS_USE_ARGED_CONSTRUCTOR
 
Constructor Summary
protected AbstractBinaryClause(String term, Clause first, Clause second, Set<TokenPredicate> knownPredicates, Set<TokenPredicate> possiblePredicates)
          Create the infix operation clause with the given term, left and right child clauses, and known and possible predicate sets.
 
Method Summary
 Clause getSecondClause()
          Get the secondClause.
 String toString()
           
 
Methods inherited from class no.sesat.search.query.parser.AbstractUnaryClause
createClause, getFirstClause
 
Methods inherited from class no.sesat.search.query.parser.AbstractClause
accept, addClauseInUse, findClauseInUse, findPredicates, getKnownPredicates, getPossiblePredicates, getTerm, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface no.sesat.search.query.Clause
getKnownPredicates, getPossiblePredicates, getTerm
 
Methods inherited from interface no.sesat.commons.visitor.Visitable
accept
 

Constructor Detail

AbstractBinaryClause

protected AbstractBinaryClause(String term,
                               Clause first,
                               Clause second,
                               Set<TokenPredicate> knownPredicates,
                               Set<TokenPredicate> possiblePredicates)
Create the infix operation clause with the given term, left and right child clauses, and known and possible predicate sets.

Parameters:
term - the term for this OrClauseImpl.
knownPredicates - set of known predicates.
possiblePredicates - set of possible predicates.
first - the left child clause.
second - the right child clause.
Method Detail

getSecondClause

public Clause getSecondClause()
Get the secondClause.

Returns:
the secondClause.

toString

public String toString()
Overrides:
toString in class AbstractUnaryClause


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.