Class AttrStyleRuleVisitor

java.lang.Object
io.sf.carte.doc.style.css.util.AttrStyleRuleVisitor
All Implemented Interfaces:
io.sf.carte.util.Visitor<CSSStyleRule>

public class AttrStyleRuleVisitor extends Object implements io.sf.carte.util.Visitor<CSSStyleRule>
Visit style rules and apply an AttributeConditionVisitor.
See Also:
  • Constructor Details

    • AttrStyleRuleVisitor

      public AttrStyleRuleVisitor(AttributeConditionVisitor visitor)
      Construct the rule visitor.
      Parameters:
      visitor - the condition visitor.
  • Method Details

    • visit

      public void visit(CSSStyleRule rule)
      Visit the given style rule and apply the AttributeConditionVisitor to its selector list.
      Specified by:
      visit in interface io.sf.carte.util.Visitor<CSSStyleRule>
      Parameters:
      rule - the style rule.