Interface CombinatorCondition

All Superinterfaces:
Condition

public interface CombinatorCondition extends Condition
Based on SAC's CombinatorCondition interface by Philippe Le Hegaret.

Represents two or more chained conditions in a compound selector.

  • Method Details

    • getFirstCondition

      Condition getFirstCondition()
      The first condition.
      Returns:
      the first condition.
    • getSecondCondition

      Condition getSecondCondition()
      The second condition.
      Returns:
      the second condition.
    • getCondition

      Condition getCondition(int index) throws ArrayIndexOutOfBoundsException
      Get the condition at index index.
      Parameters:
      index - the index. A value of 0 retrieves the first condition.
      Returns:
      the condition.
      Throws:
      ArrayIndexOutOfBoundsException - if the index is invalid.
    • getLength

      int getLength()
      Get the number of conditions in this combinator.
      Returns:
      the number of conditions (always two at least).