org.openstreetmap.josm.gui.mappaint.mapcss
Class Selector.LinkSelector

java.lang.Object
  extended by org.openstreetmap.josm.gui.mappaint.mapcss.Selector.LinkSelector
All Implemented Interfaces:
Selector
Enclosing interface:
Selector

public static class Selector.LinkSelector
extends java.lang.Object
implements Selector


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openstreetmap.josm.gui.mappaint.mapcss.Selector
Selector.ChildOrParentSelector, Selector.GeneralSelector, Selector.LinkSelector
 
Field Summary
protected  java.util.List<Condition> conditions
           
 
Constructor Summary
Selector.LinkSelector(java.util.List<Condition> conditions)
           
 
Method Summary
 Range getRange()
           
 java.lang.String getSubpart()
           
 boolean matches(Environment env)
          Apply the selector to the primitive and check if it matches.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conditions

protected java.util.List<Condition> conditions
Constructor Detail

Selector.LinkSelector

public Selector.LinkSelector(java.util.List<Condition> conditions)
Method Detail

matches

public boolean matches(Environment env)
Description copied from interface: Selector
Apply the selector to the primitive and check if it matches.

Specified by:
matches in interface Selector
Parameters:
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.
Returns:
true, if the selector applies

getSubpart

public java.lang.String getSubpart()
Specified by:
getSubpart in interface Selector

getRange

public Range getRange()
Specified by:
getRange in interface Selector

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


JOSM