Class QualifiedRule

  • All Implemented Interfaces:
    Serializable

    public class QualifiedRule
    extends Rule
    The abstract superclass for all tokens.
    Author:
    nhant01, GeorgeLuo
    See Also:
    Serialized Form
    • Constructor Detail

      • QualifiedRule

        public QualifiedRule()
        Constructor to initialize empty qualified rule
    • Method Detail

      • getTokenType

        public TokenType getTokenType()
        return the token type of the qualified rule
        Specified by:
        getTokenType in class Token
        Returns:
        TokenType.QUALIFIED_RULE
      • getRules

        public List<Rule> getRules()
        Setter for rules
        Returns:
        the list of rules associated with this qualified rule.
      • setRules

        public void setRules​(@Nonnull
                             List<Rule> rules)
        Setter for rules
        Parameters:
        rules - the rules to initialize to the qualified rule
      • setDeclarations

        public void setDeclarations​(@Nonnull
                                    List<Declaration> declarations)
        Setter for declarations
        Parameters:
        declarations - to initialize to the qualified rule
      • getDeclarations

        @Nonnull
        public List<Declaration> getDeclarations()
        Getter for declarations
        Returns:
        the declarations of the rule
      • getPrelude

        public List<com.steadystate.css.parser.Token> getPrelude()
        Getter for the prelude
        Returns:
        the prelude of the qualified rule
      • ruleName

        public String ruleName()
        concatenate a qualified rule name
        Returns:
        The concatenation of the qualified rule name.