/** * Checks if the underlying input is looking at a end of block comment * <p> * If an end of block comment is detected, any characters indicating this are consumed by this method * * @return <tt>true</tt> if the next character(s) of the input end a block comment, <tt>false</tt> otherwise */ protected boolean isAtEndOfBlockComment() { return canConsumeThisString(blockCommentEnd, true); }
/** * Checks if the underlying input is looking at a end of block comment * <p> * If an end of block comment is detected, any characters indicating this are consumed by this method * * @return <tt>true</tt> if the next character(s) of the input end a block comment, <tt>false</tt> otherwise */ protected boolean isAtEndOfBlockComment() { return canConsumeThisString(blockCommentEnd, true); }
/** * Checks if the underlying input is looking at a start of block comment * <p> * If a block comment is detected, any characters indicating this are consumed by this method if <tt>consume</tt> * is <tt>true</tt> . * * @param consume determines if the block comment starter is to be consumed if found or not * @return <tt>true</tt> if the next character(s) of the input start a block comment, <tt>false</tt> otherwise */ protected boolean isAtStartOfBlockComment(boolean consume) { return canConsumeThisString(blockCommentStart, consume); }
/** * Checks if the underlying input is looking at a start of block comment * <p> * If a block comment is detected, any characters indicating this are consumed by this method if <tt>consume</tt> * is <tt>true</tt> . * * @param consume determines if the block comment starter is to be consumed if found or not * @return <tt>true</tt> if the next character(s) of the input start a block comment, <tt>false</tt> otherwise */ protected boolean isAtStartOfBlockComment(boolean consume) { return canConsumeThisString(blockCommentStart, consume); }
/** * Checks if the underlying input is looking at a start of line comment. * <p> * If a line comment is detected, any characters indicating this are consumed by this method if * <tt>consume</tt> is <tt>true</tt>. * * @param consume determines if the matched comment start should be consumed immediately * @return <tt>true</tt> if the next character(s) of the input start a line comment, <tt>false</tt> otherwise */ protected boolean isAtStartOfLineComment(boolean consume) { if (lineComment != null) { return canConsumeThisString(lineComment, consume); } else { return false; } }
/** * Checks if the underlying input is looking at a start of line comment. * <p> * If a line comment is detected, any characters indicating this are consumed by this method if * <tt>consume</tt> is <tt>true</tt>. * * @param consume determines if the matched comment start should be consumed immediately * @return <tt>true</tt> if the next character(s) of the input start a line comment, <tt>false</tt> otherwise */ protected boolean isAtStartOfLineComment(boolean consume) { if (lineComment != null) { return canConsumeThisString(lineComment, consume); } else { return false; } }