public interface Selector
Modifier and Type | Interface and Description |
---|---|
static class |
Selector.AbstractSelector
Super class of
Selector.GeneralSelector and Selector.LinkSelector |
static class |
Selector.ChildOrParentSelector
Represents a child selector or a parent selector.
|
static class |
Selector.GeneralSelector |
static class |
Selector.LinkSelector |
Modifier and Type | Method and Description |
---|---|
Range |
getRange() |
String |
getSubpart() |
boolean |
matches(Environment env)
Apply the selector to the primitive and check if it matches.
|
boolean matches(Environment env)
env
- the Environment. env.mc and env.layer are read-only when matching a selector.
env.source is not needed. This method will set the matchingReferrers field of env as
a side effect! Make sure to clear it before invoking this method.String getSubpart()