@NotThreadSafe public class CSSExpressionMemberFunction extends Object implements ICSSExpressionMember, ICSSSourceLocationAware, ICSSExpressionMathMember
| Constructor and Description |
|---|
CSSExpressionMemberFunction(String sFunctionName)
Constructor without an expression
|
CSSExpressionMemberFunction(String sFunctionName,
CSSExpression aExpression)
Constructor
|
| 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.
|
CSSExpressionMemberFunction |
getClone() |
CSSExpression |
getExpression() |
String |
getFunctionName() |
ECSSVersion |
getMinimumCSSVersion() |
CSSSourceLocation |
getSourceLocation() |
boolean |
hasExpression() |
int |
hashCode() |
boolean |
isExpressionFunction() |
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSStringpublic CSSExpressionMemberFunction(@Nonnull @Nonempty String sFunctionName)
sFunctionName - Function name. May neither be null nor empty.public CSSExpressionMemberFunction(@Nonnull @Nonempty String sFunctionName, @Nullable CSSExpression aExpression)
sFunctionName - Function name. May neither be null nor empty.aExpression - Optional parameter expression. May be null.@Nonnull @Nonempty public final String getFunctionName()
null nor empty.public boolean isExpressionFunction()
true if this is a special IE "expression" function.
This makes a difference, because in case of IE expression
functions, no parameter splitting takes place!@Nullable public final CSSExpression getExpression()
null.public final boolean hasExpression()
true of an expression parameter is present,
false otherwise.@Nonnull public CSSExpressionMemberFunction 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.@Nonnull public ECSSVersion getMinimumCSSVersion()
getMinimumCSSVersion in interface ICSSVersionAwarenull.@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.