- All Implemented Interfaces:
Serializable,Comparable<DiffDriver>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of patterns used to match lines for potential function names.Returns the list of patterns used to exclude certain lines from being considered as function names.static DiffDriverReturns the enum constant of this class with the specified name.static DiffDriver[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
cpp
Built-in diff driver for c++ -
dts
Built-in diff driver for device tree files -
java
Built-in diff driver for java -
python
Built-in diff driver for python -
rust
Built-in diff driver for rust
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNegatePatterns
Returns the list of patterns used to exclude certain lines from being considered as function names.- Returns:
- the list of negate patterns
-
getMatchPatterns
Returns the list of patterns used to match lines for potential function names.- Returns:
- the list of match patterns
-