public MtasCQLParserSentenceCondition createFullSentence ( ) throws ParseException { if ( fullCondition == null ) { if ( secondSentencePart == null ) { if ( firstBasicSentence != null ) { fullCondition = new MtasCQLParserSentenceCondition ( firstBasicSentence , ignoreClause , maximumIgnoreLength ) ; } else { fullCondition = firstSentence ; } fullCondition . setOccurence ( firstMinimumOccurence , firstMaximumOccurence ) ; if ( firstOptional ) { fullCondition . setOptional ( firstOptional ) ; } return fullCondition ; } else { if ( ! orOperator ) { if ( firstBasicSentence != null ) { firstBasicSentence . setOccurence ( firstMinimumOccurence , firstMaximumOccurence ) ; firstBasicSentence . setOptional ( firstOptional ) ; fullCondition = new MtasCQLParserSentenceCondition ( firstBasicSentence , ignoreClause , maximumIgnoreLength ) ; } else { firstSentence . setOccurence ( firstMinimumOccurence , firstMaximumOccurence ) ; firstSentence . setOptional ( firstOptional ) ; fullCondition = new MtasCQLParserSentenceCondition ( firstSentence , ignoreClause , maximumIgnoreLength ) ; } fullCondition . addSentenceToEndLatestSequence ( secondSentencePart . createFullSentence ( ) ) ; } else { MtasCQLParserSentenceCondition sentence = secondSentencePart . createFullSentence ( ) ; if ( firstBasicSentence != null ) { sentence . addSentenceAsFirstOption ( new MtasCQLParserSentenceCondition ( firstBasicSentence , ignoreClause , maximumIgnoreLength ) ) ; } else { sentence . addSentenceAsFirstOption ( firstSentence ) ; } fullCondition = sentence ; } return fullCondition ; } } else { return fullCondition ; } }
Creates the full sentence .