Interface NodePositionMatcher

All Known Implementing Classes:
WithoutScopePositionMatcher

public interface NodePositionMatcher
Provides methods for matching nodes to given coordinates.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NodePositionMatcher
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    match(com.github.javaparser.ast.Node node, int line)
    Matches a node with a range against a line
    boolean
    match(com.github.javaparser.ast.Node node, int startLine, int endLine)
    Matches a node with a range against a line range
    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
    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
  • Field Details

  • 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: