Ejemplo n.º 1
0
 private boolean isDirect(
     SelectorCombinator beforeAppenderCombinator,
     boolean appenderDirectlyPlaced,
     Selector afterAppender) {
   boolean result =
       beforeAppenderCombinator == null
           && appenderDirectlyPlaced
           && (afterAppender == null || !afterAppender.hasLeadingCombinator());
   return result;
 }
Ejemplo n.º 2
0
 private boolean isDirectlyAfterPreviousPart(Selector selector) {
   return selector == null ? false : !selector.hasLeadingCombinator();
 }