@NotThreadSafe public class CSSSelectorSimpleMember extends Object implements ICSSSelectorMember, ICSSSourceLocationAware
| Constructor and Description |
|---|
CSSSelectorSimpleMember(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.
|
CSSSourceLocation |
getSourceLocation() |
String |
getValue() |
int |
hashCode() |
boolean |
isClass() |
boolean |
isElementName() |
boolean |
isHash() |
boolean |
isPseudo() |
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 boolean isElementName()
true if it is no hash, no class and no pseudo selectorpublic boolean isHash()
true if it is a hash selectorpublic boolean isClass()
true if it is a class selectorpublic boolean isPseudo()
true if it is a pseudo selector@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.