Package org.eclipse.lsp4j
Class FileOperationPattern
- java.lang.Object
-
- org.eclipse.lsp4j.FileOperationPattern
-
public class FileOperationPattern extends java.lang.ObjectA pattern to describe in which file operation requests or notifications the server is interested in.Since 3.16.0
-
-
Constructor Summary
Constructors Constructor Description FileOperationPattern()FileOperationPattern(java.lang.String glob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetGlob()The glob pattern to match.java.lang.StringgetMatches()Whether to match files or folders with this pattern.FileOperationPatternOptionsgetOptions()Additional options used during matching.inthashCode()voidsetGlob(java.lang.String glob)The glob pattern to match.voidsetMatches(java.lang.String matches)Whether to match files or folders with this pattern.voidsetOptions(FileOperationPatternOptions options)Additional options used during matching.java.lang.StringtoString()
-
-
-
Method Detail
-
getGlob
public java.lang.String getGlob()
The glob pattern to match. Glob patterns can have the following syntax:- `*` to match one or more characters in a path segment
- `?` to match on one character in a path segment
- `**` to match any number of path segments, including none
- `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
- `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
- `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
-
setGlob
public void setGlob(java.lang.String glob)
The glob pattern to match. Glob patterns can have the following syntax:- `*` to match one or more characters in a path segment
- `?` to match on one character in a path segment
- `**` to match any number of path segments, including none
- `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
- `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
- `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
-
getMatches
public java.lang.String getMatches()
Whether to match files or folders with this pattern.Matches both if undefined.
See
FileOperationPatternKindfor allowed values.
-
setMatches
public void setMatches(java.lang.String matches)
Whether to match files or folders with this pattern.Matches both if undefined.
See
FileOperationPatternKindfor allowed values.
-
getOptions
public FileOperationPatternOptions getOptions()
Additional options used during matching.
-
setOptions
public void setOptions(FileOperationPatternOptions options)
Additional options used during matching.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-