Class RuleUsage


  • public class RuleUsage
    extends java.lang.Object
    CSS coverage information.
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleUsage​(StyleSheetId styleSheetId, java.lang.Number startOffset, java.lang.Number endOffset, java.lang.Boolean used)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Number getEndOffset()
      Offset of the end of the rule body from the beginning of the stylesheet.
      java.lang.Number getStartOffset()
      Offset of the start of the rule (including selector) from the beginning of the stylesheet.
      StyleSheetId getStyleSheetId()
      The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
      java.lang.Boolean getUsed()
      Indicates whether the rule was actually used by some element in the page.
      • Methods inherited from class java.lang.Object

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

      • RuleUsage

        public RuleUsage​(StyleSheetId styleSheetId,
                         java.lang.Number startOffset,
                         java.lang.Number endOffset,
                         java.lang.Boolean used)
    • Method Detail

      • getStyleSheetId

        public StyleSheetId getStyleSheetId()
        The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
      • getStartOffset

        public java.lang.Number getStartOffset()
        Offset of the start of the rule (including selector) from the beginning of the stylesheet.
      • getEndOffset

        public java.lang.Number getEndOffset()
        Offset of the end of the rule body from the beginning of the stylesheet.
      • getUsed

        public java.lang.Boolean getUsed()
        Indicates whether the rule was actually used by some element in the page.