com.vaadin.sass.internal.visitor
Class Extension

java.lang.Object
  extended by com.vaadin.sass.internal.visitor.Extension
All Implemented Interfaces:
Serializable

public class Extension
extends Object
implements Serializable

An immutable data object for an @extend, describing the mapping from the parameter of @extend to the selector of the block containing the @extend.

See Also:
Serialized Form

Field Summary
 Collection<Selector> context
          The context of the extending selector.
 SimpleSelectorSequence extendSelector
          The parameter of @extend, e.g.
 Selector replacingSelector
          A selectors that is extended by extendSelector, e.g.
 
Constructor Summary
Extension(SimpleSelectorSequence extendSelector, Selector replacingSelector, Collection<Selector> context)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

extendSelector

public final SimpleSelectorSequence extendSelector
The parameter of @extend, e.g. "b" in "a { @extend b; ... }". This is the selector whose occurrences will be augmented with new entries generated by replacing extendSelector with #replacingSelectors.


replacingSelector

public final Selector replacingSelector
A selectors that is extended by extendSelector, e.g. "a" in "a { @extend b; ... }".


context

public final Collection<Selector> context
The context of the extending selector. This is used to handle @extend in nested blocks correctly. Can be null for empty context.

Constructor Detail

Extension

public Extension(SimpleSelectorSequence extendSelector,
                 Selector replacingSelector,
                 Collection<Selector> context)
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2015 Vaadin. All rights reserved.