Package com.sonarsource.cobol.api.issue
Interface LocationBuilder<T>
-
public interface LocationBuilder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TatLine(int line)location is related to a specific line number of the the current source code fileTatLine(File sourceCodeFile, int line)location is related to a specific line number of the given source code fileTon(AstNode node)Ton(Token token)TonFile()location is global to the current source code file (not at a specific line number)TonFile(File sourceCodeFile)location is global to a specific source code file (not at a specific line number)TonRange(AstNode firstNode, AstNode lastNode)precise issue location, seeonRange(Token, Token)TonRange(Token firstToken, Token lastToken)precise issue locationTonRange(List<AstNode> nodeList)precise issue location, seeonRange(Token, Token)
-
-
-
Method Detail
-
onFile
T onFile()
location is global to the current source code file (not at a specific line number)
-
onFile
T onFile(@Nullable File sourceCodeFile)
location is global to a specific source code file (not at a specific line number)
-
atLine
T atLine(int line)
location is related to a specific line number of the the current source code file- Parameters:
line- , start at 1
-
atLine
T atLine(@Nullable File sourceCodeFile, int line)
location is related to a specific line number of the given source code file- Parameters:
sourceCodeFile- if null, the main source code file will be usedline- , start at 1
-
onRange
T onRange(Token firstToken, Token lastToken)
precise issue location- Parameters:
firstToken- , issue start at the beginning of firstTokenlastToken- , issue end at the end of lastToken. Note: lastToken should be after firstToken and in the same file, otherwise the range will just be firstToken)
-
onRange
T onRange(AstNode firstNode, AstNode lastNode)
precise issue location, seeonRange(Token, Token)
-
onRange
T onRange(List<AstNode> nodeList)
precise issue location, seeonRange(Token, Token)
-
-