|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.sass.internal.parser.SassList
public class SassList
SassList is a list that has a specified separator character (comma or space) and data items. The data items can be lists.
| Nested Class Summary | |
|---|---|
static class |
SassList.Separator
|
| Constructor Summary | |
|---|---|
SassList()
|
|
SassList(SassList.Separator sep,
List<SassListItem> items)
|
|
SassList(SassList.Separator sep,
SassListItem... items)
|
|
SassList(SassListItem... items)
|
|
| Method Summary | |
|---|---|
String |
buildString(Node.BuildStringStrategy strategy)
Return a string representation of this item using the given strategy of converting items to strings. |
boolean |
containsArithmeticalOperator()
Checks whether the item contains an arithmetic expression. |
boolean |
equals(Object o)
|
SassList |
evaluateArithmeticExpressions()
Evaluates the arithmetic expressions of this item without modifying this item. |
SassListItem |
flatten()
Returns a SassListItem whose textual (CSS) representation is the same as that of this list. |
SassListItem |
get(int index)
|
int |
getColumnNumber()
|
LexicalUnitImpl |
getContainedValue()
Returns the only LexicalUnitImpl contained in this list. |
protected List<SassListItem> |
getItems()
|
int |
getLineNumber()
|
SassList.Separator |
getSeparator()
|
String |
getStringWithNesting()
Returns a string representation of the list where nesting is indicated using parentheses. |
int |
hashCode()
|
Iterator<SassListItem> |
iterator()
|
String |
printState()
Returns a string representation of this item. |
SassListItem |
replaceChains()
Returns an object that is otherwise similar to this but chains of LexicalUnitImpl objects have been replaced with SassExpressions representing the same expressions. |
SassList |
replaceFunctions()
Returns a new item that is the result of evaluating all functions in this item. |
SassList |
replaceVariables(Collection<VariableNode> variables)
Returns a new item that is otherwise equal to this one but all occurrences of the given variables have been replaced by the values given in the VariableNodes. |
void |
setSeparator(SassList.Separator separator)
|
void |
setSourcePosition(int line,
int column)
|
int |
size()
|
String |
toString()
|
String |
unquotedString()
Returns a string representation of this item with surrounding quotation marks of the same type (" or ') removed. |
void |
updateUrl(String prefix)
Updates all url's of this item by, e.g., adding the prefix to an url not starting with slash "/" and not containing the symbol ":". |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SassList()
public SassList(SassListItem... items)
public SassList(SassList.Separator sep,
SassListItem... items)
public SassList(SassList.Separator sep,
List<SassListItem> items)
| Method Detail |
|---|
public int getLineNumber()
getLineNumber in interface SassListItempublic int getColumnNumber()
getColumnNumber in interface SassListItem
public void setSourcePosition(int line,
int column)
public SassList.Separator getSeparator()
public void setSeparator(SassList.Separator separator)
public LexicalUnitImpl getContainedValue()
getContainedValue in interface SassListItemParseException - if this.size() != 1 or if the type of this.get(0) is not
LexicalUnitImpl.public String unquotedString()
SassListItem
unquotedString in interface SassListItempublic SassListItem flatten()
public boolean containsArithmeticalOperator()
SassListItem
containsArithmeticalOperator in interface SassListItempublic SassList evaluateArithmeticExpressions()
SassListItem
evaluateArithmeticExpressions in interface SassListItempublic SassList replaceVariables(Collection<VariableNode> variables)
SassListItem
replaceVariables in interface SassListItempublic SassList replaceFunctions()
SassListItem
replaceFunctions in interface SassListItempublic String buildString(Node.BuildStringStrategy strategy)
SassListItemLexicalUnitImpl#buildString(BuildStringStrategy).
buildString in interface SassListItemstrategy - Specifies how an item is converted to a string. The strategy
may use the toString- and printState-methods.
public String printState()
SassListItemLexicalUnitImpl.printState(). For a list, the string
representation contains the list items separated with the separator
character of the list. No parentheses appear in the string representation
of a list, for valid CSS output.
printState in interface SassListItempublic String toString()
toString in class Objectpublic String getStringWithNesting()
public void updateUrl(String prefix)
SassListItem
updateUrl in interface SassListItemprefix - The prefix to be added.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int size()
public SassListItem get(int index)
public Iterator<SassListItem> iterator()
iterator in interface Iterable<SassListItem>protected List<SassListItem> getItems()
public SassListItem replaceChains()
SassListItem
replaceChains in interface SassListItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||