aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/javac/java8/CommentCollectingScanner.java
blob: 1b8474ac71c92be3b587abb69ffed8c62e9895a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package lombok.javac.java8;

import lombok.javac.CommentInfo;

import com.sun.tools.javac.parser.Scanner;
import com.sun.tools.javac.parser.ScannerFactory;
import com.sun.tools.javac.util.List;

public class CommentCollectingScanner extends Scanner {
	
	private CommentCollectingTokenizer tokenizer;
	
	public CommentCollectingScanner(ScannerFactory fac, CommentCollectingTokenizer tokenizer) {
		super(fac, tokenizer);
		this.tokenizer = tokenizer;
	}
	
	public List<CommentInfo> getComments() {
		return tokenizer.getComments();
	}
}