/** * Check whether there are only the whitespace tokens on the given line. * * @param token * any token on the line. It doesn't have to be the first one. */ public boolean isLineWhite(FormatTokenPosition pos) { FormatTokenPosition lineStart = findLineStart(pos); return findLineEndWhitespace(pos).equals(lineStart); }
/** Check whether there are only the whitespace tokens * on the given line. * @param token any token on the line. It doesn't have to be the first one. */ public boolean isLineWhite(FormatTokenPosition pos) { FormatTokenPosition lineStart = findLineStart(pos); return findLineEndWhitespace(pos).equals(lineStart); }