Package io.codemodder

Interface RegionNodeMatcher


public interface RegionNodeMatcher
A type that can match a Region to a Range for determining if we should change the node at this location.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RegionNodeMatcher
    Return true if the Node and Region start and end at the same location.
    static final RegionNodeMatcher
    Return true if the Node is Region start at the same location.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(SourceCodeRegion region, com.github.javaparser.Range range)
    Return true if the given Region matches the given Range.
  • Field Details

    • EXACT_MATCH

      static final RegionNodeMatcher EXACT_MATCH
      Return true if the Node and Region start and end at the same location. Some SARIF providers seem report an end column that is +1 more than you think -- the spec probably says the value is exclusive or something.
    • MATCHES_START

      static final RegionNodeMatcher MATCHES_START
      Return true if the Node is Region start at the same location.
  • Method Details

    • matches

      boolean matches(SourceCodeRegion region, com.github.javaparser.Range range)
      Return true if the given Region matches the given Range.