private boolean evaluateConditionFlags ( String flags ) { int p = 0 ; while ( true ) { p = skipBlanks ( flags , p ) ; if ( p >= flags . length ( ) ) { break ; } boolean complement = false ; if ( flags . charAt ( p ) == ' ' ) { complement = true ; p ++ ; } p = skipBlanks ( flags , p ) ; if ( p >= flags . length ( ) ) { break ; } int p0 = p ; p = skipNonBlanks ( flags , p0 + 1 ) ; String flag = flags . substring ( p0 , p ) . toUpperCase ( ) ; if ( ( conditionFlags != null && conditionFlags . contains ( flag ) ) ^ complement ) { return true ; } } return false ; }
Returns true the condition is met .