| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_QUOTE_CHARACTER
The default quote character.
|
static int |
TYPE |
| Constructor and Description |
|---|
SassString(java.lang.String value)
Create a new single quoted string value.
|
SassString(java.lang.String value,
boolean quoted)
Create a new potentially quoted string value.
|
SassString(java.lang.String value,
boolean quoted,
char quote)
Create a new potentially quoted string value with specific quotation character.
|
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
java.util.stream.IntStream |
chars() |
java.util.stream.IntStream |
codePoints() |
static java.lang.String |
escape(java.lang.String value)
Escape the string with default quote character.
|
static java.lang.String |
escape(java.lang.String value,
char quote)
Escape the string with given quote character.
|
char |
getQuote()
Return the quotation character.
|
java.lang.String |
getValue()
Return the string value.
|
boolean |
isQuoted()
Determine if the string is quoted.
|
int |
length() |
void |
setQuote(char quote)
Set the quotation character.
|
void |
setQuoted(boolean quoted)
Set if the string is quoted.
|
void |
setValue(java.lang.String value)
Set the string value.
|
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
public static final int TYPE
public static final char DEFAULT_QUOTE_CHARACTER
public SassString(java.lang.String value)
value - The string value.public SassString(java.lang.String value,
boolean quoted)
value - The string value.quoted - Flag if the string is quoted.public SassString(java.lang.String value,
boolean quoted,
char quote)
value - The string value.quoted - Flag if the string is quoted.quote - The quotation character.public java.lang.String getValue()
public void setValue(java.lang.String value)
value - The string value.public boolean isQuoted()
public void setQuoted(boolean quoted)
quoted - The quotation state.public char getQuote()
public void setQuote(char quote)
quote - The quotation character.public static java.lang.String escape(java.lang.String value)
public static java.lang.String escape(java.lang.String value,
char quote)
public int length()
length in interface java.lang.CharSequencepublic char charAt(int index)
charAt in interface java.lang.CharSequencepublic java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic java.util.stream.IntStream chars()
chars in interface java.lang.CharSequencepublic java.util.stream.IntStream codePoints()
codePoints in interface java.lang.CharSequencepublic java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Object