Class CSSStyle


  • public class CSSStyle
    extends java.lang.Object
    CSS style representation.
    • Constructor Summary

      Constructors 
      Constructor Description
      CSSStyle​(java.util.Optional<StyleSheetId> styleSheetId, java.util.List<CSSProperty> cssProperties, java.util.List<ShorthandEntry> shorthandEntries, java.util.Optional<java.lang.String> cssText, java.util.Optional<SourceRange> range)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<CSSProperty> getCssProperties()
      CSS properties in the style.
      java.util.Optional<java.lang.String> getCssText()
      Style declaration text (if available).
      java.util.Optional<SourceRange> getRange()
      Style declaration range in the enclosing stylesheet (if available).
      java.util.List<ShorthandEntry> getShorthandEntries()
      Computed values for all shorthands found in the style.
      java.util.Optional<StyleSheetId> getStyleSheetId()
      The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CSSStyle

        public CSSStyle​(java.util.Optional<StyleSheetId> styleSheetId,
                        java.util.List<CSSProperty> cssProperties,
                        java.util.List<ShorthandEntry> shorthandEntries,
                        java.util.Optional<java.lang.String> cssText,
                        java.util.Optional<SourceRange> range)
    • Method Detail

      • getStyleSheetId

        public java.util.Optional<StyleSheetId> getStyleSheetId()
        The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
      • getCssProperties

        public java.util.List<CSSProperty> getCssProperties()
        CSS properties in the style.
      • getShorthandEntries

        public java.util.List<ShorthandEntry> getShorthandEntries()
        Computed values for all shorthands found in the style.
      • getCssText

        public java.util.Optional<java.lang.String> getCssText()
        Style declaration text (if available).
      • getRange

        public java.util.Optional<SourceRange> getRange()
        Style declaration range in the enclosing stylesheet (if available).