Class CSSSelectorSimpleMember

    • Constructor Detail

      • CSSSelectorSimpleMember

        public CSSSelectorSimpleMember​(@Nonnull @Nonempty
                                       String sValue)
    • Method Detail

      • isElementName

        public boolean isElementName()
        Returns:
        true if it is no hash, no class and no pseudo selector
      • isHash

        public boolean isHash()
        Returns:
        true if it is a hash selector
      • isClass

        public boolean isClass()
        Returns:
        true if it is a class selector
      • isPseudo

        public boolean isPseudo()
        Returns:
        true if it is a pseudo selector
      • getAsCSSString

        @Nonnull
        @Nonempty
        public String getAsCSSString​(@Nonnull
                                     ICSSWriterSettings aSettings,
                                     @Nonnegative
                                     int nIndentLevel)
        Description copied from interface: ICSSWriteable
        Get the contents of this object as a serialized CSS string for writing to an output.
        Specified by:
        getAsCSSString in interface ICSSWriteable
        Parameters:
        aSettings - The settings to be used to format the output. May not be null.
        nIndentLevel - The current indentation level
        Returns:
        The content of this object as CSS string. Never null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object