Package io.codemodder.remediation
Interface NodePositionMatcher
- All Known Implementing Classes:
WithoutScopePositionMatcher
public interface NodePositionMatcher
Provides methods for matching nodes to given coordinates.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatch(com.github.javaparser.ast.Node node, int line) Matches a node with a range against a linebooleanmatch(com.github.javaparser.ast.Node node, int startLine, int endLine) Matches a node with a range against a line rangebooleanmatch(com.github.javaparser.ast.Node node, int startLine, int endLine, int StartColumn) Matches a node with a range against a line range and columnbooleanmatch(com.github.javaparser.ast.Node node, int startLine, int endLine, int StartColumn, int EndColumn) Matches a node with a range against another range
-
Field Details
-
DEFAULT
-
-
Method Details
-
match
boolean match(com.github.javaparser.ast.Node node, int line) Matches a node with a range against a line- Parameters:
node-line-- Returns:
-
match
boolean match(com.github.javaparser.ast.Node node, int startLine, int endLine) Matches a node with a range against a line range- Parameters:
node-startLine-endLine-- Returns:
-
match
boolean match(com.github.javaparser.ast.Node node, int startLine, int endLine, int StartColumn) Matches a node with a range against a line range and column- Parameters:
node-startLine-endLine-StartColumn-- Returns:
-
match
boolean match(com.github.javaparser.ast.Node node, int startLine, int endLine, int StartColumn, int EndColumn) Matches a node with a range against another range- Parameters:
node-startLine-endLine-StartColumn-EndColumn-- Returns:
-