public void addSentenceToEndLatestSequence(MtasCQLParserSentenceCondition s)
      throws ParseException {
    if (!simplified) {
      MtasCQLParserSentenceCondition sentenceCurrent;
      List<MtasCQLParserSentenceCondition> sentenceSequence;
      if (isBasic()) {
        if (basicSentence == null) {
          sentenceSequence = new ArrayList<MtasCQLParserSentenceCondition>();
          sentenceCurrent = s;
          sentenceSequence.add(sentenceCurrent);
          sequenceList.add(sentenceSequence);
          // not simple anymore
          basic = false;
        } else {
          // add previous basic sentence as first option
          sentenceSequence = new ArrayList<MtasCQLParserSentenceCondition>();
          sentenceCurrent = new MtasCQLParserSentenceCondition(basicSentence,
              ignore, maximumIgnoreLength);
          sentenceSequence.add(sentenceCurrent);
          sequenceList.add(sentenceSequence);
          basicSentence = null;
          // add sentence to first option
          sentenceCurrent = s;
          sentenceSequence.add(sentenceCurrent);
          // not simple anymore
          basic = false;
        }
      } else {
        sentenceCurrent = s;
        if (sequenceList.size() == 0) {
          sequenceList.add(new ArrayList<MtasCQLParserSentenceCondition>());
        }
        sequenceList.get(sequenceList.size() - 1).add(sentenceCurrent);
      }
    } else {
      throw new ParseException("already simplified");
    }
  }
public void addSentenceToEndLatestSequence ( MtasCQLParserSentenceCondition s ) throws ParseException { if ( ! simplified ) { MtasCQLParserSentenceCondition sentenceCurrent ; List < MtasCQLParserSentenceCondition > sentenceSequence ; if ( isBasic ( ) ) { if ( basicSentence == null ) { sentenceSequence = new ArrayList < MtasCQLParserSentenceCondition > ( ) ; sentenceCurrent = s ; sentenceSequence . add ( sentenceCurrent ) ; sequenceList . add ( sentenceSequence ) ; basic = false ; } else { sentenceSequence = new ArrayList < MtasCQLParserSentenceCondition > ( ) ; sentenceCurrent = new MtasCQLParserSentenceCondition ( basicSentence , ignore , maximumIgnoreLength ) ; sentenceSequence . add ( sentenceCurrent ) ; sequenceList . add ( sentenceSequence ) ; basicSentence = null ; sentenceCurrent = s ; sentenceSequence . add ( sentenceCurrent ) ; basic = false ; } } else { sentenceCurrent = s ; if ( sequenceList . size ( ) == 0 ) { sequenceList . add ( new ArrayList < MtasCQLParserSentenceCondition > ( ) ) ; } sequenceList . get ( sequenceList . size ( ) - 1 ) . add ( sentenceCurrent ) ; } } else { throw new ParseException ( "already simplified" ) ; } }
Adds the sentence to end latest sequence.

@param s
the s
@throws ParseException
the parse exception