Search in sources :

Example 1 with EndConnection

use of lombok.javac.CommentInfo.EndConnection in project lombok by rzwitserloot.

the class CommentCollectingScanner method processComment.

@Override
protected void processComment(CommentStyle style) {
    int prevEndPos = Math.max(prevEndPos(), endComment);
    int pos = pos();
    int endPos = endPos();
    endComment = endPos;
    String content = new String(getRawCharacters(pos, endPos));
    StartConnection start = determineStartConnection(prevEndPos, pos);
    EndConnection end = determineEndConnection(endPos);
    CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end);
    comments.append(comment);
    super.processComment(style);
}
Also used : EndConnection(lombok.javac.CommentInfo.EndConnection) StartConnection(lombok.javac.CommentInfo.StartConnection) CommentInfo(lombok.javac.CommentInfo)

Example 2 with EndConnection

use of lombok.javac.CommentInfo.EndConnection in project lombok by rzwitserloot.

the class CommentCollectingScanner method processComment.

@Override
protected void processComment(CommentStyle style) {
    int prevEndPos = Math.max(prevEndPos(), endComment);
    int pos = pos();
    int endPos = endPos();
    endComment = endPos;
    String content = new String(getRawCharacters(pos, endPos));
    StartConnection start = determineStartConnection(prevEndPos, pos);
    EndConnection end = determineEndConnection(endPos);
    CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end);
    comments.append(comment);
    super.processComment(style);
}
Also used : EndConnection(lombok.javac.CommentInfo.EndConnection) StartConnection(lombok.javac.CommentInfo.StartConnection) CommentInfo(lombok.javac.CommentInfo)

Example 3 with EndConnection

use of lombok.javac.CommentInfo.EndConnection in project lombok by rzwitserloot.

the class CommentCollectingTokenizer method processComment.

@Override
protected Comment processComment(int pos, int endPos, CommentStyle style) {
    int prevEndPos = Math.max(prevEndPosition, endComment);
    endComment = endPos;
    String content = new String(reader.getRawCharacters(pos, endPos));
    StartConnection start = determineStartConnection(prevEndPos, pos);
    EndConnection end = determineEndConnection(endPos);
    CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end);
    comments.append(comment);
    return super.processComment(pos, endPos, style);
}
Also used : EndConnection(lombok.javac.CommentInfo.EndConnection) StartConnection(lombok.javac.CommentInfo.StartConnection) CommentInfo(lombok.javac.CommentInfo)

Aggregations

CommentInfo (lombok.javac.CommentInfo)3 EndConnection (lombok.javac.CommentInfo.EndConnection)3 StartConnection (lombok.javac.CommentInfo.StartConnection)3