@Beta public interface DuplicationTokenBuilder
DuplicationTokenBuilder tokenBuilder = context.duplicationTokenBuilder(inputFile)
.addToken(1, "public")
.addToken(1, "class")
.addToken(1, "Foo")
.addToken(1, "{")
.addToken(2, "}")
.done();
Modifier and Type | Method and Description |
---|---|
DuplicationTokenBuilder |
addToken(int line,
String image)
Call this method to register a new token.
|
void |
done()
Call this method only once when your are done with defining tokens of the file.
|
DuplicationTokenBuilder addToken(int line, String image)
line
- Line number of the token. Line starts at 1.image
- Text of the token.void done()
Copyright © 2009–2015 SonarSource. All rights reserved.