public static class Selector.GeneralSelector extends Selector.AbstractSelector
Selector.AbstractSelector, Selector.ChildOrParentSelector, Selector.GeneralSelector, Selector.LinkSelector
Modifier and Type | Field and Description |
---|---|
private String |
base |
(package private) static double |
R |
Range |
range |
private String |
subpart |
conds
Constructor and Description |
---|
GeneralSelector(String base,
Pair<Integer,Integer> zoom,
List<Condition> conds,
String subpart) |
Modifier and Type | Method and Description |
---|---|
static Range |
fromLevel(int a,
int b) |
String |
getBase() |
Range |
getRange() |
String |
getSubpart() |
static double |
level2scale(int lvl) |
boolean |
matches(Environment e)
Apply the selector to the primitive and check if it matches.
|
boolean |
matchesBase(Environment e) |
String |
toString() |
matchesConditions
static final double R
public String getSubpart()
public boolean matchesBase(Environment e)
public boolean matches(Environment e)
Selector
e
- 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.public static double level2scale(int lvl)