# ResourceFilterMatcher

interface ResourceFilterMatcher(source)

The model of an Eclipse resource filter matcher.

The matcher decides when the containing filter (or containing matcher) applies. The matcher configures things like whether this ResourceFilter matches resources by name, project relative path, location, last modified, etc. Eclipse has many types of built-in matchers and it is possible to specify the id and arguments for custom matchers using this model.

A matcher must have an id. It may have either a custom string argument or a set of nested child matchers (e.g. an 'or' matcher will have several nested condition matchers).

For more documentation on usage with examples, see ResourceFilter.

#### Since

3.5

## Functions

getArguments
Link copied to clipboard
@Nullable
abstract fun getArguments(): String
The arguments of the matcher or null if it has children.
getChildren
Link copied to clipboard
abstract fun getChildren(): Set<ResourceFilterMatcher>
The child matchers of this matcher, e.g.
getId
Link copied to clipboard
@Nullable
abstract fun getId(): String
The id of the matcher type, as defined by its Eclipse extension.
matcher
Link copied to clipboard
abstract fun matcher(configureAction: Action<in ResourceFilterMatcher>): ResourceFilterMatcher
Adds a child/nested matcher to this matcher.
setArguments
Link copied to clipboard
abstract fun setArguments(arguments: String)
Sets the arguments of the matcher.
setId
Link copied to clipboard
abstract fun setId(id: String)
Sets the id of the matcher type.