Enum Class DiffDriver

java.lang.Object
java.lang.Enum<DiffDriver>
org.eclipse.jgit.diff.DiffDriver
All Implemented Interfaces:
Serializable, Comparable<DiffDriver>, java.lang.constant.Constable

public enum DiffDriver extends Enum<DiffDriver>
Built-in drivers for various languages, sorted by name. These drivers will be used to determine function names for a hunk.

When writing or updating patterns, assume the contents are syntactically correct. Patterns can be simple and need not cover all syntactical corner cases, as long as they are sufficiently permissive.

Since:
6.10.1
  • Enum Constant Details

  • Method Details

    • values

      public static DiffDriver[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DiffDriver valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNegatePatterns

      public List<Pattern> getNegatePatterns()
      Returns the list of patterns used to exclude certain lines from being considered as function names.
      Returns:
      the list of negate patterns
    • getMatchPatterns

      public List<Pattern> getMatchPatterns()
      Returns the list of patterns used to match lines for potential function names.
      Returns:
      the list of match patterns