|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.parser.StringInterpolationSequence
public class StringInterpolationSequence
StringInterpolationSequence is used for representing sequences consisting of strings and interpolation. An unevaluated StringInterpolationSequence consists of StringItem (a wrapper for a String) and Interpolation objects. The result of calling replaceInterpolation is a StringInterpolationSequence where occurrences of interpolation have been replaced with the contents of the interpolation.
| Constructor Summary | |
|---|---|
StringInterpolationSequence(List<SassListItem> sequence)
Creates a new StringInterpolationSequence. |
|
StringInterpolationSequence(String value)
Creates a new StringInterpolationSequence containing only the given item. |
|
| Method Summary | |
|---|---|
StringInterpolationSequence |
append(StringInterpolationSequence other)
Creates a new StringInterpolationSequence that contains all items of this and other. |
boolean |
containsInterpolation()
Returns true if this sequence contains interpolation, i.e. |
List<SassListItem> |
getItems()
|
StringInterpolationSequence |
replaceVariables(ScssContext context)
Creates a new sequence that is obtained from this by replacing all variables occurring in expressions. |
String |
toString()
|
StringInterpolationSequence |
updateUrl(String prefix)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringInterpolationSequence(String value)
public StringInterpolationSequence(List<SassListItem> sequence)
sequence - A list of StringItem and Interpolation objects.| Method Detail |
|---|
public StringInterpolationSequence replaceVariables(ScssContext context)
context - current compilation context
public StringInterpolationSequence append(StringInterpolationSequence other)
other - The StringInterpolationSequence to be appended to the end of
this.
public String toString()
toString in class Objectpublic boolean containsInterpolation()
public List<SassListItem> getItems()
public StringInterpolationSequence updateUrl(String prefix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||