Class OrClause


  • public class OrClause
    extends AbstractClause
    INTERNAL: Used to represent or clauses in tolog queries.
    • Field Detail

      • alternatives

        protected List alternatives
      • shortcircuit

        protected boolean shortcircuit
    • Constructor Detail

      • OrClause

        public OrClause()
      • OrClause

        public OrClause​(List alternatives)
    • Method Detail

      • getShortCircuit

        public boolean getShortCircuit()
      • setShortCircuit

        public void setShortCircuit​(boolean shortcircuit)
      • addClauseList

        public void addClauseList​(List alternative)
      • getAlternatives

        public List getAlternatives()
      • 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 class AbstractClause
      • 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 class AbstractClause