public static class Selector.LinkSelector extends Selector.AbstractSelector
Selector.AbstractSelector, Selector.ChildOrParentSelector, Selector.ChildOrParentSelectorType, Selector.GeneralSelector, Selector.LinkSelector, Selector.OptimizedGeneralSelector
conds
BASE_ANY, BASE_AREA, BASE_CANVAS, BASE_META, BASE_NODE, BASE_RELATION, BASE_SETTING, BASE_SETTINGS, BASE_WAY
Constructor and Description |
---|
LinkSelector(java.util.List<Condition> conditions) |
Modifier and Type | Method and Description |
---|---|
Range |
getRange()
Returns the scale range, an interval of the form "lower < x <= upper" where 0 <= lower < upper.
|
Subpart |
getSubpart()
Returns the subpart, if supported.
|
boolean |
matches(Environment env)
Determines if all conditions match the given environment.
|
Selector |
optimizedBaseCheck()
Create an "optimized" copy of this selector that omits the base check.
|
java.lang.String |
toString() |
getConditions
public LinkSelector(java.util.List<Condition> conditions)
public boolean matches(Environment env)
Selector.AbstractSelector
matches
in interface Selector
matches
in class Selector.AbstractSelector
env
- The environment to checktrue
if all conditions apply, false otherwise.public Subpart getSubpart()
Selector
::subpart
syntax).public Range getRange()
Selector
public Selector optimizedBaseCheck()
Selector
public java.lang.String toString()
toString
in class java.lang.Object