com.vaadin.sass.internal.visitor
Class Extension
java.lang.Object
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
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.
Extension
public Extension(SimpleSelectorSequence extendSelector,
Selector replacingSelector,
Collection<Selector> context)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013–2015 Vaadin. All rights reserved.