@NotThreadSafe public class CSSExpressionMemberTermSimple extends Object implements ICSSExpressionMember, ICSSSourceLocationAware
| Constructor and Description |
|---|
CSSExpressionMemberTermSimple(double dValue) |
CSSExpressionMemberTermSimple(float fValue) |
CSSExpressionMemberTermSimple(int nValue) |
CSSExpressionMemberTermSimple(long nValue) |
CSSExpressionMemberTermSimple(String sValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
CSSExpressionMemberTermSimple |
getClone() |
String |
getOptimizedValue() |
CSSSourceLocation |
getSourceLocation() |
String |
getValue() |
int |
hashCode() |
boolean |
isStringLiteral() |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
CSSExpressionMemberTermSimple |
setValue(String sValue) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSStringpublic CSSExpressionMemberTermSimple(int nValue)
public CSSExpressionMemberTermSimple(long nValue)
public CSSExpressionMemberTermSimple(float fValue)
public CSSExpressionMemberTermSimple(double dValue)
@Nonnull public final CSSExpressionMemberTermSimple setValue(@Nonnull @Nonempty String sValue)
@Nonnull @Nonempty public final String getValue()
null nor empty.@Nonnull @Nonempty public final String getOptimizedValue()
CSSExpressionTermOptimizer.getOptimizedValue(String)public final boolean isStringLiteral()
true if this value is a string literal.
false it is considered to be an identifier.@Nonnull public CSSExpressionMemberTermSimple getClone()
getClone in interface com.helger.commons.lang.ICloneable<ICSSExpressionMember>@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.@Nullable public final CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.public final void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.Copyright © 2014–2022 Philip Helger. All rights reserved.